Page 1 of 1

LuaLogisticPoint.active

Posted: Wed Aug 19, 2020 7:18 pm
by micromario
Hello,

I would like to see a new writable property defined for LuaLogisticPoint; LuaLogisticPoint.active

Setting LuaLogisticPoint.active = false would stop all pickups or deliveries by bots

Image

My use-case is this:
I made this mod https://mods.factorio.com/mod/spidertron-logistics
The mod uses special requester chests to order Spidertrons to move items from Spidertron provider chests
The problem is that the requester is internally a normal requester chest, so bots almost always fulfill the request before the Spidertron arrives

I could use a weird workaround, such as defining the requests based on a hidden constant combinator, but this would make the UI incredibly clunky and ruin the simplicity of the mod

Other mods which add use the logistic system indirectly would also benefit from this greatly

Image

If checking for this flag is bad for performance, or it complicates the logic, then you could instead define it on prototypes
Something like:
logistic-container.bot_interactable = false