Factorio

Factorio

View Stats:
MiB Nov 9, 2017 @ 12:26pm
Combinators and counters
Can someone help me with combinators logic? I need to count U235 and for each 42 signal activate filter inserter so it will leave 41 U235 for kovarex and each 42nd piece of U235 send for fuel cell. (Note) Already read manuals but still can't understand how to implement what I need
< >
Showing 1-9 of 9 comments
BitterSwede Nov 9, 2017 @ 12:39pm 
Easiest would be to put the U235 in a chest and make a condition for the inserter to the fuel cell production to only take once there's 42 or more in the chest. You could make an SR Latch to ensure the kovarex inserter doesn't operate until there's exactly 41 left, or you could make it only activate once the fuel cell inserter has moved once until there's exactly 0 left in the chest.

Here's the guide on SR Latches: https://wiki.factorio.com/Tutorial:Circuit-network_Cookbook#SR_latch
MiB Nov 9, 2017 @ 12:47pm 
Thanks for the advice bubt as I already said, my main problem is that I can't understand how does the circuit elements work. I already read that tutorial but unfortunatelly still can't manage this stuff to work
In factorio, most of circuit network is about conditions.
For example if you link with a red wire an inserter and a chest and you configure the inserter as follow : "Iron plate Icon" > 100, The inserter will only operate IF there is 101 iron plates or more in the chest because the inserter is "linked" to the chest.

If you link the inserter to 2 chests, the condition won't be for 101 iron plates or more in the chest but 101 iron plates or more in both chests combined. The same goes for all iron plates in elements which are linked through your "red wire network". You literally READ the content of all the things linked to your "network".
BitterSwede Nov 9, 2017 @ 1:16pm 
Most I learned about circuits was from ShredGuy's tutorial. Well, Factorio-specific that is, I've got a degree in electric engineering and another in software development, so that certainly helps understanding the logic behind it. But this is rather basic stuff, once you get into it, so anyone should be able to learn quite quickly.

https://www.youtube.com/watch?v=VfxA6e6bJF8
AlexMBrennan Nov 9, 2017 @ 2:13pm 
Easiest would be to put the U235 in a chest and make a condition for the inserter to the fuel cell production to only take once there's 42 or more in the chest. You could make an SR Latch to ensure the kovarex inserter doesn't operate until there's exactly 41 left
This will work if you are sure that there is never more than 42 U235 (e.g. if you put 50 U235 in the chest then 9 will go on the small pile and 41 on the large pile, which doesn't follow the required 1:41 ratio).

If that's not the case (OP mentioned "counting" which I assume to imply this) then you will need something along the lines of this example:
http://steamcommunity.com/sharedfiles/filedetails/?id=1196380094
Bottom right combinator keeps a running count, right arm moves when counter = 0 and increases counter by 41, left arm moves when counter > 0 and subtracts 1 for each ore moved.
0eNrFVlGO2kAMvct8VsmKhMAWpO4h+ltV0ZCYxVoyiTwOWoo4QO/Rk/Uk9SRAYBnYQLXaD0Az9jx73vPYbNRsWUNFaFhNNwqz0lg1/bFRFp+NXro9XlegpgoZChUoowu3gteKwNqQSRtblcThDJastoFCk8Ormkbbn4ECw8gILWKzWKemLmZA4vAeVqCq0srx0rgsBDIcBmotP7FEyZEga23jbXAGHh/ALevsJURjgVgs56CxF1R2hQqmcpnOYKFXWJI7kCFlNXIqtvyAMkeynL5DWC2Xw7oI4+HIseR4Zu1IH7hFUWnS7GKop8a8i0Og83ShTe4islxSqGSqofOwIB93R0ngF+yt7c7+Bmiq+rYE2wxNy4Z1ZyL3RZAfS4mySpzOzwRg3lrGXZJuKQWx3XqkGt5eB9FeMg9ccoCba8tXhB/4i+nTdP/7+08f5fsrEx+x0wgwOBUkvqjcxKNcoMoVEGEOJ+UWeSQY3axo5H+DHuzxAVsT8qIAxiwUHmdoGh4vNo3Bw+gUPfEr3cF2Ytv/V9vVbFmBiN0EV1/kTFnzze/ygvxeGUVgcY8v2t8WxKUX+njvCx340L7e/d4jH9zk1oKIHkZ7uD4d/4PqIfmEeki6evC0i77V4Px2qeSQST+gXnT3Y3uH2I/qFRLXstPN+sYj/H690X67j2qHUq0ls9pwOqeyaMfqriv3b8uTvl34vF8H1+ZrfFXdpHeYVnfxbriYHv0/DJRMANuOySSJx5NhEj/KEP4HUSmGDQ==
Last edited by AlexMBrennan; Nov 9, 2017 @ 2:17pm
BitterSwede Nov 9, 2017 @ 6:11pm 
Originally posted by AlexMBrennan:
Easiest would be to put the U235 in a chest and make a condition for the inserter to the fuel cell production to only take once there's 42 or more in the chest. You could make an SR Latch to ensure the kovarex inserter doesn't operate until there's exactly 41 left
This will work if you are sure that there is never more than 42 U235 (e.g. if you put 50 U235 in the chest then 9 will go on the small pile and 41 on the large pile, which doesn't follow the required 1:41 ratio).
So a circuit that only lets the fuel inserter start running once the amount is 42 or above and only lets the kovarex inserter run when there's exactly 41 left and won't stop running until there's 0 left will somehow put more than 41 into kovarex?
MiB Nov 10, 2017 @ 2:25am 
@Alex: thanks for that advice, i'll try it once I get back to home :)
Bonus Nov 10, 2017 @ 4:47am 
There is already a blueprint for a setup which is doing what you want. Just have a look on uranium enrichments on factorioprints dot com
Hedning Nov 10, 2017 @ 6:42am 
Don't overcomplicate things. Kovarex takes 40 u235 and produces 41. All you need is to put those 40 in a loop and extract overflow. A single wire to a single chest is all the circiutry that is needed.
< >
Showing 1-9 of 9 comments
Per page: 1530 50

Date Posted: Nov 9, 2017 @ 12:26pm
Posts: 9