Page 1 of 1

Editing a Logistic chest's requester filters with scripts

Posted: Fri Aug 01, 2025 6:00 am
by Happy1speed
Hello.
my goal is to set a logistic container (Requester chest)'s request filter with scripting but so far, I have had no success.

Hopefully the answer isn't painfully obvious.

Any pointers?

Re: Editing a Logistic chest's requester filters with scripts

Posted: Fri Aug 01, 2025 10:33 am
by TurtleZ
This got a bit harder with 2.0's logistic groups, due to having multiple logistic sections on the same entity.

You can get the logistic points of your chest entity with get_logistic_point https://lua-api.factorio.com/latest/cla ... stic_point
Then create a new logistic section with add_section https://lua-api.factorio.com/latest/cla ... dd_section
This returns a LuaLogisticSection, on which you can edit slots with methods like set_slot https://lua-api.factorio.com/latest/cla ... l#set_slot

Re: Editing a Logistic chest's requester filters with scripts

Posted: Fri Aug 01, 2025 9:46 pm
by Happy1speed
Getting the logistic point works but add_section returns nil

Re: Editing a Logistic chest's requester filters with scripts

Posted: Fri Aug 01, 2025 11:06 pm
by Happy1speed
get_logistic_sections() seems to work well