Page 1 of 1

Bulk removing circuit connections?

Posted: Tue May 15, 2018 9:02 pm
by Aeternus
Is there an easy way to remove a circuit connection from a number of objects all in one gulp? A destructor for these? I can't find a "circuit signal" filter in the destruction marker.

Reason: I've previously used circuit networks heavily on stations and whatnot, but given they're not really used much and gobble UPS, it'd probably smarter to remove them. But manually removing circuit networks from 144+ objects per station will get tedious...

Re: Bulk removing circuit connections?

Posted: Wed May 16, 2018 12:32 am
by quyxkh
That's mod territory, for a one-off you could, after pasting the blob below, do `/c for e in iterate_network(game.player.selected,green) do e.disconnect_neighbour(green) done`
support_code

Re: Bulk removing circuit connections?

Posted: Wed May 16, 2018 7:00 am
by Aeternus
Mkay, I want to do this with selected structures, not factory-wide. But that code snipplet should help, I should be able to combine it with the way the deconstruction planner works to create a selectable "circuit disconnector" item. Thanks :)