Page 1 of 1

Stack inserter quality filter does not work properly

Posted: Sat Nov 16, 2024 11:35 am
by gujarat6
Hi!

I've noticed something really weird. My stack insterters sometimes grab items which are unfit for the filter set. I have only noticed this happen regarding quality filters. Here is an example below:
stack_inserter_bug.png
stack_inserter_bug.png (389.74 KiB) Viewed 1223 times

As you can see, I've set up filters for items higher than normal and lower than epic, but the inserter still grabbed epic item. I've noticed this happen on multiple planets, with multiple items.

Re: [2.0.15] Stack inserter quality filter does not work properly

Posted: Sat Nov 16, 2024 11:38 am
by LCStark
I don't think those filters are considered as a single condition together, I'd expect them work more as an OR than an AND. So it will grab all items of "less than epic quality" and all items of "greater than normal quality", so in effect all items.

Re: [2.0.15] Stack inserter quality filter does not work properly

Posted: Sat Nov 16, 2024 11:45 am
by jagholin
LCStark wrote: Sat Nov 16, 2024 11:38 am I don't think those filters are considered as a single condition together, I'd expect them work more as an OR than an AND. So it will grab all items of "less than epic quality" and all items of "greater than normal quality", so in effect all items.
That's exactly what happens, so it's not a bug.

To OP: if you want the inserter to grab items that have quality between normal and epic, switch filter mode to "Blacklist" and invert all your conditions (turn them to "greater or equal to epic quality" and "equal to normal quality" respectively)

Re: [2.0.15] Stack inserter quality filter does not work properly

Posted: Sat Nov 16, 2024 12:03 pm
by gujarat6
LCStark wrote: Sat Nov 16, 2024 11:38 am I don't think those filters are considered as a single condition together, I'd expect them work more as an OR than an AND. So it will grab all items of "less than epic quality" and all items of "greater than normal quality", so in effect all items.
You're god damn right. Thanks...

Re: [2.0.15] Stack inserter quality filter does not work properly

Posted: Sat Nov 16, 2024 12:06 pm
by BraveCaperCat
Not a bug, also known as User Error.
Try blacklist + above epic + below common.

Re: [2.0.15] Stack inserter quality filter does not work properly

Posted: Sat Nov 16, 2024 12:29 pm
by gujarat6
Disregarding the wrong filters on this inserter, I am pretty sure I have seen it yesterday on an inserter which had only filter set for normal items and it would grab > normal qualities as well. Maybe that has something to do with the fact that it was standing at the output square of a recycler? Can item be forced to an inserter that way?

Re: [2.0.15] Stack inserter quality filter does not work properly

Posted: Sat Nov 16, 2024 12:33 pm
by LCStark
gujarat6 wrote: Sat Nov 16, 2024 12:29 pm Disregarding the wrong filters on this inserter, I am pretty sure I have seen it yesterday on an inserter which had only filter set for normal items and it would grab > normal qualities as well. Maybe that has something to do with the fact that it was standing at the output square of a recycler? Can item be forced to an inserter that way?
Looks like that would be a "no":
11-16-2024, 13-33-34.png
11-16-2024, 13-33-34.png (584.3 KiB) Viewed 1126 times

Re: [2.0.15] Stack inserter quality filter does not work properly

Posted: Sat Nov 16, 2024 12:44 pm
by gujarat6
LCStark wrote: Sat Nov 16, 2024 12:33 pm
gujarat6 wrote: Sat Nov 16, 2024 12:29 pm Disregarding the wrong filters on this inserter, I am pretty sure I have seen it yesterday on an inserter which had only filter set for normal items and it would grab > normal qualities as well. Maybe that has something to do with the fact that it was standing at the output square of a recycler? Can item be forced to an inserter that way?
Looks like that would be a "no":
11-16-2024, 13-33-34.png
Experiment with a sample size of 1. I had a block of 1200 recyclers and would notice a couple of them would have > normal quality item after a couple of hours.

Re: [2.0.15] Stack inserter quality filter does not work properly

Posted: Sat Nov 16, 2024 12:46 pm
by BlueTemplar
And that's not you forgetting that quality modules in recyclers can upgrade item quality too ?

Re: [2.0.15] Stack inserter quality filter does not work properly

Posted: Sat Nov 16, 2024 12:54 pm
by gujarat6
BlueTemplar wrote: Sat Nov 16, 2024 12:46 pm And that's not you forgetting that quality modules in recyclers can upgrade item quality too ?
That's the whole point of that recycling block. I'd run items through it in a loop. One stack inserter would take out normal quality items and the second one, bulk inserter would grab > normal quality items out of it. But occasionally, I'd see the stack inserter which had the filter only for normal items stuck at waiting for a full stack of > normal quality items. It looked as if it got forced an above normal item for some reason.

Re: [2.0.15] Stack inserter quality filter does not work properly

Posted: Sat Nov 16, 2024 12:55 pm
by LCStark
gujarat6 wrote: Sat Nov 16, 2024 12:44 pm Experiment with a sample size of 1. I had a block of 1200 recyclers and would notice a couple of them would have > normal quality item after a couple of hours.
You are welcome to repeat it on a larger scale, but I don't think anything can automatically input "into" inserters, regardless of the filters.

Re: [2.0.15] Stack inserter quality filter does not work properly

Posted: Sat Nov 16, 2024 12:58 pm
by gujarat6
LCStark wrote: Sat Nov 16, 2024 12:55 pm
gujarat6 wrote: Sat Nov 16, 2024 12:44 pm Experiment with a sample size of 1. I had a block of 1200 recyclers and would notice a couple of them would have > normal quality item after a couple of hours.
You are welcome to repeat it on a larger scale, but I don't think anything can automatically input "into" inserters, regardless of the filters.
Yeah, I'm still running that block, I'll see if that happens again, but yesterday I was pretty baffled.

Re: [2.0.15] Stack inserter quality filter does not work properly

Posted: Sat Nov 16, 2024 3:30 pm
by BraveCaperCat
LCStark wrote: Sat Nov 16, 2024 12:55 pm
gujarat6 wrote: Sat Nov 16, 2024 12:44 pm Experiment with a sample size of 1. I had a block of 1200 recyclers and would notice a couple of them would have > normal quality item after a couple of hours.
You are welcome to repeat it on a larger scale, but I don't think anything can automatically input "into" inserters, regardless of the filters.
You can automatically input into inserters, but it disregards the filters.

Re: [2.0.15] Stack inserter quality filter does not work properly

Posted: Sun Nov 17, 2024 12:59 am
by Muche
I tried to manually put an uncommon iron into a stack inserter filtered to normal quality. It immediately dropped it, disregarding the stack size.
I was able to get it "stuck" if I disabled its filter, put one uncommon iron into its hand, then enabled the filter again.

From that one picture of your setup you don't seem to meddle with circuit network.

Maybe there is some rare race condition with your specific stack & bulk inserter capacity combination.