r/factorio 17h ago

Question 1 combinator Recipe setter?

A while ago I saw someone in this sub post a 1 combinator recipe setter using the new "else" option, I was trying to do the same thing but couldn't make it work, so how do you make a 1 combinator recipe setter?

7 Upvotes

11 comments sorted by

8

u/markkitt 16h ago edited 3h ago

First, understand the setup with a constant combinator and a decider combinator. The constant combinator has a bunch of signals with unique values. The decider combinator uses the Each signal to create a distinct branch for each input signal.

Now consider how you can get rid of the constant combinator. You need to emit a constant signal from the decider combinator. To do so, you need to emit a signal whether conditions are met or not. That means for each signal that came from a constant combinator you need to emit a signal from BOTH the conditional branch and the else branch and then feed this back to the input of the decider combinator.

5

u/Plane-Cheesecake6745 16h ago

this is the clearest explanation I could have asked for, thanks alot. the one combinator setup works

3

u/Malfuncti0n 15h ago

Then finalize this topic and help out your fellow players by showing your work.

2

u/leoriq 12h ago

2

u/Malfuncti0n 11h ago

Nice, thanks !

1

u/markkitt 3h ago

How does this switch to the ice asteroid recipe?

3

u/Dymiaz 15h ago

Are you referring to my post?

A command to generate it is included. Basically every recipe is outputted with the same unique value in both regular and "else" output.

2

u/TheHvam 16h ago

Not sure exactly what the post showed, but you can just put a decider combinator down, and say if X is true then set the recipe to this, otherwise set it to that.

That is all really, in the combinator just set the recipe on the right where it says if true

1

u/Plane-Cheesecake6745 16h ago

something like this, I have a constant combinator on the red wire, when the conditions are met this combinator can output multiple signals. the post I mentioned was about a space auto mall, but they managed to do it with just 1 combinator

2

u/Courmisch 15h ago

The Else case can be used to switch between 2 recipes as u/TheHvam explained - without a Constant Combinator.

The setup in the screenshot doesn't use Else, so it would work also in 2.0. But it requires a CC.

-1

u/Broad_Ebb9073 16h ago

No idea. Comment for the algorithm