[Rseding91] [2.0.23] Can't edit chart tag if script updates a different tag

This subforum contains all the issues which we already resolved.
User avatar
Narc
Filter Inserter
Filter Inserter
Posts: 284
Joined: Mon Feb 11, 2013 7:25 am
Contact:

[Rseding91] [2.0.23] Can't edit chart tag if script updates a different tag

Post by Narc »

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
12-11-2024, 14-39-50.png
12-11-2024, 14-39-50.png (29.02 KiB) Viewed 599 times
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.
Attachments
chart-tag-renaming.zip
(1.34 MiB) Downloaded 16 times
factorio-current.log
(8.61 KiB) Downloaded 15 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14848
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding91] [2.0.23] Can't edit chart tag if script updates a different tag

Post by Rseding91 »

Thanks for the report. This is now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
1n5aN1aC
Burner Inserter
Burner Inserter
Posts: 8
Joined: Mon Feb 24, 2014 8:04 pm
Contact:

Re: [Rseding91] [2.0.23] Can't edit chart tag if script updates a different tag

Post by 1n5aN1aC »

You guys are amazing!

I report the bug that's been annoying me for half of the SpaceAge release, mod author discovers it's probably a game bug, reports it to devs, devs have it fixed for the next release within a day!

Thank you so much for all your hard work!!!!!!
Post Reply

Return to “Resolved Problems and Bugs”