trace_upstream
Trace the real supply chain for any machine or building: see what feeds it or what it feeds using your save's actual connections.
Instructions
What feeds a machine, or what it feeds -- walked on the save's own connections.
factory_query answers this between LABELLED sets. This answers it for one machine or
one building type, which is the question a cutover actually asks: thirteen Oil
Extractors sit on the Spire nodes and twenty Fuel Generators are burning, and repiping
the wrong extractor first drops several GW.
Direction is READ, not guessed. Every material edge carries its connector role, and 92.5% of the connectors landing on a machine name their direction outright; the rest are all on extractors or generators, whose own nature settles them. Where even that fails the edge is walked BOTH ways -- over-reporting a feeder is recoverable, missing one is not.
Belts and pipes are walked THROUGH and left out of the table: a trace from the generators touches 331 nodes at depth 72, nearly all of it conveyor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | ||
| seed | Yes | a machine instance, a factory label, or a building name | |
| limit | No | max rows (hard cap 25) | |
| world | No | ||
| direction | No | up (what feeds it) | down (what it feeds) | up |