Repair Turret

by Klonan

Adds Repair Turrets

Content
24 days ago
0.17 - 2.0
100K
Combat Logistic network

b Repair turrets not placing, destroying items.

3 years ago
(updated 3 years ago)

I am running into a weird issue, where repair turrets are destroying items, trying to place them next to trees marked for deconstruction.

This happens in the tiles adjacent to the tree's collision, ones that items can be placed in normally, but for some reason the repair turrets fail to place there.

The repair turrets properly deconstruct things that need to be deconstructed if they are actually in the way (in the tiles that the tree's collision actively inhibits placement in), but for some reason fail to do this in this specific edge case.

Im calling it an edge case, but it is easily reproducible - Im uploading a save, with only repair turrets and core, latest 1.1.21/repair turrets v1. Simply place walls in the logistics box, and watch them all get deleted by the repair turrets, trying to place them next to tree. https://dl.dropboxusercontent.com/s/ygk2tawk9ikrzya/repair%20turret%20test.zip

Walls seem to be the only item I can find this with, other 1x1 items do not seem to be affected. If the turret runs out of walls to attempt building with, itll obviously revert to deconstruction mode, which is why I dont include any storage bins in the save.

edit - this has been confirmed to be a vanilla issue - a wall ghost placed on top of a tree/rock increases the collision box such that entities cannot be placed next to the tree/rock. Forum bug report post: https://forums.factorio.com/viewtopic.php?f=7&t=96043

New response