Per-silo filter for fulfilling automatic requests

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

jmillikin
Inserter
Inserter
Posts: 21
Joined: Tue Oct 22, 2024 1:50 am
Contact:

Per-silo filter for fulfilling automatic requests

Post by jmillikin »

TL;DR
Let rocket silos have an item filter that applies to automatic requests, so that silos can be constrained in which items they launch.
What?
* Add UI to the rocket silo so that the player can restrict which items a specific silo is allowed to launch when fulfilling automatic logistic requests.
* Let this item filter be read from the circuit network, so that silos can be managed in bulk and exports can be restricted by circuit policy.
* Have a mode slider so the filter can operate as either an allow-list or deny-list, similar to inserters' filters.
Why?
This makes it easier to allocate separate rocket silo capacity between bulk exports (science packs, planet-specific resources) and small-run exports (e.g. the outputs of a mall). Specifically I want to be able to control which silos are allowed to export planet-specific resources such as tungsten or holmium plates, and restrict exports during times of scarcity.

See viewtopic.php?t=126482 for an earlier suggestion that tried to solve the same problem via a different mechanism (silo names).

edit: I pointed an LLM at the 2.1.20 binary and it was able to produce a shim .so that adds Lua hooks for rocket silo payload dispatch + write a mod against those hooks to add new UI. The body of the shim is ~300 LoC in payload_hook.cpp and filters.cpp.

Even if the feature isn't added to the game as-is, it'd be nice to get some extension points added to the modding API so a pure-Lua mod could implement it.

Screenshot_2026-09-26_16-22-10.png
Screenshot_2026-09-26_16-22-10.png (747.03 KiB) Viewed 51 times
Attachments
silo-filters.zip
(26.16 KiB) Downloaded 3 times
Post Reply

Return to “Ideas and Suggestions”