Page 1 of 1
[2.0.47] Clearing surface doesn't remove map tags
Posted: Tue Jun 03, 2025 9:01 am
by Atraps003
Add map tags to nauvis surface. Run /c game.surfaces["nauvis"].clear(true)
The tags are not removed. Clearing surface removed map tags in version 1.1.110
Re: [2.0.47] Clearing surface doesn't remove map tags
Posted: Tue Jun 03, 2025 1:43 pm
by Rseding91
Thanks for the report. This is not a bug. Tags were removed previously as part of clearing the surface because as part of clearing the surface it would delete all chunks, and as part of that operation it would un-chart all chunks deleted. In 1.1 chart tags were stored on the chart data for a given chunk and so by deleting the chunk which deleted the chart for the chunk it deleted tags for the chunk.
In 2.0, tags are stored independent of any of that information and so they don't get deleted with the chunks. This also means they can exist on chunks that haven't been revealed yet.
If you want to delete all chart tags you can do that here:
https://lua-api.factorio.com/latest/cla ... chart_tags and call destroy on them.