[Rseding91] [2.0.23] Can't edit chart tag if script updates a different tag
Posted: Wed Dec 11, 2024 12:45 pm
What did you do:
Attempted to change the name/icon of a chart tag (created from the Add tag button):
- click on the tag
- type into the text field in the "Tag properties" window
- change the icon in the "Tag properties" window
What happened:
The text field and icon are periodically reset to the tag text from before opening the window.
What did you expect:
The text field should retain my changed input, and apply it to the chart tag when I press Confirm.
When does it happen:
The bug only appears when a script is updating chart tags while the editor is open (any script, any chart tag, including on different surfaces than the one being edited).
In my case, I'm using YARM, which creates chart tags corresponding to monitored sites and periodically updates the tags to contain the current resource amount within the site.
YARM has a runtime-global setting "Enable map markers" and disabling the setting (causing YARM to stop updating the chart tags/remove existing ones) mitigates the bug.
Attached are the latest factorio-current.log and a minimal reproduction save file:
- open the map
- attempt to rename or change the icon of the `qwert` chart tag
- wait up to 1 second
NB: YARM is configured for high interference in this save, with the chart tag refresh rate set to 1/60 ticks; in normal operation, the refresh rate is 600 ticks but there would also be many more chart tags. Additionally, the problem is not related to YARM -- any script updating any chart tag will cause the editor to reset.
Attempted to change the name/icon of a chart tag (created from the Add tag button):
- click on the tag
- type into the text field in the "Tag properties" window
- change the icon in the "Tag properties" window
What happened:
The text field and icon are periodically reset to the tag text from before opening the window.
What did you expect:
The text field should retain my changed input, and apply it to the chart tag when I press Confirm.
When does it happen:
The bug only appears when a script is updating chart tags while the editor is open (any script, any chart tag, including on different surfaces than the one being edited).
In my case, I'm using YARM, which creates chart tags corresponding to monitored sites and periodically updates the tags to contain the current resource amount within the site.
YARM has a runtime-global setting "Enable map markers" and disabling the setting (causing YARM to stop updating the chart tags/remove existing ones) mitigates the bug.
Attached are the latest factorio-current.log and a minimal reproduction save file:
- open the map
- attempt to rename or change the icon of the `qwert` chart tag
- wait up to 1 second
NB: YARM is configured for high interference in this save, with the chart tag refresh rate set to 1/60 ticks; in normal operation, the refresh rate is 600 ticks but there would also be many more chart tags. Additionally, the problem is not related to YARM -- any script updating any chart tag will cause the editor to reset.