Hey there,
currently i make my hands dirty with the spidermonkey network stuff. I made the tutorial and the server/client is working fine.
Now i have some Question to this.
I don’t make a server/client game like minecraft where u can connect and disconnect when ever u want. I will make a network system like in Warcraft, C&C … where u have one session for the game and if the game is over the connection will close.
I guess there is something like a server/client topology (for Warcarft) where, if the hosting player gets disconnected, another player use the role of the host.
any idea / hints how to implement this, that another user gets the host?
and is there a smooth way to run the server inside the game state? or shutdown the server if the game will be closed? i tried out something an got every time a nullpointe exception (inside the thread) after the server gets closed