SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Source-checkedTechnology & automation

Wire Fix

by Chalgaro46 · for Factorio

Select an area to rebuild copper wire connections between electric poles by distance, preserving external connections.

2.4KDownloads
7 mo agoLast updated
MITLicense
2.0Latest game version

About Wire Fix

From Factorio Mod Portal

Select an area to rebuild copper wire connections between electric poles by distance, preserving external connections.

A small Factorio 2.0 utility that tidies copper wire connections between electric poles in a selected area.

After hours of building and rebuilding, copper wires between your electric poles often end up tangled — long crossings, redundant links, or poles wired to the wrong neighbors. Wire Fix rebuilds them based on distance, while preserving every connection that leaves your selection.

Features

  • Distance-based rebuild — picks the shortest valid wires, expands evenly along consistent axes, and keeps the network connected.
  • Preserves external connections — wires going to poles outside your selection are never touched.
  • Per-pole connection cap — limit how many copper wires each pole keeps (default 4, configurable 1–8).
  • Reverse-select to disconnect — right-click drag to remove all internal copper wires in the selection.
  • Multiplayer safe — deterministic algorithm, no global state.
  • Localized into 26 languages — Czech, Danish, Dutch, English, Finnish, French, German, Greek, Hungarian, Italian, Japanese, Korean, Norwegian, Polish, Portuguese (BR/PT), Romanian, Russian, Simplified Chinese, Spanish (ES/MX), Swedish, Traditional Chinese, Turkish, Ukrainian, Vietnamese.

Usage

  1. Press ALT + W (or click the shortcut bar icon) to get the Wire Fix tool in your cursor.
  2. Left-click and drag over an area containing electric poles to rebuild the copper wires inside that selection.
  3. Right-click and drag to disconnect all copper wires between poles in the selection.

A small flying-text message reports how many poles were processed and how many wires were placed.

Settings

Max connections per pole (per-player runtime setting, default 4) Each pole keeps at most this many copper wire connections after cleanup. Connections leaving the selection count against this cap, so a pole already saturated by external wires won't get internal ones added.

How it works

Wire Fix solves a constrained graph problem on the poles inside your selection:

  1. Classify existing copper connections as internal (both endpoints in selection) or external (preserved as-is).
  2. Build candidate edges between every pair of poles within reach, using a spatial hash so it stays fast on large selections.
  3. Kruskal MST by distance — the shortest set of wires that keeps the network connected, respecting per-pole slot caps.
  4. Cascading axis-aware densification — propagates wires of the same distance and angle along the MST so parallel rows of poles get parallel wires, not zig-zag patterns.
  5. Diff-apply — only the wires that actually changed are added or removed via the API. Existing correct wires stay untouched.

The result is stable, looks tidy, and works on selections from a handful of poles to the thousands.

Compatibility

  • Factorio: 2.0+
  • Dependencies: base only
  • Works with any mod that adds electric poles (Bob's, Krastorio 2, etc.) — uses each pole's own max wire distance.
  • No prototype changes; safe to add to or remove from existing saves.

Source & feedback

Issues and suggestions welcome — please use the Discussion tab on this page.

Highlights

From source data

Game versions

Built for Factorio 2.0.

Footprint

Rated a light load on a server.

License

Published under MIT.

Wire Fix on Nxeon

From our catalogue
One-click install
Supported on Nxeon Factorio servers. We download it from Factorio Mod Portal, place it, and restart the server.
Server side
Required on the server
Server load
light
Smallest plan we suggest
Factorio — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
0.2.2, released 2026-05-07

Run Wire Fix on a Factorio server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Factorio Mod Portal as “Mods”

Technology & automation

Machines, power, logistics and automation.

Runs on your server

From source side support

Factorio Mod Portal lists Wire Fix as required on the server. Check its Factorio Mod Portal page to see whether players need it too.

Compatibility

Game
Factorio
Runs on
Serverrequired on the server
Game versions
2.0

Verified at the source

  • ✓Factorio Mod PortalOfficial listing, checked 2026-10-08Open ↗
  • ✓AuthorChalgaro46, as published on Factorio Mod Portal
  • ✓LicenseMITFree

Wire Fix, answered

Generated from the mod’s own source data.

Do my players need to install Wire Fix?

Factorio Mod Portal lists Wire Fix as required on the server. Check its Factorio Mod Portal page to see whether players need it too.

Is it free?

Yes. Wire Fix is free to download from Factorio Mod Portal. Its license is MIT.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Wire Fix on a Factorio server.

Deploy in about a minute from $2.99 a month, then add Wire Fix in one click.