LF PowerGrid

Type to search devices, guides and classnames.

    Wiki
    Guide

    Basic Wiring

    Learn how to wire devices together and build your first power grid.

    The Wiring Tool: LF Cable Reel

    The LF Cable Reel (LFPG_CableReel) is the primary tool for connecting devices together in LF PowerGrid. It allows you to establish wired connections between power sources, batteries, switches, and consuming devices. How you obtain a Cable Reel depends on your server (loot, trader or its own economy rules) — there is no universal crafting station for it.

    Once equipped, the Cable Reel enables you to interact with compatible devices and create electrical circuits. The reel contains enough cable for multiple connections and will display connection status when you aim at devices.

    How to Connect Devices

    Step-by-Step Wiring Process

    Follow these steps to create your first wire connection:

    1. Equip the Cable Reel: Hold the LF Cable Reel (LFPG_CableReel) in your hands.
    2. Start on an OUT port: Aim at a device and use its wiring action to start the wire from an output port (output_1). Power flows OUT → IN; starting on an IN and finishing on an OUT is swapped for you.
    3. Route the wire: Walk toward the target. Use the wiring action the game offers to drop a waypoint where the cable should turn (up to 10 per wire, 100 m in total, 50 m per segment). Use the action your version shows.
    4. Finish on an IN port: Aim at the target device and finish on an input port (input_1). Logical ports are named input_1/output_1 — do not confuse them with model memory points such as port_input_0.
    5. Finish or cancel: Use the finish or cancel action your version shows while wiring; cancelling abandons the wire without connecting anything.
    6. Verify: Check the cable and the device state. A finished wire on an occupied port replaces the old wire instead of being rejected.

    If a finish is refused, read the reason the game shows and check: same device (self-connections are refused), OUT→IN direction, total length, waypoint count, and, separately, whether hard demand exceeds the available output (see Overload — that affects power delivery, not whether a wire can be created). Server settings can also cap wires per player and per device.

    You can create complex networks by repeating these steps, connecting batteries to switches, switches to devices, and devices to logic gates for automation.

    Wire Specifications and Limits

    LF PowerGrid enforces several technical limits to prevent performance issues and encourage thoughtful circuit design:

    Specification Value Description
    Maximum Wire Length 100 meters Total distance a single wire can span
    Maximum Segment Length 50 meters Longest single span between waypoints (over this is invalid/red; near it is yellow)
    Waypoints per Wire 10 maximum Number of turns/corners a single wire can have
    Wires per Device Server setting (hard limit 64) Your server can lower this; in practice each device only exposes its own IN/OUT ports, so usable wires are far fewer than 64
    Wires per Player Server setting Set by your server admin in LF_PowerGrid.json

    If you hit a limit, split the grid, move devices closer, or ask your admin which server setting applies.

    Reading what you see: LED, cable and preview

    Three different indicators are easy to confuse. They do not share one colour code:

    IndicatorWhat it tells youWhat to check
    Device LEDWhether that device is powered / its own state (see each device page)Power reaching that device
    Finished cableThe state of a placed wire in the gridWhether the wire exists and carries power
    Wiring previewWhile you route a wire: green = OK, yellow/amber = warning: the preview shows amber when the total exceeds 100 m, but the server rejects finishing a wire whose total is over 100 m — shorten it. Red = invalid (a segment over 50 m), grey = no targetTarget, direction, length and waypoints before you finish

    Reference behaviour from reference commit e840252 (see also the Workshop page); colours can differ in the published package — trust the preview message and the device page for its LED. LED ≠ finished cable ≠ preview: they are three different indicators.

    Diagnosis by symptom

    SymptomCheck first
    Nothing has powerIs the source on (daylight for solar)? In the reference, a source/node is overloaded only when hard demand is strictly greater than its available output (demand exactly equal does not trigger it), and battery charging is soft demand that never by itself causes overload. An overloaded source/node delivers zero through itself — that does not automatically switch off every independent grid. Remove hard loads or add supply. (Reference commit e840252; your server may differ.)
    Finish is refused / preview is redOUT→IN direction, not the same device, total length ≤ 100 m, waypoints ≤ 10, and your server's per-player/per-device wire caps.
    A port seems occupiedFinishing a new wire there replaces the old one — check whether the old wire was intentional before you finish.
    Wire is too long or awkwardDrop waypoints to route around obstacles instead of one straight span; move devices closer if you run out.
    A kit will not deploySee Kits & Deployment: flatter, clearer ground and building permission on your server.
    CCTV shows nothingBudget the whole chain: monitor 10 u/s + 15 u/s per camera, and link cameras from the monitor — see CCTV Monitor.

    Power Units: The Universal Measurement

    All power in LF PowerGrid is measured in units per second (u/s). This is a universal measurement that represents the rate at which electrical energy flows through your circuits.

    • Power Generation: Solar panels produce 20 u/s (T1) or 50 u/s (T2) only between 06:00 and 20:00 server time, and 0 u/s outside that window; leave margin for added loads and battery discharge
    • Power Storage: Batteries store energy and release it at specified rates
    • Power Consumption: Each device consumes a specific amount of u/s when active
    • Circuit Load: Total consumption divided by available supply, expressed as a percentage

    Example: If a Solar Panel generates 20 u/s and a Ceiling Light consumes 10 u/s, your circuit is at 50% load.

    Power Flow and Distribution

    Circuit Topology: Source → Battery → Switch → Device

    Power flows from sources through wired connections to connected devices, within each node's limits. A splitter does not increase what an upstream node can deliver.

    The standard circuit topology is:

    Power Source (Solar Panel)
    Battery (Storage)
    Switch (Control)
    Device (Consumer)

    How Power Distribution Works

    • Sources: Solar Panels and other generators produce power continuously
    • Batteries: Store excess power and provide it when sources cannot meet demand
    • Switches: Control whether power is allowed to flow to downstream devices
    • Devices: Consume power to perform their function (light, cool, heat, etc.)
    • Logic Gates: Process signals and control switches based on conditions

    Check each branch against the limits of the nodes before it: putting a splitter downstream does not raise an upstream cap.

    Overload Conditions

    When Supply Cannot Meet Demand

    In the reference code (commit e840252), overload is decided on hard demand only: a source/node is overloaded only when total hard demand is strictly greater than the available output (plus a small epsilon). Demand exactly equal to the available output does not trigger overload, and battery charging is soft demand that never by itself causes overload. When a source/node is overloaded, delivery through that overloaded source/node is zero — this does not necessarily mean every separate, independent grid shuts off. Whether a wire can be created is a connection question, separate from this power-delivery rule.

    This is a safety feature to prevent circuits from operating under dangerously high loads. To recover from an overload:

    • Increase power supply (add more solar panels, charge batteries, etc.)
    • Decrease power demand (turn off unnecessary devices, remove high-consumption items)
    • Wait for battery reserves to charge (if using renewable sources)

    Keep hard demand at or below the available output to stay out of overload; adding battery charging load alone should not push you into it in the reference.

    Your First Circuit: Detailed Example

    Simple Lighting Circuit

    Here's a complete walkthrough of building your first power grid:

    Solar Panel (20 u/s)
    Battery
    Switch V2
    Ceiling Light (10 u/s)
    10 u/s ÷ 20 u/s = 50% (Safe)

    Setup Steps:

    1. Equip the Cable Reel
    2. Place a Solar Panel outdoors in a visible location
    3. Interact with the Solar Panel (start wire) and walk to a nearby Battery
    4. Interact with the Battery to complete the connection
    5. Interact with the Battery (start new wire) and walk to a Switch
    6. Interact with the Switch to complete the connection
    7. Interact with the Switch (start new wire) and walk to a Ceiling Light
    8. Interact with the Light to complete the final connection
    9. Toggle the switch on - your light should illuminate!

    Your circuit now operates at 50% capacity, which is safe. The solar panel provides 20 u/s, the light consumes 10 u/s, and the battery can store excess energy for use at night.

    Power Budget Planning

    Designing Circuits for Stability

    Plan your circuits to never exceed 90-95% load to keep a safety margin. Solar generation is 20/50 u/s between 06:00 and 20:00 server time and 0 outside that window, so leave margin for added loads and battery discharge.

    Setup Type Supply (u/s) Demand (u/s) Load % Status
    Basic Light 20 10 50% Safe
    Light + Fridge 40 30 75% Safe
    Light + Fridge + Door 20 35 175% Overload
    Light + Fridge + Door 60 35 58.3% Safe

    Planning Tips:

    • Leave generation margin for added loads: solar is 20/50 u/s only from 06:00 to 20:00 server time and 0 at night, so size batteries for the night and for battery discharge
    • Size batteries to store 2-3 hours of production at peak generation
    • Use switches to isolate non-essential devices during low-supply periods
    • Group devices by priority and control with separate switch branches
    • Test circuits before filling them with critical items (food, weapons storage, etc.)