Random Desync in Multiplayer

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
DawnbringerHUN
Burner Inserter
Burner Inserter
Posts: 11
Joined: Tue Jun 27, 2017 8:10 am
Contact:

Random Desync in Multiplayer

Post 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?
Loewchen
Global Moderator
Global Moderator
Posts: 9318
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Random Desync in Multiplayer

Post 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.
DawnbringerHUN
Burner Inserter
Burner Inserter
Posts: 11
Joined: Tue Jun 27, 2017 8:10 am
Contact:

Re: Random Desync in Multiplayer

Post 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.
Loewchen
Global Moderator
Global Moderator
Posts: 9318
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Random Desync in Multiplayer

Post by Loewchen »

See my signature, deactivating the mods will be faster though.
DawnbringerHUN
Burner Inserter
Burner Inserter
Posts: 11
Joined: Tue Jun 27, 2017 8:10 am
Contact:

Re: Random Desync in Multiplayer

Post 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.
DawnbringerHUN
Burner Inserter
Burner Inserter
Posts: 11
Joined: Tue Jun 27, 2017 8:10 am
Contact:

Re: Random Desync in Multiplayer

Post 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.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3070
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Random Desync in Multiplayer

Post 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
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Random Desync in Multiplayer

Post by Optera »

Having someone proofread my code is always helpful, thanks.
DawnbringerHUN
Burner Inserter
Burner Inserter
Posts: 11
Joined: Tue Jun 27, 2017 8:10 am
Contact:

Re: Random Desync in Multiplayer

Post 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
DawnbringerHUN
Burner Inserter
Burner Inserter
Posts: 11
Joined: Tue Jun 27, 2017 8:10 am
Contact:

Re: Random Desync in Multiplayer

Post 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!
Post Reply

Return to “Technical Help”