[15.34] print and tostring desync
Posted: Sat Sep 16, 2017 9:43 pm
I was helping to make some server side scripts for explosive gaming when I encountered a lot of desyncs around the use of a certain custom command, this lead me to try and find the cause and after much testing I cam to it being the use of tostring and player.print or game.print
To make sure that it was not a scripting problem I opened a non modded multyplayer and got a friend to join, the command of /c game.print(tostring({})) and /c game.print(tostring(game.player)) both caused my friend to desync.
To test that it was not the use of /c causing the desync I made a simple script to run on a dedicated headless server (see control.lua) every 30 seconds it will run game.print(tostring({})) and every 30 seconds with an offset of 15 seconds it will run tostring({}) I created this map using a scenario but it is reproducible without with use of /c.
And as I thought I desynced once the game.print(tostring({})) was ran by the script (see desync report)
I hope that you can find what is causing this desync as it was not like this in previous versions, I'll be bale to provide more context or files if they are needed. Thank you in advanced.
To make sure that it was not a scripting problem I opened a non modded multyplayer and got a friend to join, the command of /c game.print(tostring({})) and /c game.print(tostring(game.player)) both caused my friend to desync.
To test that it was not the use of /c causing the desync I made a simple script to run on a dedicated headless server (see control.lua) every 30 seconds it will run game.print(tostring({})) and every 30 seconds with an offset of 15 seconds it will run tostring({}) I created this map using a scenario but it is reproducible without with use of /c.
And as I thought I desynced once the game.print(tostring({})) was ran by the script (see desync report)
I hope that you can find what is causing this desync as it was not like this in previous versions, I'll be bale to provide more context or files if they are needed. Thank you in advanced.