Expose default cover tile for packed ice
Posted: Sat Nov 23, 2024 1:26 pm
Hello,
For my mod P.U.M.P. I place pump- and pipe ghosts on liquid resources. I also place landfill, packed ice, or foundation using the default-cover-tile exposed in the API for the tiles that need it.
However, there doesn't appear to be a way find which tile to use to cover meltable tiles. I can see a tile is meltable by checking the "meltable" property in the collision mask. I suppose I can figure out which tiles could be used as cover for meltable tiles, using the thawed property.
But that doesn't help figure out which I should be using. So far I am just using hard-coded concrete. But a user pointed out there's a hidden variable that tracks which tile was used last: https://mods.factorio.com/mod/pump/disc ... 24980b9cdf
This is backed up by a (not-a-) bug report I found: viewtopic.php?t=118642
I asked in discord, and Xorimuth confidently replied that it's not exposed: https://discord.com/channels/1396775903 ... 3527109642
I would like access to that variable, so I can offer the same tile-covering experience using my mod, as the players already can with building regularly using forced-build.
Thanks!
For my mod P.U.M.P. I place pump- and pipe ghosts on liquid resources. I also place landfill, packed ice, or foundation using the default-cover-tile exposed in the API for the tiles that need it.
However, there doesn't appear to be a way find which tile to use to cover meltable tiles. I can see a tile is meltable by checking the "meltable" property in the collision mask. I suppose I can figure out which tiles could be used as cover for meltable tiles, using the thawed property.
But that doesn't help figure out which I should be using. So far I am just using hard-coded concrete. But a user pointed out there's a hidden variable that tracks which tile was used last: https://mods.factorio.com/mod/pump/disc ... 24980b9cdf
This is backed up by a (not-a-) bug report I found: viewtopic.php?t=118642
I asked in discord, and Xorimuth confidently replied that it's not exposed: https://discord.com/channels/1396775903 ... 3527109642
I would like access to that variable, so I can offer the same tile-covering experience using my mod, as the players already can with building regularly using forced-build.
Thanks!