Source-checkedPerformance

Line loss

by Piercarmine · for Factorio

Electric grid power is lost along the wires, depending on distance, pole type and the power carried. DC power flow simulation. Optimise your electric grid!

67Downloads
todayLast updated
MITLicense
Factorio Mod PortalSource

About Line loss

From Factorio Mod Portal

Electric grid power is lost along the wires, depending on distance, pole type and the power carried. DC power flow simulation. Optimise your electric grid!

Disclaimer: This mod is still in active development, balance and features may change in new versions.

An add-on for Power Overload, on its way to becoming standalone. Power is lost along copper wires, depending on resistance weighted distance, pole type and load. Runs a DC power flow simulation on each electric network. Every loss is visible in the electric network statistics. Check out the notebooks in the github page for a detailed explanation of how the mod works and for some cool graphs!

How it works

This mod simulates power transmission losses, on top of the Power Overload network separation with Transformers.

There exist three kinds of power transmission loss (for now):

  • Line loss: proportional to i^{2}r, where i is the current (assuming V constant over the whole network) and r the resistance weighted wire length; a DC power flow model simulates the power flow through each electrical network, and consumes part of the transmitted electricity through a hidden consumer;
  • Transformer inefficiency: a transformer passes 99% (map setting) of what it receives; Power Overload's own efficiency is locked at 1 to avoid counting it twice.
  • Transformer core loss: a fixed power draw of 0.1% of the transformer rating, which is the rating of the strongest pole on the transformer's weaker side.

Interface

  • Line loss and Transformer losses consumers appear in the electricity overview
  • Transformer panel to inspect its losses;
  • Line loss Toolkit: a new panel including visualisation options, opened with any Line loss map view;
  • Map views to draw line loading and power distribution, complementary to PO's network visualisation;
  • An Energy Tab (adapted from Energy Category, see credits) to tidily hold all energy related entities;

Line loss calculation

Each wire loses a share of the power P it carries:

loss = P × min(p_tile × R × (0.1 + 0.9 × P / P_ref), 95%)

  • R = length × (r_A + r_B) / 2: the wire's resistance-weighted length (×2 for a transmission pole wired straight to a distribution pole)
  • p_tile: map setting "Line loss per tile" (0.025%)
  • P_ref= P_rating / 4
  • At P = P_ref a wire loses p_tile × R; it loses less below that (never under a tenth of it), and more above it: loss grows with P².

Gameplay

  • Poles have different resistances based on their PO rating, and are classified as distribution or transmission poles;

r = √(P_big / P_pole), with P_big the big electric pole's rating (300 MW)

| Pole | Power Overload rating | Resistance per tile $r$ | Class | |----------------------|----------------------:|------------------------:|--------------| | Huge electric pole | 1 GW | 0.55 | Transmission | | Big electric pole | 300 MW | 1.00 | Transmission | | Substation | 125 MW | 1.55 | Distribution | | Compact substation | 125 MW | 1.55 | Distribution | | Medium electric pole | 60 MW | 2.24 | Distribution | | Small electric pole | 10 MW | 5.48 | Distribution |

  • Transmission poles have no supply area
  • Wiring a transmission pole straight to a distribution pole incurs in a penalty to the connection's resistance (×2).
  • Power flow naturally splits over the whole network, lower resistance lines draw more power than higher resistance lines!
  • Poles are checked for destruction based on their local power, replacing the PO check which is locked to "Nothing".
  • Fulgora isolated networks are supported, as lightning rods and accumulators are counted as generators;

Performance

The DC power flow simulation is not light, and scales badly with the number of poles in a network. With the use of Transformers, we are breaking down the huge vanilla network into smaller ones, and this is what allows the simulation to be viable. Consider reducing the size of your biggest networks (find them in the Simulation tab) if you encounter slowdowns! On a 3000 poles base divided in 300 networks of uneven size, each electricity flow update takes about 40 ticks, and is done every 5 seconds.

Credits and licence

and uses parts of its code.

Lumme (MIT), including its tab icon; the idea of moving every pole there from Power poles in energy tab by Ander_PC_.

  • MIT licence (see LICENCE.txt).

Highlights

From source data

Footprint

Rated a light load on a server.

License

Published under MIT.

Last update

Its author last shipped an update today.

Line loss 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.4.1, released 2026-11-30

Recent builds

BuildReleasedGame versionsLoaders
0.4.12026-11-302.1n/a
0.4.02026-11-302.1n/a
0.3.62026-11-272.1n/a
0.3.52026-11-262.1n/a
0.3.42026-11-252.1n/a
0.3.32026-11-252.1n/a

Dependencies

Declared by the newest build that lists any. Required ones are installed with it on one-click installs.

Run Line loss 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”

Performance

Makes the game or server run faster or lighter without changing how it plays.

Runs on your server

From source side support

Factorio Mod Portal lists Line loss 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

Verified at the source

  • ✓Factorio Mod PortalOfficial listing, checked 2026-11-30Open ↗
  • ✓AuthorPiercarmine, as published on Factorio Mod Portal
  • ✓LicenseMITFree

Line loss, answered

Generated from the mod’s own source data.

Do my players need to install Line loss?

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

Is it free?

Yes. Line loss 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 Line loss on a Factorio server.

Deploy in about a minute from $2.99 a month, then add Line loss in one click.