Separate signals to/from red and green wires

Suggestions that have been added to the game.

Moderator: ickputzdirwech

Koub
Global Moderator
Global Moderator
Posts: 7784
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Separate signals to/from red and green wires

Post by Koub »

[Koub] Implemented in 2.0
Koub - Please consider English is not my native language.
mrvn
Smart Inserter
Smart Inserter
Posts: 5895
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Separate signals to/from red and green wires

Post by mrvn »

Koub wrote: Thu Nov 21, 2024 6:51 am [Koub] Implemented in 2.0
It's only partially implemented, only for combinators.

The use case on inserters to e.g. read hand content on green and set filter on red is not implemented for example. Something that's become even more pressing with Gleba.
IsaacOscar
Filter Inserter
Filter Inserter
Posts: 265
Joined: Sat Nov 09, 2024 2:36 pm
Contact:

Re: Separate signals to/from red and green wires

Post by IsaacOscar »

You can use an arithmetic combinator to simply subtract the value of the filter signals.

Even for assembling machines with read contents + read ingredients, you could use a second empty machine to do read ingredients on.

Just saying that there are (inconvenient) workarounds...,

But we should just have little R and G checkboxes next to all the signal options (or at least the ones that don't let you choose the actual signal, e.g. the enabled setting or read working on an assembler)
IsaacOscar
Filter Inserter
Filter Inserter
Posts: 265
Joined: Sat Nov 09, 2024 2:36 pm
Contact:

Re: Separate signals to/from red and green wires

Post by IsaacOscar »

Also see viewtopic.php?f=6&t=113678 and viewtopic.php?f=6&t=121982 for similar suggestions
mrvn
Smart Inserter
Smart Inserter
Posts: 5895
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Separate signals to/from red and green wires

Post by mrvn »

IsaacOscar wrote: Thu Nov 21, 2024 9:48 am You can use an arithmetic combinator to simply subtract the value of the filter signals.

Even for assembling machines with read contents + read ingredients, you could use a second empty machine to do read ingredients on.

Just saying that there are (inconvenient) workarounds...,

But we should just have little R and G checkboxes next to all the signal options (or at least the ones that don't let you choose the actual signal, e.g. the enabled setting or read working on an assembler)
That requires one combinator per inserter, a diode. There can be no wire connecting any 2 inserters or their "read content" would be reused as "set filter" in the other. Subtracting the read content from the set filter is not an option as that has 1 tick delay and then the inserter has already picked up items.
IsaacOscar
Filter Inserter
Filter Inserter
Posts: 265
Joined: Sat Nov 09, 2024 2:36 pm
Contact:

Re: Separate signals to/from red and green wires

Post by IsaacOscar »

mrvn wrote: Thu Nov 21, 2024 2:13 pm
IsaacOscar wrote: Thu Nov 21, 2024 9:48 am You can use an arithmetic combinator to simply subtract the value of the filter signals.

Even for assembling machines with read contents + read ingredients, you could use a second empty machine to do read ingredients on.

Just saying that there are (inconvenient) workarounds...,

But we should just have little R and G checkboxes next to all the signal options (or at least the ones that don't let you choose the actual signal, e.g. the enabled setting or read working on an assembler)
That requires one combinator per inserter, a diode. There can be no wire connecting any 2 inserters or their "read content" would be reused as "set filter" in the other. Subtracting the read content from the set filter is not an option as that has 1 tick delay and then the inserter has already picked up items.
Hmm, you could use two inserters passing to eachother?
I'm curious what the use case is, as I currently haven't needed to use both features at once.
mrvn
Smart Inserter
Smart Inserter
Posts: 5895
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Separate signals to/from red and green wires

Post by mrvn »

IsaacOscar wrote: Thu Nov 21, 2024 11:18 pm
mrvn wrote: Thu Nov 21, 2024 2:13 pm
IsaacOscar wrote: Thu Nov 21, 2024 9:48 am You can use an arithmetic combinator to simply subtract the value of the filter signals.

Even for assembling machines with read contents + read ingredients, you could use a second empty machine to do read ingredients on.

Just saying that there are (inconvenient) workarounds...,

But we should just have little R and G checkboxes next to all the signal options (or at least the ones that don't let you choose the actual signal, e.g. the enabled setting or read working on an assembler)
That requires one combinator per inserter, a diode. There can be no wire connecting any 2 inserters or their "read content" would be reused as "set filter" in the other. Subtracting the read content from the set filter is not an option as that has 1 tick delay and then the inserter has already picked up items.
Hmm, you could use two inserters passing to eachother?
I'm curious what the use case is, as I currently haven't needed to use both features at once.
The use case is building something with count perfect ingredients, like the Biochamber or the Biolab that both require eggs to build. If you request or put in an extra egg because the one in the inserters hand didn't count then it will spoil and spawn an alien.

Less critical with all the other ingredients on Gleba that spoil. But you can use it to always have a multiple of the recipe ingreedients in a buffer chest, inserter hand and biochamber so things never spoil from having too much of one thing and not enough of another.

My automatic builds everything assembler also needs this as it recursively builds ingredients if there aren't enough at hand. When the inserter picks the ingredients up and you don't count the hand content then it would think ingredients are missing and build more instead of finishing the final product. Makes the assembler build 3 times the needed ingredients, not fun for e.g. the nuclear reactor.
IsaacOscar
Filter Inserter
Filter Inserter
Posts: 265
Joined: Sat Nov 09, 2024 2:36 pm
Contact:

Re: Separate signals to/from red and green wires

Post by IsaacOscar »

mrvn wrote: Fri Nov 22, 2024 1:37 am

The use case is building something with count perfect ingredients, like the Biochamber or the Biolab that both require eggs to build. If you request or put in an extra egg because the one in the inserters hand didn't count then it will spoil and spawn an alien.

Less critical with all the other ingredients on Gleba that spoil. But you can use it to always have a multiple of the recipe ingreedients in a buffer chest, inserter hand and biochamber so things never spoil from having too much of one thing and not enough of another.

My automatic builds everything assembler also needs this as it recursively builds ingredients if there aren't enough at hand. When the inserter picks the ingredients up and you don't count the hand content then it would think ingredients are missing and build more instead of finishing the final product. Makes the assembler build 3 times the needed ingredients, not fun for e.g. the nuclear reactor.
Yes, but why do you also need to set the filter? An inserter won't insert things that aren't valid ingredients.
mrvn
Smart Inserter
Smart Inserter
Posts: 5895
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Separate signals to/from red and green wires

Post by mrvn »

IsaacOscar wrote: Fri Nov 22, 2024 1:47 am
mrvn wrote: Fri Nov 22, 2024 1:37 am

The use case is building something with count perfect ingredients, like the Biochamber or the Biolab that both require eggs to build. If you request or put in an extra egg because the one in the inserters hand didn't count then it will spoil and spawn an alien.

Less critical with all the other ingredients on Gleba that spoil. But you can use it to always have a multiple of the recipe ingreedients in a buffer chest, inserter hand and biochamber so things never spoil from having too much of one thing and not enough of another.

My automatic builds everything assembler also needs this as it recursively builds ingredients if there aren't enough at hand. When the inserter picks the ingredients up and you don't count the hand content then it would think ingredients are missing and build more instead of finishing the final product. Makes the assembler build 3 times the needed ingredients, not fun for e.g. the nuclear reactor.
Yes, but why do you also need to set the filter? An inserter won't insert things that aren't valid ingredients.
It will insert more than one recipe needs and you might not want that. Or you might have to transfer stuff between chests. I have lots of cases where I have both a red and green wire connected to chests, inserter or assemblers to set and read something at the same time. It does happen.
IsaacOscar
Filter Inserter
Filter Inserter
Posts: 265
Joined: Sat Nov 09, 2024 2:36 pm
Contact:

Re: Separate signals to/from red and green wires

Post by IsaacOscar »

mrvn wrote: Fri Nov 22, 2024 9:44 pm It will insert more than one recipe needs and you might not want that. Or you might have to transfer stuff between chests. I have lots of cases where I have both a red and green wire connected to chests, inserter or assemblers to set and read something at the same time. It does happen.
I've just discovered that you can read contents and set filter simulataenously on asteroid collectors, but it doesn't work properly with inserters. Thus I've filed a bug report (122939).
mrvn
Smart Inserter
Smart Inserter
Posts: 5895
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Separate signals to/from red and green wires

Post by mrvn »

IsaacOscar wrote: Tue Nov 26, 2024 12:31 am
mrvn wrote: Fri Nov 22, 2024 9:44 pm It will insert more than one recipe needs and you might not want that. Or you might have to transfer stuff between chests. I have lots of cases where I have both a red and green wire connected to chests, inserter or assemblers to set and read something at the same time. It does happen.
I've just discovered that you can read contents and set filter simulataenously on asteroid collectors, but it doesn't work properly with inserters. Thus I've filed a bug report (122939).
Yes you can. You can even do it with to using opposite colors. With 3 or more you need combinators so they don't set each others filter, which adds a 1 tick delay. But for collectors that is harmless.

For assemblers with "set recipe" you can't have a 1 tick delay for read content or the recipe flickers when you loose track of items for 1 tick during insertion. I.e. the logic that picks a recipe says "if foo >= 10 then bla". In the 1 tick you move the foo the count goes below 10 and the recipe is removed again putting the foo in the trash slot. So you just move foo through the assembler doing nothing.
HunD34TH
Inserter
Inserter
Posts: 21
Joined: Mon Apr 02, 2018 3:16 pm
Contact:

Re: Separate signals to/from red and green wires

Post by HunD34TH »

Please (sorry for the bad edit)
circuit wire selector.png
circuit wire selector.png (4.59 KiB) Viewed 71 times
IsaacOscar
Filter Inserter
Filter Inserter
Posts: 265
Joined: Sat Nov 09, 2024 2:36 pm
Contact:

Re: Separate signals to/from red and green wires

Post by IsaacOscar »

HunD34TH wrote: Tue Nov 26, 2024 10:51 pm Please (sorry for the bad edit)circuit wire selector.png
Something like this to be consistent with the combinator R + G settings?
Untitled.png
Untitled.png (134.2 KiB) Viewed 65 times
Post Reply

Return to “Implemented Suggestions”