Well, first off I am the guy in charge of multiplayer programming, so anything you want to know ask me or put it on this thread.
>
Again please give me your feedback. But one thing no matter what we do with multiplayer
so far I will have to no EVERY single variable that makes up world, so multiplayer can make
a couple of its own fake worlds for what I just explained above.
>
well, I think if you need to know every single variable that makes up the world, then we're
not using a proper object-oriented approach. We need to think hard about this, because I'm
convinced there is an "easy" way to do this, and Lots of hard ways .
>
Mark, you cant to the following with sockets though... 'whatever.write(socket,world)'
You can ONLY send character strings through a socket connection. So for example to send the population data to one of the clients the host would do the following....
'whatever.write(socket,"SET POP ProvinceA 1200")'.
Basically you cannot send over entire objects through networking. I might be wrong on this because this comes from C++ socket programming, but I have scanned through Java socket programming and it seems the same.
That is why I would need to know every variable, so each computer could send some or all of the maps data through strings like the example I should you.
Overall the best way to explain what a socket is is that it is nothing but a fancy file desriptor, and you can only read text period.
>
Again please give me your feedback. But one thing no matter what we do with multiplayer
so far I will have to no EVERY single variable that makes up world, so multiplayer can make
a couple of its own fake worlds for what I just explained above.
>
well, I think if you need to know every single variable that makes up the world, then we're
not using a proper object-oriented approach. We need to think hard about this, because I'm
convinced there is an "easy" way to do this, and Lots of hard ways .
>
Mark, you cant to the following with sockets though... 'whatever.write(socket,world)'
You can ONLY send character strings through a socket connection. So for example to send the population data to one of the clients the host would do the following....
'whatever.write(socket,"SET POP ProvinceA 1200")'.
Basically you cannot send over entire objects through networking. I might be wrong on this because this comes from C++ socket programming, but I have scanned through Java socket programming and it seems the same.
That is why I would need to know every variable, so each computer could send some or all of the maps data through strings like the example I should you.
Overall the best way to explain what a socket is is that it is nothing but a fancy file desriptor, and you can only read text period.
Comment