Robosubstations for Electric Grid


A Substation with robot recharge ports. Patched for compatibility with the Electric Grid mod.

Content
4 hours ago
2.0
14
Logistic network Power

Changelog

Version: 0.5.3
Date: 15. 05. 2026
  Bugfixes:
    - Fix load error: the linked_game_control in 0.5.2 referenced
      "smart-pipette", which does not exist. The vanilla control is named
      "pipette".
Version: 0.5.2
Date: 15. 05. 2026
  Bugfixes:
    - Smart pipette (Q) now reliably gives you a robosubstation item even
      when you don't have any plain substations in your inventory. The
      previous implementation relied on on_player_pipette, which doesn't
      fire when vanilla pipette can't find anything to transfer. It now
      uses a custom-input linked to smart-pipette plus an
      on_player_cursor_stack_changed safety net to swap the cursor if
      vanilla still managed to put a substation on it.
Version: 0.5.1
Date: 15. 05. 2026
  Bugfixes:
    - Cursor placement preview now actually shows a substation graphic
      instead of being invisible. The marker borrows the vanilla
      substation pictures so you can see where the robosubstation will go.
    - Removed the marker's collision mask. With the marker sharing the
      substation's collision the script-spawned substation could not be
      placed underneath, leaving an invisible placeholder and orphaned
      charger / radar on mining. The marker is now non-colliding and
      control.lua validates the position via can_place_entity, refunding
      the player if the spot cannot host a substation.
    - Marker is destroyed immediately after the substation, charger and
      radar are spawned. This avoids double-rendering and means storage
      is now keyed by the substation's unit_number, so mining or losing
      the substation always cleans the charger and radar up.
    - Smart pipette (Q): pressing Q on a placed robosubstation now puts
      the robosubstation item on the cursor instead of a substation.
  Internal:
    - Author field updated.
Version: 0.5.0
Date: 15. 05. 2026
  Changes:
    - Architectural rework for full Electric Grid compatibility: the robosubstation
      is no longer a custom electric-pole prototype. Instead it is a small marker
      entity that spawns a real vanilla substation at the same position when built,
      plus the roboport charger and radar on top. Electric Grid sees only the
      vanilla substation (which is on its pole_rules whitelist), so wires connect
      normally to other substations, transformators and all other Electric Grid poles.
    - Mining, dying, blueprinting and cloning are handled symmetrically: charger,
      radar and the backing substation are cleaned up together, and the player
      gets refunded the robosubstation item.
    - Robosubstation item now follows the substation's item subgroup, keeping it next
      to the substation in the crafting menu when other mods (e.g. Electric Grid)
      move it.
  Known limitations:
    - The upgrade-planner / fast-replace path from substation -> robosubstation no
      longer works because the robosubstation is not an electric-pole prototype
      anymore. Build robosubstations directly from the recipe.
    - When blueprinting an existing robosubstation, both the marker and the
      backing substation are captured; the substation requirement is harmlessly
      refunded to logistics once the marker arrives.
Version: 0.4.2
Date: 15. 05. 2026
  Changes:
    - Compatibility with Electric Grid: robosubstation now inherits the substation's
      maximum_wire_distance, supply_area_distance and rewire_neighbours_when_destroying,
      so it matches Electric Grid's modified values.
    - Upgrade chain is spliced when Electric Grid is present:
      substation -> robosubstation -> eg-ugp-substation-displayer.
    - Robosubstation item now follows the substation's item subgroup, keeping it next to
      the substation in the crafting menu when other mods move it.
Version: 0.4.1
Date: 26. 05. 2025
  Changes:
    - Sdded quality support
Version: 0.4.0
Date: 09. 11. 2024
  Changes:
    - Factorio 2.0 support (no quality support)
Version: 0.3.0
Date: 05. 12. 2020
  Changes:
    - Factorio 1.1 support
Version: 0.2.0
Date: 23. 01. 2020
  Changes:
    - Factorio 0.18 support
Version: 0.1.7
Date: 11. 01. 2020
  Changes:
    - Mod startup settings for logistic and construction distances
Version: 0.1.6
Date: 22. 04. 2019
  Bugfixes:
    - data-final-fixes workaround for Bobs+Angels fast_replaceable_group compat
Version: 0.1.5
Date: 12. 04. 2019
  Bugfixes:
    - Make roboport entity indescructible. Was possible to destroy it leaving the substation intact
Version: 0.1.4
Date: 08. 04. 2019
  Changes:
    - Try to be smarter setting fast_replaceable_group and next_upgrade in data-updates
Version: 0.1.3
Date: 07. 04. 2019
  Changes:
    - Setting to support Lighted Electric Poles +
Version: 0.1.2
Date: 06. 04. 2019
  Changes:
    - Add red circuits to recipe