Wireless Charging - Multiplayer Desync Fix
Posted: Sat Mar 25, 2017 12:50 am
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?
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?