Page 5 of 5

Re: Separate signals to/from red and green wires

Posted: Thu Nov 21, 2024 6:51 am
by Koub
[Koub] Implemented in 2.0

Re: Separate signals to/from red and green wires

Posted: Thu Nov 21, 2024 9:21 am
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.

Re: Separate signals to/from red and green wires

Posted: Thu Nov 21, 2024 9:48 am
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)

Re: Separate signals to/from red and green wires

Posted: Thu Nov 21, 2024 10:18 am
by IsaacOscar
Also see viewtopic.php?f=6&t=113678 and viewtopic.php?f=6&t=121982 for similar suggestions

Re: Separate signals to/from red and green wires

Posted: Thu Nov 21, 2024 2:13 pm
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.

Re: Separate signals to/from red and green wires

Posted: Thu Nov 21, 2024 11:18 pm
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.

Re: Separate signals to/from red and green wires

Posted: Fri Nov 22, 2024 1:37 am
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.

Re: Separate signals to/from red and green wires

Posted: Fri Nov 22, 2024 1:47 am
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.

Re: Separate signals to/from red and green wires

Posted: Fri Nov 22, 2024 9:44 pm
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.

Re: Separate signals to/from red and green wires

Posted: Tue Nov 26, 2024 12:31 am
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).

Re: Separate signals to/from red and green wires

Posted: Tue Nov 26, 2024 8:27 pm
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.

Re: Separate signals to/from red and green wires

Posted: Tue Nov 26, 2024 10:51 pm
by HunD34TH
Please (sorry for the bad edit)
circuit wire selector.png
circuit wire selector.png (4.59 KiB) Viewed 854 times

Re: Separate signals to/from red and green wires

Posted: Tue Nov 26, 2024 11:47 pm
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 848 times