Game Development Community

Connection To Server Gets Interrupted

by Scott Doerrfeld · in Torque Game Engine · 01/08/2008 (10:45 am) · 4 replies

How does Torque handle the case where a client's connection to the server is briefly interrupted (i.e. wireless signal drops for a moment)? What seems to happen on the client end is everything in the game world freezes and it doesn't allow the client player to move. It does, however, allow the client to access the menu and quit the game.

Isn't there some sort of time out counter to help the client handle this "freezing"?

#1
01/30/2008 (1:50 am)
I'm not certain what you're asking. Obviously, if the client is cut off from the server, it can't get or receive new game information, so it's difficult to handle gracefully. You'd have to correctly predict everything the server was doing in the meantime.
#2
02/12/2008 (7:43 am)
All I am trying to do is detect when the cut-off happens so the client can be informed that the connection with the server has been interrupted. Otherwise everything just sits there and the client is clueless as to what happened.
#3
02/12/2008 (8:21 am)
In the default code the lag icon should be appearing in the top right corner of the screen to indicate a disconnect.
#4
02/12/2008 (8:26 am)
Just check the ping, if it's above a certain treshold show a GUI? Much like the lag icon does.