Desync on showing sprite button with tooltip (locale)
Posted: Thu Sep 29, 2016 11:26 pm
I found a desync which occurs when a mod overrides with a locale file some item-name. Basically after the locale overrides the item-name for an item in one language showing a gui-sprite button in the game will instantly lead to a desync.
I attached a minimal example of a mod which does override the locale for the item "pipe".
Afterwards my mod (BeltSorter) would show a item selection gui where the tooltip uses this item-name and leads to instant desyncs in multiplayer games.
To reduce the example I just used one command to reproduce the error:
Thanks for having a look at it!
Cheers,
judos
I attached a minimal example of a mod which does override the locale for the item "pipe".
Afterwards my mod (BeltSorter) would show a item selection gui where the tooltip uses this item-name and leads to instant desyncs in multiplayer games.
To reduce the example I just used one command to reproduce the error:
Code: Select all
/c game.player.gui.left.add({type="sprite-button",name="test", style="slot_button_style", sprite="item/pipe"}) game.player.gui.left.test.tooltip = game.item_prototypes["pipe"].localised_name
Cheers,
judos