[2.0.47] Clearing surface doesn't remove map tags

Bugs that are actually features.
Atraps003
Fast Inserter
Fast Inserter
Posts: 110
Joined: Thu Jan 04, 2018 6:34 am
Contact:

[2.0.47] Clearing surface doesn't remove map tags

Post 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
Rseding91
Factorio Staff
Factorio Staff
Posts: 15669
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.47] Clearing surface doesn't remove map tags

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Not a bug”