Asteroid Collector not counting own contents for "Set Filters"
Asteroid Collector not counting own contents for "Set Filters"
I'd expect this collector to filter for Carbonic & Oxide asteroids, but it doesn't:
There is nothing on the red wire, it's just to enable circuit network.Re: Asteroid Collector not counting own contents for "Set Filters"
This is actually a feature as otherwise reading contents and set filters would have to be made an exclusive mode of operation (so either read content or set filters) and we really wanted to have both possible to enable at the same time. That means there are 2 entities that have slightly different input behavior: asteroid collector and assembling machine, which for most of the input stuff are ignoring their own output values.
Re: Asteroid Collector not counting own contents for "Set Filters"
I understand that in general, but it confused me when I wired "identical" collectors together, and they behaved differently - because of different individual contents.
Maybe add an info tooltip detailing the behavior? I'd like it even better if there was a checkbox to toggle the behavior (like for "count hand contents" and in other places).
Maybe add an info tooltip detailing the behavior? I'd like it even better if there was a checkbox to toggle the behavior (like for "count hand contents" and in other places).
-
- Filter Inserter
- Posts: 467
- Joined: Sat Nov 09, 2024 2:36 pm
- Contact:
Re: Asteroid Collector not counting own contents for "Set Filters"
If you want this behaviour, you can trivially do this with a combinator, although it will have a one tick delay.TrueMilli wrote: βThu Dec 05, 2024 1:03 pm I understand that in general, but it confused me when I wired "identical" collectors together, and they behaved differently - because of different individual contents.
Maybe add an info tooltip detailing the behavior? I'd like it even better if there was a checkbox to toggle the behavior (like for "count hand contents" and in other places).
Count hand contents however cannot be emulated with combinators, so it's more important.
Re: Asteroid Collector not counting own contents for "Set Filters"
Another thing: Why is the same behavior not implemented for Requester Chests? There read contents and set filters is exclusive.
Re: Asteroid Collector not counting own contents for "Set Filters"
Actually, it requires a non-trivial amount of combinators, as any cable connected to a collector will add the current contents again - so multiple levels of isolation are required (every collector needs to get the sum of all collectors as input which is not connected directly to another connector via the same wire).IsaacOscar wrote: βThu Dec 05, 2024 1:52 pmIf you want this behaviour, you can trivially do this with a combinator, although it will have a one tick delay.TrueMilli wrote: βThu Dec 05, 2024 1:03 pm I understand that in general, but it confused me when I wired "identical" collectors together, and they behaved differently - because of different individual contents.
Maybe add an info tooltip detailing the behavior? I'd like it even better if there was a checkbox to toggle the behavior (like for "count hand contents" and in other places).
Count hand contents however cannot be emulated with combinators, so it's more important.
-
- Fast Inserter
- Posts: 222
- Joined: Sat Oct 07, 2023 6:44 am
- Contact:
Re: Asteroid Collector not counting own contents for "Set Filters"
Not knowing this was a feature, I made a circuit that enables you to use both anyway. If you provide a negative limit signal (say you want 10 metallic and 5 of the others, you'd send -10, -5, -5) then use an arithmetic to invert the sum of your control signal and the collector's read-contents with "each * -1, each", feeding it back to the collector with a different color wire.boskid wrote: βThu Dec 05, 2024 12:16 am This is actually a feature as otherwise reading contents and set filters would have to be made an exclusive mode of operation (so either read content or set filters) and we really wanted to have both possible to enable at the same time. That means there are 2 entities that have slightly different input behavior: asteroid collector and assembling machine, which for most of the input stuff are ignoring their own output values.
-
- Filter Inserter
- Posts: 467
- Joined: Sat Nov 09, 2024 2:36 pm
- Contact:
Re: Asteroid Collector not counting own contents for "Set Filters"
It's not clear to me exactly what you're trying to do,TrueMilli wrote: βThu Dec 05, 2024 3:44 pmActually, it requires a non-trivial amount of combinators, as any cable connected to a collector will add the current contents again - so multiple levels of isolation are required (every collector needs to get the sum of all collectors as input which is not connected directly to another connector via the same wire).IsaacOscar wrote: βThu Dec 05, 2024 1:52 pmIf you want this behaviour, you can trivially do this with a combinator, although it will have a one tick delay.TrueMilli wrote: βThu Dec 05, 2024 1:03 pm I understand that in general, but it confused me when I wired "identical" collectors together, and they behaved differently - because of different individual contents.
Maybe add an info tooltip detailing the behavior? I'd like it even better if there was a checkbox to toggle the behavior (like for "count hand contents" and in other places).
Count hand contents however cannot be emulated with combinators, so it's more important.
But if you want to have a bunch of collectors, and ensure that they won't collect any asteroid types that aren't already in any of the collectors, you only need a single combinator: (In the above, none of the three collectors have any oxide chunks, hence they won't collect any either).