Last placed concrete tile

sparr
Smart Inserter
Smart Inserter
Posts: 1508
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Last placed concrete tile

Post by sparr »

Apparently when the player attempts to place an entity ghost that requires concrete below it on Aquilo, the last type of concrete the player used is used for the new ghost. I'd like access to this value, so that my mod which places ghosts can replicate the vanilla behavior.

Also it doesn't work at all if the player hasn't placed concrete there yet, and there are also some other similar triggers for ice platforms that I haven't nailed down. If those flags were exposed that would also be helpful.
sparr
Smart Inserter
Smart Inserter
Posts: 1508
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: Last placed concrete tile

Post by sparr »

Bump. After a long adventure through many layers of problems trying to get https://mods.factorio.com/mod/automatic ... connectors working using build_from_cursor instead of create_entity, I'm giving up and going back to the drawing board on using create_entity, and that means I need to figure out when and which concrete tile to place under new ghosts on Aquilo.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15729
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Last placed concrete tile

Post by Rseding91 »

I've added LuaSurface get_default_cover_tile() and set_default_cover_tile() for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Implemented mod requests”