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?
power pole cable disconnect issue
power pole cable disconnect issue
I am not able to write in English myself, so I am using ChatGPT for help. Please excuse any awkward phrasing.
Re: power pole cable disconnect issue
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.
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.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Re: power pole cable disconnect issue
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
https://lua-api.factorio.com/latest/def ... ire_origin


