Page 1 of 1

power pole cable disconnect issue

Posted: Mon Jun 29, 2026 1:22 am
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?

Re: power pole cable disconnect issue

Posted: Mon Jun 29, 2026 1:37 am
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.

Re: power pole cable disconnect issue

Posted: Mon Jun 29, 2026 5:14 am
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