Fac Connect

Build a validated run of transport-belt, pipe, or electric poles between two Factorio positions — the construction macro. Pathfinds around obstacles and places every segment. Use dry_run first to check feasibility and cost.

bdambrosio d15b515 3 files · 4.1 KB Updated

File contents

fac-connect

The transactional construction macro (cribbed from FLE's connect_entities): one call builds the whole run or fails as a unit.

Behavior

  • dry_run: true reports feasibility and how many segments the run needs — your "check my plan" affordance. Use it before committing.
  • The real run consumes segments from your inventory (fac-inventory).
  • Positions are ground positions. Belts do not connect INTO machines — furnaces and chests need an inserter between belt and machine (fac-place a burner-inserter).
  • Failure carries the standard deviation report (world_changed / stale_model / infeasible).
{"thought": "check the belt run cost first", "tool": "fac-connect", "args": {"from_x": 48, "from_y": 66, "to_x": 60, "to_y": 66, "dry_run": true}}

bdambrosio/cognitive_workbench/tree/main/src/tools_out/fac-connect commit d15b515182

Frequently asked questions

npx skillmds@latest add bdambrosio/fac-connect