Wireless Charging - Multiplayer Desync Fix

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Wireless Charging - Multiplayer Desync Fix

Post by Ranakastrasz »

viewtopic.php?f=93&t=31910

I've been trying to get this to work in multiplayer. However, you get a
Desync loop when you load an existing game with a charging pad placed in the world.

The cause was pretty obvious. It ran actual stuff in the on_load event, which naturally didn't sync between players.
Converting it all to on_configuration_changed fixed it, except for one problem.
The "rebuild_caches" function never runs, and apperently needs to run on_load, for it to work. No idea what happens when you save or when the server starts up,
but it doesn't seem to be working.

If I remove a charging pad in the loaded game and place it down again, it works fine. I don't know what the data looks like vs what it should look like, so I am unsure what to use to trigger a fix. Overall, I got as far as I could on trying to get this to work.
Any suggestions?
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

Post Reply

Return to “Modding help”