Page 1 of 1

Filter Stack +combinator

Posted: Thu May 07, 2020 11:10 am
by caribou666
Hi,

Fist of all sorry for my english, i'm not fluent.

I would like to transfer items from one vault to another using filters stacks + combinators for ease. I'm more or less able to do this, however if an item is missing, the transfer will be interrupted. That makes sense. I would like to change that logic and make the arm transfer only existing stuff.
Well I can't do it, maybe can you help me ?

Thanks

Image
Image

Re: Filter Stack +combinator

Posted: Thu May 07, 2020 10:50 pm
by DaveMcW
This is a hard problem. Why can't you manually set each filter inserter to a different item? :D


Here is a solution. The steps are:

1. Set every item in the input chest to exactly 1 million.
2. Add the 1 million items to the constant combinator.
3. Filter out anything less than 1 million.
4. Subtract 1 million. Now the constant combinator is filtered by items in the input chest.



filter-transfer.jpg
filter-transfer.jpg (185.54 KiB) Viewed 2806 times

Re: Filter Stack +combinator

Posted: Fri May 08, 2020 12:54 am
by SyncViews
Alternatively on your needs, it might be an option to use the basic filter inserter as each can take 5 filters rather than just one.
t.png
t.png (127.51 KiB) Viewed 2793 times
Otherwise the large offset trick is useful in ways such as this since "add" by joining outputs is the only form of "each = each op each" available.

Also if you are open to playing with mods, the stack size and number of filter slots can be changed.

Re: Filter Stack +combinator

Posted: Fri May 08, 2020 1:46 am
by Khagan
I'd do this by digitising. Emit 1 for each channel with demand and 1 for each channel with supply, and send to the inserter only those channels with a total of 2.



(You can reduce the combinator count by 1 if you use negative numbers to represent demand in the constant combinator.)

Re: Filter Stack +combinator

Posted: Fri May 08, 2020 6:10 am
by Optera
Easily done using the whitelist filter I showcased here: viewtopic.php?p=447487#p447487

2020-05-08 080912.png
2020-05-08 080912.png (83.96 KiB) Viewed 2765 times


Usage:
Set whatever the filter stack inserter should transfer with count 1 in the constant combinator.

Re: Filter Stack +combinator

Posted: Fri May 08, 2020 7:17 am
by caribou666
Wow, i'm impressed by your responses !
I'm going to test all of that today (thanks to the quarantine) and i'll show you how i use it :)

Thanks guys !

Re: Filter Stack +combinator

Posted: Sun May 10, 2020 9:33 am
by caribou666
This is my first try for a 100SPM full integrated module with merged chest + LTN + Khagan solution. It's compact and pretty ugly,but it's work well. Next step is a 6 lanes rail network.

Thanks again for your help :)

Image

Re: Filter Stack +combinator

Posted: Sun May 10, 2020 10:30 am
by Optera
Using wide chest like that is so dirty. :twisted:

Re: Filter Stack +combinator

Posted: Sun May 10, 2020 10:55 am
by caribou666
1st version was a 2x600 chests long merged on 1 line, with smelting included :lol:
Multiplied by 18, with 4 lanes rail network.
Worked well ahahahaha

Next setp is 10kSPM with 100 modules :mrgreen:

Re: Filter Stack +combinator

Posted: Tue May 12, 2020 7:29 am
by mmmPI
caribou666 wrote: Sun May 10, 2020 9:33 am picture
those belts have a problem, lemme zoom in , oh wait, those aren't belts.

Only rationnal explanation is that there are hidden logistic bots inside the boxes that does all the magic :)

Re: Filter Stack +combinator

Posted: Tue May 12, 2020 6:06 pm
by caribou666