Using a Cargo Car as a Buffer
Posted: Sun Apr 17, 2016 2:14 am
I have found a unique use for the cargo car. As a buffer. Because of the way I play, I needed to have a chest that I could pull from more than just three sides.
The Cargo Car has that ability. I just realized if I only used one or two inserters to fill the car I could get even more outputs.
The reason for my need is I build my factory completely different than any I have seen(qualified). Every factory I've seen so far (and I have seen a lot), they all seem to use the full belt feed method. It seemed to me that a full belt of 150 red science to do a 20 red science tech, was overkill. Early game I would rather use those resources to build up my base. Also it seemed to make me constantly find more and more Iron and Copper to keep the belts full. So the method I use, I call the Double Buffer and Count method or (DBC). In this method for every item that you assemble, you build a Primary Buffer, a Local Buffer and a Input loop counter.
Here is a snapshot of my Green Circuit Distribution Hub using a Cargo Car as a Distribution Buffer.
http://images.akamai.steamusercontent.c ... 8CD32702F/
The Cargo Car is in the center and from it I have several belts with smart inserters and OR Combinators controlling them to the various locations. Since I share belts for multiple destinations I have to make sure that the Green Circuits are available to each inserter when ever they need it. The problem I had earlier using smart chests was that they would get imbalanced and trying to feed six different smart chests with six different amounts was giving me a headache. I have gotten to this point in my factory without the need for a train. As I was researching how to build a train network, and read about the cargo car and how it can take many inputs and outputs I realized it was a solution to my problem. With it I only needed to keep one chest full and I could pull out of it from many different locations and could actually use it to distribute to over 6-10 needs and with using OR Combinator circuits to control them I could double or triple the amount of locations I could distribute to out of this one long chest. I wish someone would create a mod for a chest that is 1 segment wide and 10 segments long. Anyway as you can see in my snapshot it works quite elegantly!
Here is a snapshot of my new Iron Plate Production using the Cargo Car Buffer. Because of the economic benefits of the DBC Method I just have this fill a 4K buffer and stop. It really saves me on Electricity, once the buffer is filled the plant will only run for maybe 10 sec every minute or so to keep up. So by using smart inserters to stop the output, the furnaces have filled their internal buffer and will output a massive amount the second they are told to, which is usually enough to backfill the main buffer, then shut down, using no electricity. If you looked at my Power Stats you would see that Inserters and Assemblers use the most energy not the Electric Furnaces. Depending on when you look, the furnace power requirement is often zero and I am never starved for Iron or Copper Plates.
http://images.akamai.steamusercontent.c ... 0440BE051/
I'm sure this has been done before, but I have yet to find an example using this method of Factory Design, so I will go into a little more Detail how it works.
PRIMARY BUFFER:
The Primary Buffer is a large buffer. My rule of thumb is the Primary Buffer should be a minimum of 10 times the Production Cycle requirement and if its a long distance from the local buffer I add another 5-10 PC's worth. A production cycle in this context is the amount of parts to make a complete assembly (ex. for a Green Circuit uses 4 copper wire so if I had only one assembler making green circuits the Primary buffer would be 40 copper wires. I have twelve GC assemblers and a 500 copper wire primary buffer) Generally larger is better for the primary buffer.
Local Buffer:
This is a buffer right next to the assembly area and feeds the Input Loop with a measured amount of parts. This buffer can be as small as 2X the PC requirement. You can make this larger for a safety factor, it will just mean that your main buffer won't have to work as hard. For a single Assembly there will be one Local Buffer for each part the assembly needs. For Green Circuits there will be two local Buffers, one for Copper Wires and One Iron Plates. As long as the local buffer has enough parts your assembly machines will run at full speed, if you feed the input loop properly.
Input Loop with Counter
The Input Loop feeds the assembly machines with parts. The parts on the assembly loop do not have to be sorted you can put them on any way you want as long as they go by assemblers and can be picked up by the counter. I try to make the loop a compact as possible. After the parts have passed the assemblers, if there are extras they will be picked up by the smart inserter which is filtered to only pick up one type of part. It goes into a smart chest and then a regular inserter places it back into the loop. Since the regular inserter is slower than a smart inserter, it will cause a backup in the smart chest. I hook the smart chest up to a smart inserter at the local buffer. The smart inserter will activate when the counter smart chest registers less than a constant I pick based on how many are needed. In most cases you can start with 1. Since there is a delay from the time the local buffer releases till a part will actually get counted you will often inject 10 to 15 parts into the loop. Enough to satisfy a couple of production cycles. The counter will pick them up and start to build up its count shutting off the local buffer. By changing the constant the counter is compared against you can adjust how many parts you inject into the loop and affect the timing of the input.
After all that the output of the assembly machine gets put into another smart chest which has become the primary buffer for the next assembly that that part is used in. If you do this for every assembly you get this:
http://images.akamai.steamusercontent.c ... 03A35F2A5/
At this point I have only about 5 techs left to research. I am going to redesign the factory bigger to make my space ship which I understand takes a lot of resources. Look at my mini map and notice how little pollution I am emitting for this stage of the game. I've gotten rid of most of the biter nests near by and the pollution doesn't reach the other so they don't attack. I may have an issue since there was so little pollution the biter nests did not get super big. I only have about 750 artifacts so I may have to range far to find more biters.
Anyway, just wanted to show something a little different.
The Cargo Car has that ability. I just realized if I only used one or two inserters to fill the car I could get even more outputs.
The reason for my need is I build my factory completely different than any I have seen(qualified). Every factory I've seen so far (and I have seen a lot), they all seem to use the full belt feed method. It seemed to me that a full belt of 150 red science to do a 20 red science tech, was overkill. Early game I would rather use those resources to build up my base. Also it seemed to make me constantly find more and more Iron and Copper to keep the belts full. So the method I use, I call the Double Buffer and Count method or (DBC). In this method for every item that you assemble, you build a Primary Buffer, a Local Buffer and a Input loop counter.
Here is a snapshot of my Green Circuit Distribution Hub using a Cargo Car as a Distribution Buffer.
http://images.akamai.steamusercontent.c ... 8CD32702F/
The Cargo Car is in the center and from it I have several belts with smart inserters and OR Combinators controlling them to the various locations. Since I share belts for multiple destinations I have to make sure that the Green Circuits are available to each inserter when ever they need it. The problem I had earlier using smart chests was that they would get imbalanced and trying to feed six different smart chests with six different amounts was giving me a headache. I have gotten to this point in my factory without the need for a train. As I was researching how to build a train network, and read about the cargo car and how it can take many inputs and outputs I realized it was a solution to my problem. With it I only needed to keep one chest full and I could pull out of it from many different locations and could actually use it to distribute to over 6-10 needs and with using OR Combinator circuits to control them I could double or triple the amount of locations I could distribute to out of this one long chest. I wish someone would create a mod for a chest that is 1 segment wide and 10 segments long. Anyway as you can see in my snapshot it works quite elegantly!
Here is a snapshot of my new Iron Plate Production using the Cargo Car Buffer. Because of the economic benefits of the DBC Method I just have this fill a 4K buffer and stop. It really saves me on Electricity, once the buffer is filled the plant will only run for maybe 10 sec every minute or so to keep up. So by using smart inserters to stop the output, the furnaces have filled their internal buffer and will output a massive amount the second they are told to, which is usually enough to backfill the main buffer, then shut down, using no electricity. If you looked at my Power Stats you would see that Inserters and Assemblers use the most energy not the Electric Furnaces. Depending on when you look, the furnace power requirement is often zero and I am never starved for Iron or Copper Plates.
http://images.akamai.steamusercontent.c ... 0440BE051/
I'm sure this has been done before, but I have yet to find an example using this method of Factory Design, so I will go into a little more Detail how it works.
PRIMARY BUFFER:
The Primary Buffer is a large buffer. My rule of thumb is the Primary Buffer should be a minimum of 10 times the Production Cycle requirement and if its a long distance from the local buffer I add another 5-10 PC's worth. A production cycle in this context is the amount of parts to make a complete assembly (ex. for a Green Circuit uses 4 copper wire so if I had only one assembler making green circuits the Primary buffer would be 40 copper wires. I have twelve GC assemblers and a 500 copper wire primary buffer) Generally larger is better for the primary buffer.
Local Buffer:
This is a buffer right next to the assembly area and feeds the Input Loop with a measured amount of parts. This buffer can be as small as 2X the PC requirement. You can make this larger for a safety factor, it will just mean that your main buffer won't have to work as hard. For a single Assembly there will be one Local Buffer for each part the assembly needs. For Green Circuits there will be two local Buffers, one for Copper Wires and One Iron Plates. As long as the local buffer has enough parts your assembly machines will run at full speed, if you feed the input loop properly.
Input Loop with Counter
The Input Loop feeds the assembly machines with parts. The parts on the assembly loop do not have to be sorted you can put them on any way you want as long as they go by assemblers and can be picked up by the counter. I try to make the loop a compact as possible. After the parts have passed the assemblers, if there are extras they will be picked up by the smart inserter which is filtered to only pick up one type of part. It goes into a smart chest and then a regular inserter places it back into the loop. Since the regular inserter is slower than a smart inserter, it will cause a backup in the smart chest. I hook the smart chest up to a smart inserter at the local buffer. The smart inserter will activate when the counter smart chest registers less than a constant I pick based on how many are needed. In most cases you can start with 1. Since there is a delay from the time the local buffer releases till a part will actually get counted you will often inject 10 to 15 parts into the loop. Enough to satisfy a couple of production cycles. The counter will pick them up and start to build up its count shutting off the local buffer. By changing the constant the counter is compared against you can adjust how many parts you inject into the loop and affect the timing of the input.
After all that the output of the assembly machine gets put into another smart chest which has become the primary buffer for the next assembly that that part is used in. If you do this for every assembly you get this:
http://images.akamai.steamusercontent.c ... 03A35F2A5/
At this point I have only about 5 techs left to research. I am going to redesign the factory bigger to make my space ship which I understand takes a lot of resources. Look at my mini map and notice how little pollution I am emitting for this stage of the game. I've gotten rid of most of the biter nests near by and the pollution doesn't reach the other so they don't attack. I may have an issue since there was so little pollution the biter nests did not get super big. I only have about 750 artifacts so I may have to range far to find more biters.
Anyway, just wanted to show something a little different.