Out-Of-Sync when doubleclicking on StartGame
|Reported by:||elexis||Owned by:||elexis|
|Priority:||Release Blocker||Milestone:||Alpha 23|
If clicking twice on
StartGame as a multiplayer host (one has to be really quick), then
launchGame(); is executed twice.
The first call choses an rng seed, starts networked game and loading screen.
launchGame doesn't switch the GUI page, the networking code does that and that is delayed.
So the second click still has time to be executed.
A new RNG is set again, the different gamesettings are broadcasted again.
StartNetworkGame is called again which doesn't execute code but throws this error:
ERROR: Net client: Error running FSM update (type=24 state=6) NMT_GAME_START while NCS_LOADING
If there are two clients connected, it can yield an instant OOS error.
temple considers that this could be the cause for the KunstRaucher Mainland OOS reported in #5162. The entities are serialized and deserialized properly, but a different RNG seed would generate a different terrain.
Change History (5)
comment:3 by , 5 years ago
|Patch:||Phab:D1558 → Phab:D1558 Phab:D1562|
|Priority:||Must Have → Release Blocker|