You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*** Player has left the game (received invalid or unexpected packet)
Steps to reproduce
Start a server with a large enough map. It should be big enough for bug to manifest but not enough for the client to get disconnected for too long download.
Upause the game, disable network.pause_on_join
Start a client, select server, join with "new company" button
As far as I can tell it happens because client creates company on SERVER_MAP_DONE and it gets created before the client has a chance to catch up with the server. CmdCompanyCtrl sends CLIENT_SET_PASSWORD that fails because client still has STATUS_PRE_ACTIVE on the server.
Var dumps from NetworkServer_Tick:
CLIENT 15 status 0 lag 0
CLIENT 15 status 4 lag 0
CLIENT 15 status 6 lag 0
...
CLIENT 15 status 6 lag 0
CLIENT 15 status 6 lag 1
...
CLIENT 15 status 6 lag 182
CLIENT 15 status 7 lag 183
...
CLIENT 15 status 7 lag 322
CLIENT 15 status 8 lag 0
...
CLIENT 15 status 8 lag 0
CLIENT 15 status 8 lag 1
...
CLIENT 15 status 8 lag 145
Version of OpenTTD
master (4fd2eec)
Expected result
Join successfully
Actual result
*** Player has left the game (received invalid or unexpected packet)
Steps to reproduce
As far as I can tell it happens because client creates company on SERVER_MAP_DONE and it gets created before the client has a chance to catch up with the server. CmdCompanyCtrl sends CLIENT_SET_PASSWORD that fails because client still has STATUS_PRE_ACTIVE on the server.
Var dumps from NetworkServer_Tick:
TCP stream:
The text was updated successfully, but these errors were encountered: