Editing a Logistic chest's requester filters with scripts

Place to get help with not working mods / modding interface.
Happy1speed
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Aug 01, 2025 5:50 am
Contact:

Editing a Logistic chest's requester filters with scripts

Post 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?
TurtleZ
Inserter
Inserter
Posts: 20
Joined: Thu Apr 07, 2016 3:26 pm
Contact:

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

Post 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
Happy1speed
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Aug 01, 2025 5:50 am
Contact:

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

Post by Happy1speed »

Getting the logistic point works but add_section returns nil
Happy1speed
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Aug 01, 2025 5:50 am
Contact:

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

Post by Happy1speed »

get_logistic_sections() seems to work well
Post Reply

Return to “Modding help”