A
Arthrax
Guest
I'm developing a multiplayer game in which the map changes frequently during the course of the match.
To be more specific, I have a ds_list server-side that contains all the values of map objects that need to be destroyed.
Everything so far is working, as the objects can be transferred to other connected clients easily. However I have yet to find a way to be able to load the initial conditions of the map (aka the server side ds_list) when a client connects.
I tried sending it through a single buffer but the amount of data is simply too large for it, and causes a memory dump when the list of objects gets a certain size.
I know it has something to do involving a loading bar / sequence or sending the data in bursts, the functions ds_list_read(); and ds_list_write(); and potentially using .ini files, but I'm not sure how to go about doing this and I would love to learn.
And by the way, the list can end up being a LOT of objects so I'd need to be able to scale for potentially vast quantities of data. I don't mind if the client upon joining has to wait for it to load.
Any help is appreciated, and if you need me to be more specific I can.
To be more specific, I have a ds_list server-side that contains all the values of map objects that need to be destroyed.
Everything so far is working, as the objects can be transferred to other connected clients easily. However I have yet to find a way to be able to load the initial conditions of the map (aka the server side ds_list) when a client connects.
I tried sending it through a single buffer but the amount of data is simply too large for it, and causes a memory dump when the list of objects gets a certain size.
I know it has something to do involving a loading bar / sequence or sending the data in bursts, the functions ds_list_read(); and ds_list_write(); and potentially using .ini files, but I'm not sure how to go about doing this and I would love to learn.
And by the way, the list can end up being a LOT of objects so I'd need to be able to scale for potentially vast quantities of data. I don't mind if the client upon joining has to wait for it to load.
Any help is appreciated, and if you need me to be more specific I can.