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?
Editing a Logistic chest's requester filters with scripts
-
- Manual Inserter
- Posts: 3
- Joined: Fri Aug 01, 2025 5:50 am
- Contact:
Re: Editing a Logistic chest's requester filters with scripts
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
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
-
- Manual Inserter
- Posts: 3
- Joined: Fri Aug 01, 2025 5:50 am
- Contact:
Re: Editing a Logistic chest's requester filters with scripts
Getting the logistic point works but add_section returns nil
-
- Manual Inserter
- Posts: 3
- Joined: Fri Aug 01, 2025 5:50 am
- Contact:
Re: Editing a Logistic chest's requester filters with scripts
get_logistic_sections() seems to work well