[0.18.32] Map desync after loading replay

Post your bugs and problems so we can fix them.
Post Reply
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat May 30, 2020 9:32 pm

[0.18.32] Map desync after loading replay

Post by Vainock »

When I try to load the replay of my game I directly get a prompt that the map desynced.
Desync.PNG (727.37 KiB) Viewed 168 times
(3.38 MiB) Downloaded 7 times
I have replaced the Windows username with * to not leak my full name.
(6.26 KiB) Downloaded 4 times

User avatar
Factorio Staff
Factorio Staff
Posts: 861
Joined: Thu Dec 14, 2017 6:56 pm

Re: [0.18.32] Map desync after loading replay

Post by boskid »

Thanks for the report. I was able to reproduce this desync with following steps:
1/ New map in SP with replay
2/ save file
3/ transfer file to MP server for hosting
4/ host that save file. I was using auto_pause=false but should not be important. My player name was NOT in adminlist.
5/ as a client, join MP. This should make replay continue
6/ Save game from a client
7/ Run replay - it will desync shortly after player joins.

From what i found, issue is around admin flag. When map is hosted, server synchronizes admin permissions but this does not produce required input actions for a replay. That way during play first player is considered to be non admin (server removed that permission), but when trying to replay, there are no traces player lost admin flag (there is in PlayerJoinGame but is ignored and its already late) and so there is desync. By updating admin flag when player joins i was able to run replay of that file. However i do not want to touch replay system, maybe other dev will want to fix that particular issue.

Post Reply

Return to “Bug Reports”

Who is online

Users browsing this forum: boskid, SoulForge