Page 1 of 1

[2.0.39] Placing non-minable tiles does not erase hidden tiles

Posted: Wed Mar 12, 2025 11:34 am
by Natha
https://lua-api.factorio.com/latest/classes/LuaSurface.html#set_tiles wrote:Placing a non-mineable tile will erase hidden and double hidden tiles
that does not apply. Do the following with debug settings "show raw tile transitions" and "show hidden tiles".

Code: Select all

/c game.player.surface.set_tiles({{position={0, 0}, name="out-of-map"}})
/c game.player.surface.set_hidden_tile({0, 0}, "concrete")
/c game.player.surface.set_tiles({{position={0, 0}, name="deepwater"}})
It still has "concrete" has hidden tile.
Only when placing an "out-of-map", hidden tiles will be erased

Re: [2.0.39] Placing non-minable tiles does not erase hidden tiles

Posted: Mon Apr 21, 2025 4:26 pm
by Rseding91
Thanks for the report. This seems correct: You've broken the assumptions of the hidden tiles logic by adding a minable tile under a not-minable one and so when you replace the not-minable tile with another not-minable tile it simply skips the hidden tiles logic.

If you don't want that behavior, simply don't do that.