Set Filter AND Enable/Disable?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
User avatar
SphynxLoL
Inserter
Inserter
Posts: 21
Joined: Tue Apr 25, 2017 3:32 am
Contact:

Set Filter AND Enable/Disable?

Post by SphynxLoL »

Possible or not? Through mods or any means. Working with Logistics Train Network and the new "Read Train Contents" I have a design that requires a filter inserter to be both Enabled/disabled and have it's filter set when a train comes to pick up items.

Image
Lager Image: http://i.imgur.com/DDC3LP6.png
torne
Filter Inserter
Filter Inserter
Posts: 366
Joined: Sun Jan 01, 2017 11:54 am
Contact:

Re: Set Filter AND Enable/Disable?

Post by torne »

Just have your circuit set the filter to nothing when you want it to be disabled.
User avatar
SphynxLoL
Inserter
Inserter
Posts: 21
Joined: Tue Apr 25, 2017 3:32 am
Contact:

Re: Set Filter AND Enable/Disable?

Post by SphynxLoL »

torne wrote:Just have your circuit set the filter to nothing when you want it to be disabled.
Thank you sir, your tip put me in the right direction!
quyxkh
Smart Inserter
Smart Inserter
Posts: 1032
Joined: Sun May 08, 2016 9:01 am
Contact:

Re: Set Filter AND Enable/Disable?

Post by quyxkh »

The clear-the-filter method would if you're also trying to read hand contents for some reason, I isolate the aggregate output signal (since they're not going to have anything in hand that doesn't match the filter it's okay to bus that) but virtual signals don't interfere so you can do the calc externally and pipe enable/disable results in on that. This is a pretty familiar look for me:
Counted filtered inserters
Counted filtered inserters
Screenshot from 2017-04-26 15-43-38.jpg (14.52 KiB) Viewed 3797 times
with the decider passing "have > want" to my filters offloading the sushi-belt supply loop, and other conditions as virtuals, the inserters set to read/pulse. You could do enable-if red < 1 without interfering with that at all. I use `-` arithmetics exclusively as isolators, each-to-each - 0 so the (here) item-take-accounting bus doesn't flood the filters.
Post Reply

Return to “Gameplay Help”