[2.0.73] Bots placing upgrades ignore tile_buildability_rules

Post your bugs and problems so we can fix them.
OhSnap
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sat Sep 06, 2025 6:47 pm
Contact:

[2.0.73] Bots placing upgrades ignore tile_buildability_rules

Post by OhSnap »

Same issue as viewtopic.php?p=439933
It looks like the fix back then was just to disallow these upgrades in the planner, not actually preventing the bots to build the upgrade.
Selecting upgrades with different collision requirements is currently possible, so this might be a regression.

But expected behaviour would be that these upgrades are still allowed and bots just idle above the thing-to-upgrade like they do over a ghost-to-build that relies on ghost tiles below.


Full form bug report:

What did you do?
- Added small mod (attached, upgrug.zip), which modifies assembling-machine-3 placement conditions
- Try to replace assembling-machine-2 with assembling-machine-3 by hand and by bots
What happened?
- operation is not possible by hand (expected), but bots perform the operation without checks (unexpected)
What did you expect to happen instead? It might be obvious to you, but do it anyway!
- Bot with assembling-machine-3 in inventory floats over upgrade target without upgrading until tile requirements are met (like they do for ghosts)
Does it happen always, once, or sometimes?
- always
Attachments
upgrug_0.1.0.zip
(584 Bytes) Downloaded 4 times
factorio-current.log
(10.49 KiB) Downloaded 5 times
upgrade bug.zip
(2.57 MiB) Downloaded 5 times
Last edited by OhSnap on Mon Feb 09, 2026 12:59 am, edited 5 times in total.
Loewchen
Global Moderator
Global Moderator
Posts: 10635
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [2.0.73] Bots placing upgrades can ignore entity collision settings.

Post by Loewchen »

Bots cannot upgrade entities with different collision boxes, if you found a way for them to do that provide exact steps please, see 3638.
OhSnap
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sat Sep 06, 2025 6:47 pm
Contact:

Re: [2.0.73] Bots placing upgrades can ignore entity collision settings.

Post by OhSnap »

Loewchen wrote: Sun Feb 08, 2026 5:01 pm Bots cannot upgrade entities with different collision boxes, if you found a way for them to do that provide exact steps please, see 3638.
Updated my post.
The issue is not different collision boxes, but different collision masks tile_buildability_rules. i.e. like original bug said, upgrade is only placeable on water, but original is not. I can provide a simple modded setup to reproduce this, but since this is now in "Not a Bug" I guess I have to open a new thread for it?

This is reproducable with a mod containing this single line in data.lua:
data.raw["assembling-machine"]["assembling-machine-3"].tile_buildability_rules = { { area = {{ -1, -1 }, {1, 1}}, required_tiles = { layers = { resource = true } } } }

This makes AM 3 to no longer be placeable by hand, but it will still be a valid upgrade for AM 2 in the upgrade planner and bots will happily perform that upgrade.
Genhis
Factorio Staff
Factorio Staff
Posts: 909
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: [2.0.73] Bots placing upgrades ignore tile_buildability_rules

Post by Genhis »

Thanks for the report. To be consistent with collision boxes, we could disable upgrade option for entities which have different tile buildability rules. I'm not sure if this would be desired in your case.
Post Reply

Return to “Bug Reports”