[2.0.72] tile_buildability_rules aren't respected after entity placement for non thruster/asteroid collector entities

Place to report issues and suggest improvements to the API documentation.
oobanooba
Inserter
Inserter
Posts: 23
Joined: Thu Nov 21, 2024 4:17 pm
Contact:

[2.0.72] tile_buildability_rules aren't respected after entity placement for non thruster/asteroid collector entities

Post by oobanooba »

Hi, I'm trying to make a mod which requires some entities that can only be placed at the edge of platforms, similar to thrusters and asteroid collectors. To do this, I'm using tile_buildability_rules just as thrusters and asteroid collectors do.

As you can see, when it comes to placing my entity, all is well.
12-12-2025, 18-04-33.png
12-12-2025, 18-04-33.png (346.28 KiB) Viewed 233 times
But if I place the entity first, then those collision rules aren't respected.
12-12-2025, 18-05-10.png
12-12-2025, 18-05-10.png (568.49 KiB) Viewed 233 times
I expected behaviour identical to thrusters and asteroid collectors, where those tiles couldn't be placed since they collide with the cyan box.
Attachments
factorio-current.log
(13.33 KiB) Downloaded 11 times
oobanooba
Inserter
Inserter
Posts: 23
Joined: Thu Nov 21, 2024 4:17 pm
Contact:

Re: [2.0.72] tile_buildability_rules aren't respected after entity placement for non thruster/asteroid collector entitie

Post by oobanooba »

New information: tile_buildability_rules are respected for tiles inside the collision box of the entity. Which is weird, but ultimately doesn't give me a workaround to this issue.
Genhis
Factorio Staff
Factorio Staff
Posts: 900
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: [2.0.72] tile_buildability_rules aren't respected after entity placement for non thruster/asteroid collector entitie

Post by Genhis »

Thanks for the report, this is not a bug. We don't have a performant way to search for entities which have tile buildability rules outside of their collision box, so these checks are not run when new tiles are placed. This is the main reason why you can landfill the offshore pump. Thrusters and asteroid collectors are treated differently because we wanted to enforce this rule and we don't expect a lot of them on one platform.
oobanooba
Inserter
Inserter
Posts: 23
Joined: Thu Nov 21, 2024 4:17 pm
Contact:

Re: [2.0.72] tile_buildability_rules aren't respected after entity placement for non thruster/asteroid collector entitie

Post by oobanooba »

Genhis wrote: Fri Dec 12, 2025 8:07 pm Thanks for the report, this is not a bug. We don't have a performant way to search for entities which have tile buildability rules outside of their collision box, so these checks are not run when new tiles are placed. This is the main reason why you can landfill the offshore pump. Thrusters and asteroid collectors are treated differently because we wanted to enforce this rule and we don't expect a lot of them on one platform.


Ok thank you. Can the documentation for tile_buildability_rules be updated to clarify this?
Post Reply

Return to “Documentation Improvement Requests”