Factorio

Factorio

View Stats:
OldWhovian May 3, 2020 @ 12:55pm
Struggling with a "basic" counter
I'm doing a bobs angels run and I'm trying to do desert garden stuff so I'm trying to set up a counter to maintain at least 6 gardens in the belt loop by counting the inserter actions in and out of the Seed Extractors (pictures to follow). All inserters are limited to a stack level of 1 for simplicity.

Overall Setup: https://imgur.com/OP76ClK

Here we have 3 arithmetic combinators and a decider hooked up to a light (for debugging)

Left Top Combinator: https://imgur.com/kVyg07g

This combinator is hooked up to all the seed extractor output inserters and multiplies Each signal by 1, passing it into the memory cell that's adding the left and right top combinators.

Right Top Combinator: https://imgur.com/3cjoIIK

This combinator is hooked up to all the seed extractor input inserters and multiplies Each signal by -1, passing it into the memory cell that's adding the left and right top combinators.

Memory Cell (?): https://imgur.com/XP8lXth

This combinator takes in any signal from the top left and top right combinators, adds 0, and has inputs wired to outputs. Its output is connected to a decider combinator as an Each signal.

Decider Combinator: https://imgur.com/EtCI9Lv

This combinator is comparing the signal from the memory cell to check if greater than 6 (I have 6 seed extractors, so I want at least 6 gardens in the loop at any time to minimize down time between ops. This outputs signal A with count 1.

Debug Light: https://imgur.com/RX2Jh8O

Straight forward, this light is taking in a signal from the decider and checking if signal A is greater than or equal to 1.

Expected Result: When the amount of "output" inserter signals exceed "input" inserter signals by 7 or more, the light should turn on.

Actual Result: The light turns on for a short period everytime there is an "input" signal.

My end goal is to add an additional inserter to the "input" chain to remove gardens from from the loop whenever the Decider Combinator emits its signal. Obviously each time this inserter operates, as part of the "input" circuit, it should "subtract" from the memory cell so that it shuts off if I have only 6 desert gardens in the loop.

Please explain like I'm five. I barely passed circuit logic in uni, I just don't get the logic.
Originally posted by Fel:
(please at least group the images in a single imgur post next time if you don't want to use steam's screenshots)

Your memory cell should never have both wires looping, it is what is causing you your problem (it makes it go completely nuts).
You also don't need to multiply a signal by 1 since it just gives the same signal as output, if you wanted to turn it into a different signal it would work but that's not the case here.

Here is a minimalist counter:
https://steamcommunity.com/sharedfiles/filedetails/?id=2083754772
You can use the green wire that I attached to the power pole to do whatever logic you want, in your case your >6 and lamp.
The left is * -1, the right is + 0.
< >
Showing 1-7 of 7 comments
The author of this thread has indicated that this post answers the original topic.
Fel May 3, 2020 @ 1:23pm 
(please at least group the images in a single imgur post next time if you don't want to use steam's screenshots)

Your memory cell should never have both wires looping, it is what is causing you your problem (it makes it go completely nuts).
You also don't need to multiply a signal by 1 since it just gives the same signal as output, if you wanted to turn it into a different signal it would work but that's not the case here.

Here is a minimalist counter:
https://steamcommunity.com/sharedfiles/filedetails/?id=2083754772
You can use the green wire that I attached to the power pole to do whatever logic you want, in your case your >6 and lamp.
The left is * -1, the right is + 0.
Last edited by Fel; May 3, 2020 @ 1:24pm
AlexMBrennan May 3, 2020 @ 1:26pm 
Please post a blueprint string of the circuit because I am not going to be able to look for missing wires on a low res screenshot.
impetus_maximus May 3, 2020 @ 1:28pm 
nevermind. -_-
Last edited by impetus_maximus; May 3, 2020 @ 1:29pm
OldWhovian May 3, 2020 @ 1:33pm 
Originally posted by Fel:
(please at least group the images in a single imgur post next time if you don't want to use steam's screenshots)

Your memory cell should never have both wires looping, it is what is causing you your problem (it makes it go completely nuts).
You also don't need to multiply a signal by 1 since it just gives the same signal as output, if you wanted to turn it into a different signal it would work but that's not the case here.

Here is a minimalist counter:
https://steamcommunity.com/sharedfiles/filedetails/?id=2083754772
You can use the green wire that I attached to the power pole to do whatever logic you want, in your case your >6 and lamp.
The left is * -1, the right is + 0.

Thank you
OldWhovian May 3, 2020 @ 1:34pm 
Originally posted by AlexMBrennan:
Please post a blueprint string of the circuit because I am not going to be able to look for missing wires on a low res screenshot.

I mean, it's a 4k screenshot. I'd be interested to know what you consider Hi-Res.
AlexMBrennan May 3, 2020 @ 2:05pm 
Originally posted by OldWhovian:
Originally posted by AlexMBrennan:
Please post a blueprint string of the circuit because I am not going to be able to look for missing wires on a low res screenshot.

I mean, it's a 4k screenshot. I'd be interested to know what you consider Hi-Res.
The problem is that the relevant part - the combinators - make up a tiny part of the screenshot because you chose to include your entire base in the screenshot. Also when you hover your mouse over entities then the wire connections are highlighted so you don't have to play detective with a microscope.

But fair enough - I will just ignore questions in the future.
OldWhovian May 3, 2020 @ 4:56pm 
Originally posted by AlexMBrennan:
Originally posted by OldWhovian:

I mean, it's a 4k screenshot. I'd be interested to know what you consider Hi-Res.
The problem is that the relevant part - the combinators - make up a tiny part of the screenshot because you chose to include your entire base in the screenshot. Also when you hover your mouse over entities then the wire connections are highlighted so you don't have to play detective with a microscope.

But fair enough - I will just ignore questions in the future.

You do understand you could have just said that originally instead of saying "pic is low res" when that statement is factually inaccurate and not representative of your actual complaint?
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: May 3, 2020 @ 12:55pm
Posts: 7