[Lou][2.0.12] LuaSurface::set_tiles doesn't properly unstack tiles

This subforum contains all the issues which we already resolved.
Hanodest
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sun Aug 11, 2024 10:55 pm
Contact:

[Lou][2.0.12] LuaSurface::set_tiles doesn't properly unstack tiles

Post by Hanodest »

Scenario:
- Create a tile with concrete (minable tile) over landfill (foundation tile) over water (non-minable tile).
- Use LuaSurface::set_tiles to set the tile to landfill.

Expected behavior:
- Tile now just have a landfill (as tile) over the water (as hidden_tile).

Actual behavior:
- Tile now has landfill (as tile) over concrete (as hidden_tile) over landfill (as double_hidden_tile).
scenario1.png
scenario1.png (376.27 KiB) Viewed 235 times

Another scenario:
- Create a tile with landfill (foundation tile) over water (non-minable tile).
- Use LuaSurface::set_tiles to set the tile to water.

Expected behavior:
- Tile now has just water (as tile). This was the behavior in 1.1.

Actual behavior:
- Tile now has water as both tile and hidden_tile.
scenario2.png
scenario2.png (325.75 KiB) Viewed 235 times

User avatar
Lou
Factorio Staff
Factorio Staff
Posts: 156
Joined: Mon Nov 30, 2020 10:50 am
Contact:

Re: [Lou][2.0.12] LuaSurface::set_tiles doesn't properly unstack tiles

Post by Lou »

Thank you for the report. the behaviour has been fixed/reworked for 2.0.18.

Post Reply

Return to “Resolved Problems and Bugs”