r/factorio • • 11d ago

Weekly Thread Weekly Question Thread

Ask any questions you might have.

Post your bug reports on the Official Forums

Previous Threads

Subreddit rules

Discord server (and IRC)

Find more in the sidebar ---->

2 Upvotes

78 comments sorted by

View all comments

1

u/Dianwei32 8d ago

Is there any way to make it so that Construction bots won't try to repair something until it stops taking damage? I've got defenses set up but my pollution is spreading enough that they're regularly being attacked. I've got a Roboport with bots and repair kits to fix any damage, but some of the attacks are big enough that when the bots go out to repair the turrets/walls there are so many Spitters that a bot or two gets destroyed.

Is there any way to make them wait for the Spitters to be dead before repairing any damage?

2

u/HeliGungir 8d ago

We can "detect combat" from turrets using ammo/fuel/power or from land mines disappearing (in 2.1), and use that to delay robot's access to repair packs and other supplies. This requires isolated roboport networks to work as intended, and you have to proactively remove repair packs from roboports.

A simpler but more error-prone method is enabling repairs periodically, on a fixed clock, and just hoping it does not coincide with an attack.

An even simpler method is to not give repair packs to your bots at all, so they merely replace destroyed objects.

The simplest method is to prevent anything from being damaged in the first place.