Bulk removing circuit connections?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
Aeternus
Filter Inserter
Filter Inserter
Posts: 835
Joined: Wed Mar 29, 2017 2:10 am
Contact:

Bulk removing circuit connections?

Post 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...

quyxkh
Smart Inserter
Smart Inserter
Posts: 1028
Joined: Sun May 08, 2016 9:01 am
Contact:

Re: Bulk removing circuit connections?

Post 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

Aeternus
Filter Inserter
Filter Inserter
Posts: 835
Joined: Wed Mar 29, 2017 2:10 am
Contact:

Re: Bulk removing circuit connections?

Post 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 :)

Post Reply

Return to “Gameplay Help”