Line loss


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!

Overhaul
15 hours ago
2.1
71
Power

Changelog

Version: 0.4.1
Date: 2026-11-30
  Major Features:
    - Power Overload's transformers are replaced by Line loss transformers: those already built are converted automatically (same place, switch state, map colour and wires). Power Overload's transformer can no longer be crafted; blueprints with it build Line loss transformers.
  Bugfixes:
    - Line loss transformers are built switched on.
    - Line loss transformers follow sudden demand jumps within a few ticks instead of about a second, and come back down when demand falls.
Version: 0.4.0
Date: 2026-11-30
  Major Features:
    - Line loss transformers are meant to permanently replace Power Overload's transformers, on the path to Line loss becoming standalone. Upgrade your transformers to them.
  Features:
    - Line loss transformer: parallel transformers share the load by the DC power flow. Power Overload's transformers upgrade to it.
    - Line loss transformers have a name, a colour, a "Show as" icon for the electricity overview (e.g. Steam turbine via LLT) and circuit readings and switching. Copy/paste with Shift+click.
    - Line losses: outage preview (N-1) of the hovered pole.
  Changes:
    - Networks view: one colour per transformer-fed network, like Power Overload. Generation networks and colouring by source as toolkit options.
    - "Feeder" renamed "source" in all texts.
    - "This network is fed by": icons, same-name sources share a row.
    - Toolkit: Fed by list only for transformers.
    - Simulation panel: tooltip on Biggest networks.
  Bugfixes:
    - Parallel transformer split no longer drifts (each transformer's power measured on itself).
    - Core loss only while a transformer passes power.
    - "This network is fed by" shares sum to 100%.
    - "Unify power unit" works in the default transformer panel.
    - Panels can be dragged without stopping at every refresh.
Version: 0.3.6
Date: 2026-11-27
  Changes:
    - Higher-quality poles have lower resistance.
    - Poles without a supply area always count as transmission poles (e.g. floating electric pole with Krastorio 2 and Cargo Ships); fuses count as their pole.
    - Substations always count as distribution poles and keep their supply area, whatever their rating (e.g. Nexelit substation with Pyanodon).
    - Transmission poles renamed (e.g. Big transmission pole, Huge transmission fuse); other mods' poles keep their name.
    - Big electric pole hidden: only the big transmission pole is crafted; big poles already built keep their supply area and give a big transmission pole when mined.
    - Line losses: marginal loss map, the extra loss per MW drawn at each pole (Line Loss Toolkit).
Version: 0.3.5
Date: 2026-11-26
  Changes:
    - Faster cascading blackouts: overloaded poles die right after each solve, and a pole dying triggers a quick re-solve (destroy mode).
    - Pole loading now includes the power lost on the wires beyond each pole.
    - Line losses: colour contrast slider (Line Loss Toolkit, per player).
    - Recipes that use the big electric pole (e.g. other mods' poles) now use the big transmission pole.
Version: 0.3.4
Date: 2026-11-25
  Changes:
    - Line loading: colour contrast slider, and adjustable yellow and red limits for % of rating (Line Loss Toolkit, per player).
    - Pole ratings from 0.3.3: existing installs keep their saved ratings; reset them in the startup settings to get the new defaults.
Version: 0.3.3
Date: 2026-11-25
  Changes:
    - Poles rated above the big pole (huge pole, fuses, modded poles) default to 1/3 of Power Overload's rating (2/3 with K2/Py).
Version: 0.3.2
Date: 2026-11-25
  Changes:
    - Added compatibility for modded generators (e.g. Wind Turbines Relaunched): if they are built as electric-energy-interfaces, they are counted as generators by Line loss.
Version: 0.3.1
Date: 2026-11-25
  Changes:
    - Machine loads always placed per pole by their live draw; machine weighting setting removed.
    - Idle machines weigh only their drain (setting "Weight machines by their working status", on).
    - Power loss in network: line loss and transformer losses always shown.
    - "Highlight network on map" moved into the Power loss in network panel.
    - Power loss in network: power production capacity row; hover it, or "from generators", for the generators by type.
    - Pole ratings follow Power Overload's defaults (e.g. Krastorio 2); huge pole 10/3 of the big pole, no longer locked.
Version: 0.3.0
Date: 2026-11-24
  Changes:
    - Every network gets a full Kirchhoff solve; losses grow with power on every wire. Balance change.
    - Topology cached per network, rebuilt when wires change and every 60 s.
    - Removed the distribution model setting and the transmission/distribution network split.
    - Networks view: every pole in the colour of its main source; removed "Plot network types".
    - Total power loss panel: one line loss row; network panel works on any pole.
    - Power loss in network: "Highlight network on map" draws it in white, every other wire in black.
    - Simulation panel: the three biggest networks (nodes, poles), each with a Show button.
    - Fixed: networks fed only by lightning rods or accumulators not simulated until they had produced.
    - Simulation panel: script time is now an opt-in per player setting.
Version: 0.2.5
Date: 2026-11-19
  Changes:
    - Generators pay the line loss on their routes. Balance change.
    - Lightning rods, collectors and accumulators count as generators.
    - Networks with no transformer (e.g. Fulgora islands) are now simulated.
    - Total power loss panel: generation networks merged into distribution.
    - Networks view and distribution panel: generator-fed poles shown.
Version: 0.2.4
Date: 2026-11-19
  Changes:
    - Total power loss panel: capacity, peak and satisfaction; breakdowns by generator type in tooltips.
    - New Power loss in distribution network panel, for the hovered distribution pole.
    - New Line Loss Toolkit: panel and plot ticks, remembered per view; each view's options under its own heading.
    - Plot feeders: also for a hovered pole.
    - Line losses view option: show loss as % of power carried.
    - Alerts for poles at 90% of their rating or more.
    - Removed the Line loading (% of rating) shortcut: tick "Show loading as % of rating" instead.
Version: 0.2.3
Date: 2026-11-18
  Changes:
    - Networks view: distribution networks in the colour of the transformer feeding each pole.
    - Networks view: "Network types" checkbox for the white and blue view.
    - FAQ updated for 0.2.2.
Version: 0.2.2
Date: 2026-11-16
  Changes:
    - Networks view: transmission networks white, distribution networks blue.
    - Feeders panel: new player setting to also list feeders sending negligible power.
    - "Transformer losses" moved to the transformer output (downstream network).
    - Line losses view: new Total power loss panel (generated, delivered, every loss).
    - Power Overload's pole hover text no longer flashes.
    - Huge electric pole rating locked at 1 GW. Huge lines carrying more will overload.
  Bugfixes:
    - Fixed a crash when a pole was removed while the network data was being rebuilt.
Version: 0.2.1
Date: 2026-11-14
  Features:
    - Feeders panel (with any map view on): tick "Show feeders" to mark on the map what feeds the transformer hovered or opened, and list its feeding transformers and generators, each with a Show button.
  Changes:
    - Feeders panel replaces the highlighted feeding wires when hovering a transformer.
    - Network panel hidden for now.
Version: 0.2.0
Date: 2026-11-13
  Features:
    - New loss model. Transmission networks (only transmission poles): power divides over parallel lines by resistance, and each wire loses more the more it carries (the old rate at a quarter of its rating, at least a tenth of it at light load). Distribution networks (any distribution pole or generators): each pole is fed by its nearest transformer, or its nearest generators while they have output left (solar by daylight); loss per tile as before. The pole window shows the network's kind.
    - Transmission poles: every pole rated like a big pole or more (fuses and other mods' poles included) has no supply area and is named "<pole> (transmission)". The big electric pole can no longer be crafted: build the big electric pole (transmission); big poles already built keep working, and the upgrade planner converts them.
    - Mixed wires: a wire straight from a transmission pole to a distribution pole, or between transmission poles in a distribution network, costs extra resistance (setting, ×2); the first kind is dashed in the map views.
    - Poles overload on the power through them (Power Overload's own check off by default): destroy, damage or catch fire.
    - Map views: line loading (power), line loading (% of rating), line losses (with the power panel), networks (transmission vs distribution, and what feeds each pole). Hovering a transformer highlights the wires carrying its power.
    - Compact substation: a substation with a medium pole's supply area.
    - Energy tab in the crafting menu (adapted from Energy Category by Lumme), with rows for transmission poles, distribution poles and transformers. Uses Energy Category's tab when installed.
  Changes:
    - Desloppified in-game text.
    - Power Overload's "Transformer efficiency" is locked at 1 and "When power pole is overloaded" at Nothing.
    - Transformer panel: upstream total loss and power received, downstream total loss and power supplied; the full breakdown with the per-player setting "Transformer panel: show detailed info".
    - Network panel: the network downstream of the transformer hovered or opened, with its sources, consumption and the wires losing the most power.
    - Removed: setting "Feed nearest consumers first"; the grid diagram, line-loss map and feed paths (replaced by the map views).
Version: 0.1.5
Date: 2026-11-11
  Optimizations:
    - Wires cached: a search after a change reads about 90% less from the game.
    - The background check is about 60% cheaper and spots changed wires within seconds.
    - Building a pole searches again only the transformers feeding that network.
    - Line-loss map and feed paths cost far less while shown.
  Changes:
    - Building or removing a generator updates the losses of the transformers it feeds right away.
    - Toggling line losses or "feed nearest consumers first" searches every network again.
    - The upstream "Line loss" consumer exists only on transformers fed straight by generators.
Version: 0.1.4
Date: 2026-11-11
  Features:
    - Feed paths view: the paths from a transformer's sources, coloured by line loss.
    - Big transmission pole: a big electric pole with no supply area.
    - Total upstream loss: everything lost between the generators and a transformer (lines, inefficiency, core loss).
    - Hover information, set per transformer: "Loss upstream" (default) and "Loss downstream".
  Changes:
    - Transformer panel redesigned: Upstream and Downstream with the same layout, power first, tooltips with the live figures.
    - Per-player setting to show all panel power figures in one unit.
    - The panel opens with whether nearest-first matching and machine weighting are on, and how many transformers or generators feed the transformer.
    - "Show" on a worst route circles its source and sink in red for 10 s.
    - Grid diagram diamonds are coloured by the total upstream loss.
    - Power figures rounded to three significant digits.
    - "Line loss" consumers show the big pole icon in the electric network statistics.
    - Per-player setting to show input - output next to total loss, for checking.
  Bugfixes:
    - Generator-fed transformers showed no upstream line loss after a feeding transformer was removed.
    - Stale nearest-first results could still be used for the upstream figures.
Version: 0.1.3
Date: 2026-11-10
  Features:
    - Cumulative line loss in the transformer panel, under the last segment: the line losses of every segment between the generators and that transformer, compounded, 1 - (1 - L1) x (1 - L2) x ...; transformer inefficiency and core loss are not counted. Every line's tooltip now defines the value.
    - Hovering a transformer shows Drawing and Line loss (of the last segment), coloured with the same thresholds as the grid diagram's diamonds.
  Changes:
    - Machine load is spread only over the poles that can power machines: huge poles and fuses have no supply area, so they carry power without diluting the average.
    - The heatmap and "power lost per pole" views are merged into one "line-loss map" shortcut: dot colour = line loss of the power reaching the pole, dot size = power lost delivering its machine load. A key bound to the heatmap keeps working; one bound to "power lost per pole" has to be bound again.
    - Removed the legends: the legend window of the map views, and the legend in the grid power panel.
    - Transformer panel: sections renamed Upstream and Downstream, "Transformer inefficiency" shortened to "Inefficiency", output shown without the after-line-loss figure (already in the downstream line); upstream and downstream used throughout the panel tooltips, settings descriptions and documentation.
    - The transformer panel no longer shows distances; the worst-routes list keeps them, with a tooltip explaining that they are resistance-weighted (tiles of big-pole wire).
    - Power Overload's high- and low-priority transformers are hidden (recipes removed and locked); ones already built keep working. Their priority does not fit how this mod splits a network's supply between transformers.
  Optimizations:
    - Wire searches read each pole's name once and look up its resistance, type and supply area per prototype, instead of asking the game several times per pole.
    - The text under a hovered transformer is recomputed when the selection changes and twice a second, not every tick.
    - Less work per tick while building: networks waiting for a new search are matched against stored network ids.
  Bugfixes:
    - A transformer feeding routes of very different lengths was charged too little: it averaged the routes' losses before converting them to power lost. It is now charged exactly the sum of each route's loss, P x L / (1 - L), so the grid diagram's routes add up to the burn. The downstream line loss shown is that total as a share of the output.
Version: 0.1.2
Date: 2026-11-09
  Features:
    - Transformer panel organised in sections (power arriving, network it feeds, this transformer), with an explanatory tooltip on every line.
    - Legends: in the grid power panel, and a legend window for the heatmap and the power-lost-per-pole view.
    - Grid diagram hides routes that carry no power (the grey lines) by default; the per-player setting "Grid diagram: show idle routes" draws them again.
Version: 0.1.1
Date: 2026-11-09
  Graphics:
    - Added a mod thumbnail.
Version: 0.1.0
Date: 2026-11-09
  Features:
    - First release, split out of a Power Overload fork as an add-on mod.
    - Distance-based line losses between transformers, weighted by pole type (resistance from each pole's power rating).
    - Line loss capped at 95% per route; a source pays the flow-weighted average of its routes.
    - Transformers fed directly by generators pay for the wires to them, weighted by each generator's rated output, drawn by a "Line loss" consumer on the generator network. Several transformers drawing from the same generators are paired with them by the same balancing as "feed nearest consumers first".
    - Losses are drawn by hidden "Line loss" (downstream network) and "Transf. ineff." (upstream network) consumers, visible in the electric network statistics.
    - Own transformer efficiency setting (default 99%); Power Overload's efficiency should be set to 100%.
    - Opt-in "weight machines by their live load": poles weighted by the machines in their supply area and what each machine type draws right now.
    - Transformer core loss (default 0.1% of its rating, while switched on). A transformer is rated by the weaker of its two sides: the highest-rated pole wired to each side, and the smaller of the two.
    - Hovering a transformer shows the power it draws and the line loss of the power arriving at it.
    - Panel next to an opened transformer: upstream and downstream line loss, transformer inefficiency, power drawn and output.
    - "Feed nearest consumers first" sharing (on by default); machines are split by pole ownership (each pole charged to its electrically nearest transformer), so feeding a network from several sides cuts the loss of its machines between transformers on the same network.
    - "Line resistance" row in power pole tooltips.
    - Grid diagram on the map (shortcut), with an energy-balance panel and the routes losing the most power (button opens the map there).
    - "Power lost per pole" map view (shortcut): dots sized and coloured by the watts lost delivering each pole's machine load.
    - Pole heatmap on the map (shortcut): each pole coloured by the line loss of the power reaching it.
    - Distance searches re-run only when a network changes (pole built or removed, networks merged or split, transformer added or removed), plus a slow background pass.