Building a smart, automated ammo factory. Help needed on Combinators and RS-Latch.
Posted: Sun Mar 01, 2020 1:20 am
Hello all,
So I've been stuck on this problem for days and finally decided to swallow my pride and ask for help. I'll start with some backstory on my research so that suggestions can hopefully point to things my google-fu has missed. I'd also like to state that this is for the pre-logistic stage of the game, and that personally I'd probably want to use it in the late game as I'm not a huge fan of robots.
I was originally inspired by this youtube video https://www.youtube.com/watch?v=Oa9_dSNrRyY with the idea of creating an ammo factory that would power on and produce ammo when a defence station was in need. I had not used the circuit network before so I figured now was the time to dive in. Originally I had just placed ammo factories in key locations, fed them resources and then filled out the ammo belts. Which of course is incredibly wasteful.
So I built this: https://imgur.com/a/zCJeGMe (I've broken down the constituent parts in the album and included it all in a blueprint)
It works pretty well, there's minimal overflow as the ammo placed on the belt is counted as part of the overall A signal and it can organically add new defence stations to the network. Issues are that the Ammo buffer is manual input, at both the Defence station inserter condition and the factory total demand calculation. I tried to allow for organic input but the signals were getting crossed on the network, so any suggestions on that would be great. I'm also sure it can probably be improved and simplified but I moved focus to the overall point of this post...
But now the goal post of resource waste has shifted from the ammo belt to the factory resource belt. Considering some of these ammo-facs are quite far from the central factory that can be a lot of idle resources going to waste.
So I went hunting around and came across this concept: https://www.youtube.com/watch?v=XP_0YoJQXLs. This to me seems like the perfect answer. However, I can't for the life of me figure out how to get it to work. I've read the wiki on SR-latches. I've watched countless YT tutorials on SR-latches but something is just not making its way into my head and I'm struggling. It's purely the circuit logic for the resource input and the assembly input I can't figure out.
I think it's because every SR-latch tutorial seems to focus on power for steam backup and so when I try to follow the inspirational YT video (which honestly is really not that helpful) I can't seem to map over the idea to just be about inserters and resource numbers.
I appreciate anyone who had read the whole post and those that can help me to understand this zero-waste, resource request circuit based smart factory setup that I've hit a brick wall on trying to understand.
Thank you.
So I've been stuck on this problem for days and finally decided to swallow my pride and ask for help. I'll start with some backstory on my research so that suggestions can hopefully point to things my google-fu has missed. I'd also like to state that this is for the pre-logistic stage of the game, and that personally I'd probably want to use it in the late game as I'm not a huge fan of robots.
I was originally inspired by this youtube video https://www.youtube.com/watch?v=Oa9_dSNrRyY with the idea of creating an ammo factory that would power on and produce ammo when a defence station was in need. I had not used the circuit network before so I figured now was the time to dive in. Originally I had just placed ammo factories in key locations, fed them resources and then filled out the ammo belts. Which of course is incredibly wasteful.
So I built this: https://imgur.com/a/zCJeGMe (I've broken down the constituent parts in the album and included it all in a blueprint)
It works pretty well, there's minimal overflow as the ammo placed on the belt is counted as part of the overall A signal and it can organically add new defence stations to the network. Issues are that the Ammo buffer is manual input, at both the Defence station inserter condition and the factory total demand calculation. I tried to allow for organic input but the signals were getting crossed on the network, so any suggestions on that would be great. I'm also sure it can probably be improved and simplified but I moved focus to the overall point of this post...
But now the goal post of resource waste has shifted from the ammo belt to the factory resource belt. Considering some of these ammo-facs are quite far from the central factory that can be a lot of idle resources going to waste.
So I went hunting around and came across this concept: https://www.youtube.com/watch?v=XP_0YoJQXLs. This to me seems like the perfect answer. However, I can't for the life of me figure out how to get it to work. I've read the wiki on SR-latches. I've watched countless YT tutorials on SR-latches but something is just not making its way into my head and I'm struggling. It's purely the circuit logic for the resource input and the assembly input I can't figure out.
I think it's because every SR-latch tutorial seems to focus on power for steam backup and so when I try to follow the inspirational YT video (which honestly is really not that helpful) I can't seem to map over the idea to just be about inserters and resource numbers.
I appreciate anyone who had read the whole post and those that can help me to understand this zero-waste, resource request circuit based smart factory setup that I've hit a brick wall on trying to understand.
Thank you.