Page 1 of 1
Random Desync in Multiplayer
Posted: Sat Dec 21, 2019 1:59 pm
by DawnbringerHUN
Hy!
Last night everything was working fine, then suddenly from now on my friend keeps desyncing in MP, and even after looking through the log I can't find anything useful. Everything is the same version.
Desync log :
https://pastebin.com/Uv5fhx3L
Can anyone help?
Re: Random Desync in Multiplayer
Posted: Sat Dec 21, 2019 3:03 pm
by Loewchen
Since the desync is happening almost instantly you can try removing mods until the issue is resolved, start with the most uncommon mods. Without the desync report there is nothing else anyone could do.
Re: Random Desync in Multiplayer
Posted: Sat Dec 21, 2019 6:29 pm
by DawnbringerHUN
Loewchen wrote: ↑Sat Dec 21, 2019 3:03 pm
Since the desync is happening almost instantly you can try removing mods until the issue is resolved, start with the most uncommon mods. Without the desync report there is nothing else anyone could do.
What do you need from the desync report? I thought the log was enough, sorry.
Re: Random Desync in Multiplayer
Posted: Sat Dec 21, 2019 7:00 pm
by Loewchen
See my signature, deactivating the mods will be faster though.
Re: Random Desync in Multiplayer
Posted: Wed Dec 25, 2019 1:42 am
by DawnbringerHUN
Crash is occured on friend's side too.
Friend's dump :
https://drive.google.com/file/d/10mSElD ... sp=sharing
Friend's log :
https://drive.google.com/file/d/1WTSTfR ... sp=sharing
My log after heavy mode:
https://drive.google.com/file/d/120Etf3 ... sp=sharing
Friends desync report zip:
https://drive.google.com/file/d/1iDZhT1 ... sp=sharing
We tried to estimate what is causing the desync, also tried to turn off specific mods, but we found nothing on this.
Re: Random Desync in Multiplayer
Posted: Wed Dec 25, 2019 3:05 am
by DawnbringerHUN
Friend hosted the save, I got desynced too. No desync in vanilla or in new game hosted with the same mods.
Desync occurs even if we stand still and don't do anything.
Re: Random Desync in Multiplayer
Posted: Wed Dec 25, 2019 8:39 am
by boskid
Desync is because of VoidChestPlus 2.2.2
Code: Select all
local function init_chests()
-- gather all void chests on every surface in case another mod added some
global.VoidChests = nil
for _, surface in pairs(game.surfaces) do
chests = surface.find_entities_filtered{ name = "void-chest" }
for _, chest in pairs(chests) do
chest.infinity_container_filters = {}
chest.remove_unfiltered_items = true
end
end
end
chests variable is not local
There is also GhostPlacerExpress 0.1.6 issue
Code: Select all
if items_removed == 1 then
_, revived_entity, __ = player_selected.revive{raise_revive = true}
if revived_entity == nil then
revived_entity variable is not local
Re: Random Desync in Multiplayer
Posted: Wed Dec 25, 2019 10:44 am
by Optera
Having someone proofread my code is always helpful, thanks.
Re: Random Desync in Multiplayer
Posted: Thu Dec 26, 2019 4:39 pm
by DawnbringerHUN
boskid wrote: ↑Wed Dec 25, 2019 8:39 am
Desync is because of VoidChestPlus 2.2.2
Code: Select all
local function init_chests()
-- gather all void chests on every surface in case another mod added some
global.VoidChests = nil
for _, surface in pairs(game.surfaces) do
chests = surface.find_entities_filtered{ name = "void-chest" }
for _, chest in pairs(chests) do
chest.infinity_container_filters = {}
chest.remove_unfiltered_items = true
end
end
end
chests variable is not local
There is also GhostPlacerExpress 0.1.6 issue
Code: Select all
if items_removed == 1 then
_, revived_entity, __ = player_selected.revive{raise_revive = true}
if revived_entity == nil then
revived_entity variable is not local
Thanks for letting me know which mod causes it! <3
Re: Random Desync in Multiplayer
Posted: Thu Dec 26, 2019 4:40 pm
by DawnbringerHUN
Optera wrote: ↑Wed Dec 25, 2019 10:44 am
Having someone proofread my code is always helpful, thanks.
If I see it right, you fixed Void Chest in 2.2.3, thanks!