Page 1 of 1

[0.14.21] Desync related to luaplayer.build_from_cursor()

Posted: Fri Jan 06, 2017 10:11 am
by Nexela
The below mod will desync if the on_built_event is raised by build_from_cursor()

After installing the mod just right click somewhere on the map.
See comments in hot key event
Raising the custom event from the command line or
Commenting out the build_from_cursor() line and uncommenting any of the game.raise event lines will not cause desyncs
on_built_entity
custom_event
hot_key
/c game.raise_event(remote.call("autorun", "get_id"), {player_index=game.player.index, position={x=5,y=0}})

Re: [0.14.21] Desync related to luaplayer.build_from_cursor()

Posted: Fri Jan 06, 2017 1:54 pm
by Rseding91
Ah yes, build_from_cursor should not be there. It was added for making the trailer but it's not MP safe.

I'll be removing it for 0.15.

Re: [0.14.21] Desync related to luaplayer.build_from_cursor()

Posted: Fri Jan 06, 2017 2:21 pm
by Nexela
Well booo, Looks like I will have to rethink how to handle this :)