Cleaner Power Poles

by Lawlzer

Rewires electric poles into clean deterministic local graphs with redundant grid-like copper wiring.

2 days ago
2.1
6
Owner:
Lawlzer
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
2 days ago
Latest Version:
0.1.0 (2 days ago)
Factorio version:
2.1
Downloaded by:
6 users

Cleaner Power Poles tidies copper wiring automatically as you place electric poles. It favors short connections and four-sided loops, leaving square grids free of unnecessary diagonals without moving any poles.

  • Keeps connected poles connected and separate networks separate.
  • Preserves red and green circuit wires, power-switch connections, and script-owned copper wires.
  • Keeps necessary bridges when removing them would disconnect a network.

Use /cpp-rewire to clean up around the selected or nearest pole. Use /cpp-rewire all to clean the current surface incrementally, or /cpp-rewire status and /cpp-rewire cancel to check or stop the sweep.

Requires Factorio 2.1. The default limit of 100 poles per rebuild is recommended for ordinary play.

AI disclosure: AI wrote much of the code. Lawlzer directed the design, reviewed the implementation, and handled testing and documentation.