Page 1 of 1
[0.15.26] desync on map join
Posted: Fri Jun 30, 2017 8:55 pm
by Atoms
After server and client updated to 0.15.26 no one is able to join to game, game just downloads map, and then desync, others reported that cannot join too, i tried 1 another server and joined. We play without mods, and every player now has desync to this server. Attaching desync report.
https://drive.google.com/file/d/0BxdfuM ... sp=sharing
Re: [0.15.26] desync on map join
Posted: Fri Jun 30, 2017 8:58 pm
by Rseding91
I'll look into the desync but your save *is* modded. It's using a custom scenario with custom script files.
Re: [0.15.26] desync on map join
Posted: Fri Jun 30, 2017 8:59 pm
by Atoms
ok, but still it should not desync in such cases
Re: [0.15.26] desync on map join
Posted: Fri Jun 30, 2017 9:05 pm
by Rseding91
Looking into it at least 2 of the custom script files in use are written wrong such that they would cause desyncs in MP.
map_layout.lua line 15 calls math.random when the script file isn't fully setup - which will desync every time you try to connect to any game using that file.
band.lua line 24 band_last_change is set to some constant value at load and is then changed in a button click event later but never saved in the global table so it resets every time someone saves/reloads the game (what happens when you join a MP game).
Re: [0.15.26] desync on map join
Posted: Fri Jun 30, 2017 9:06 pm
by Rseding91
Atoms wrote:ok, but still it should not desync in such cases
It desyncs when the custom scripts being used are written incorrectly - such as the examples I gave above.
Re: [0.15.26] desync on map join
Posted: Fri Jun 30, 2017 9:25 pm
by Atoms
ok posted this info to map owner, thanks.