this post was submitted on 08 Dec 2024
75 points (100.0% liked)

Factorio

1185 readers
1 users here now

A Lemmy community for the game Factorio made by Wube Software.

Rules

founded 2 years ago
MODERATORS
 

I've been experimenting with using circuits to set recipes. This latest one was a lot of fun because it has to make water to feed back into itself for the other two recipes. The circuit logic is surprisingly simple with the new selector combinator and combinators being able to use red and green wire signals separately

top 4 comments
sorted by: hot top controversial new old
[–] netvor@lemmy.world 12 points 2 months ago (2 children)

Could you please also show the circuit logic?

I'm close to 1000 hours on Factorio (that's just Steam; damn my life) but I never went strong on circuits; they feel either intimidating or a giant rabbit hole. I'd like to learn a bit by copying...

[–] jet@hackertalks.com 7 points 2 months ago

It looks like:

Constant combinator with the three things he wants

A decider combinator : for each signal on red, if it's greater then green (what's in the storage tanks) output each signal

A selector combinator: probably choosing the biggest signal (the type of fuel most in need)

[–] ArmoredThirteen@lemmy.zip 5 points 2 months ago

The core is a constant combinator with levels I want outputting on the red line, an arithmetic combinator which takes in green for gathered amount and red for requested amount. This core can be used for anything where I want to know how short I am on something. For the fuel specifically I can just use a selector combinator to see what is most in need and make that, and set water to be higher than the other two so I don't accidentally run out of both water and something else and have it try and make the other thing with no available water. For other systems, such as an omni-assembler that's trying to make belts and gears, the logic to choose what to build isn't quite as simple.

[–] jet@hackertalks.com 4 points 2 months ago

Nice! Very compact