Open ProjectMoon opened 14 years ago
Preferably, I would like it to be able to auto-restore as well as allow connections from the same IP. However, it will probably be such that the server will have to accept a log-in to a username, and then auto-restore to a character instead.
So, current way of fixing this is to always prompt for a username and password. When user is successfully logged in, the server checks if there is a BROKEN connection. If so, it restores it. If there is an existing connection that is NOT broken, it kicks the user off. If there is no connection, everything proceeds as normal.
Currently, the server will attempt to automatically reconnect players who get disconnected. However, this has the unfortunate side-effect of "restoring" connections that are not actually in need of restoration. For example, if the same IP connects again while already playing, the new connection will simultaneously share the existing game session with the other connection. Then, all sorts of weird things happen.
This should not be the case.