power pole cable disconnect issue

Place to post guides, observations, things related to modding that are not mods themselves.
Xeon257
Long Handed Inserter
Long Handed Inserter
Posts: 51
Joined: Wed Sep 24, 2025 6:25 pm
Contact:

power pole cable disconnect issue

Post by Xeon257 »

Hello,

I'm currently updating Planet Linox for Factorio 2.1.

While working on it, I discovered that players can reset a power pole's wire connections by Shift + Left-clicking on it.

The problem is that Planet Linox uses special power poles to connect the surface and underground surfaces. Players can also disconnect these special cross-surface wire connections, and once they're removed, there's no way to reconnect them.

Is there a good way to prevent this kind of griefing?
I am not able to write in English myself, so I am using ChatGPT for help. Please excuse any awkward phrasing.
robot256
Smart Inserter
Smart Inserter
Posts: 1379
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: power pole cable disconnect issue

Post by robot256 »

The issue is that shift-clicking a pole removed script linked connections in addition to the visible wires? I'm not sure that's intended behavior. It is certainly unintuitive. Might be worth a bug report.

If I were to make a workaround for it, I might make a custom control linked to the "disconnect wires" control so that my script can check and remake the links every time if needed.
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4652
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: power pole cable disconnect issue

Post by boskid »

Wires with origin set to player are considered player wires and can be disconnected by player. What you want to use is script wire origin when adding wire - those will not be touched by player action that disconnects all wires of a pole.

https://lua-api.factorio.com/latest/def ... ire_origin
Post Reply

Return to “Modding discussion”