Filter inserter set filter combined with set hand size

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Baer1990
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Feb 04, 2022 10:52 pm
Contact:

Filter inserter set filter combined with set hand size

Post by Baer1990 »

Hello,

I'm not sure if it can be considered a bug, but I have a string of boxes with filter inserters in between. The filter gets set by the contents of a box, with a negative constant signal of said contents.

Now the inserter will occasionally take too many out, so I thought I'd set hand size with the [each] signal, hoping it would work but it doesn't.

Is it possible to have that? Because I don't know how the each signal works "behind the scene", and if it would take a number of the item highest on the craftlist, highest number or current filter signal. It would only work if it'd take the number of the filter signal.

If that would be a new feature rather than a fix you can delete this post. I'm not here to give you more work then neccesary, my build works without but wanted to point this out more than anything I guess.

thank you and keep up the good work!

Much love,
Baer
Tertius
Smart Inserter
Smart Inserter
Posts: 1364
Joined: Fri Mar 19, 2021 5:58 pm
Contact:

Re: Filter inserter set filter combined with set hand size

Post by Tertius »

You cannot have this with the filter inserter, but you can have it with the stack filter inserter. The hand size can have only one value. If you set the hand size, it is set globally for every item the hand may hold. The filter inserter picks arbitrary items from a container as long as it is in the filter, and since every item has probably a different maximum desired amount, the hand size is only correct for one item but not for all.
So the filter has to contain one item only, and you set the hand size for this item. This leads us to the stack filter inserter. If you do it this way, it will work.

If you have a list of desired items, feed the stack filter inserter this list and use the "each" condition with a decider combinator to extract the amount of the item that gets in the filter. The "each" operator will magically choose the amount of the same item the filter of the inserter will choose. Internally, it seems the same chooser algorithm.

This station setup might help you with understanding how the combinator can be wired. It's the loading station of my supply system that loads items according to constant combinators associated with each wagon. The list of items missing from a wagon is requested by a requester chest and at the same time fed into the stack filter inserter. The combinators next to the logistic chests define the hand size.


Screenshot 2022-02-05 030004.png
Screenshot 2022-02-05 030004.png (518.15 KiB) Viewed 1803 times
By the way, the hand size signal is 1 tick late, but as far as I remember it's irrelevant because the hand needs more than 1 tick before it actually picks up an item, and at that time the size signal is correct.
Baer1990
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Feb 04, 2022 10:52 pm
Contact:

Re: Filter inserter set filter combined with set hand size

Post by Baer1990 »

Tertius wrote: Sat Feb 05, 2022 2:15 am If you have a list of desired items, feed the stack filter inserter this list and use the "each" condition with a decider combinator to extract the amount of the item that gets in the filter. The "each" operator will magically choose the amount of the same item the filter of the inserter will choose. Internally, it seems the same chooser algorithm.
Ofcourse, I can use a combinator to put the correct number on the control signal... I feel dumb now, that was a huge oversight on my part
Thank you very much for the reply! I was staring myself blind on picking a control signal I missed the obvious solution.

Edit: this is (could be) the solution to my problem but not the answer to my question
Baer1990
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Feb 04, 2022 10:52 pm
Contact:

Re: Filter inserter set filter combined with set hand size

Post by Baer1990 »

oh, nvm. It got moved to gameplay help already

I hope someone eventualy sees this because my question is not answered.

Can the "each" [ * ] function be added to set hand size on a stack filter inserter?
If I set the filter with a specified number of items, that the stacksize will take that number. Is that possible?

Yes there are ways to work around this but pointing me to a detour does not answer the question if the main road is open
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Filter inserter set filter combined with set hand size

Post by DaveMcW »

Baer1990 wrote: Mon Feb 07, 2022 10:57 pmCan the "each" [ * ] function be added to set hand size on a stack filter inserter?
This was suggested 4 years ago and nothing has happened yet.
Post Reply

Return to “Gameplay Help”