LuaLogisticPoint.active

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
micromario
Long Handed Inserter
Long Handed Inserter
Posts: 53
Joined: Thu Apr 05, 2018 11:53 am
Contact:

LuaLogisticPoint.active

Post 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

Post Reply

Return to “Modding interface requests”