Suppose you have a factory that transforms iron and copper plates into copper wires, and electric circuits. I dunno why you'd want to ever return a train back to pickup items before it was empty. Train networks get congested in larger bases, so you want to minimize traffic, and instead leave trains around waiting bays (off the main roads) or "parked" with inserters pulling from them. Occasionally, I'd make a dedicated waiting bay where some trains wait for a specific circuit condition before leaving the "Train-stop waiting bay", but this is a relatively rare situation. The vast majority of my trains run on "Wait until full" and "Wait until empty". #2 is also simple: empty the wagon before pulling it into this station. As long as all the various items served by a station have the same stack-sizes, my circuit-methodology works. The answer to question #1 is simple: standardize the number of items you load onto a wagon at any given station. How do you know how much of each resource needs to be loaded onto the cargo wagon? And what if the wagon already has some resources left over from the last time it was loaded? Im not sure if I am following the pulse counting method. Before an inserter starts to place a resource into the cargo wagon, it checks the pending value to see if there is room for the particular resource. When the inserter finishes placing the resource in the cargo wagon, the actual value is incremented. When an inserter starts to place a new resource into the cargo wagon, it increments the pending value in an atomic operation. One way I can think of is to make there two values associated with every resource in the cargo wagon, a pending value and a actual value. Maybe a more technical solution to the problem would be better. Instead however, only a small subset of the inserters are used for each cargo wagon. If resources could be evenly distributed across all of the chests than all of the inserters could be used at the same time in order to load every train. I already have it working, but because of this constraint, many of the trains take longer to load than they would otherwise have to take. I don't want to modify the loading station every time I add a new train that needs a new set of resources. I am trying to make a single train stop that is capable of loading/unloading any train that stops at it. I should probably explain what I want to do to show why i think this is a good idea. My statement would be more accurate if I said multiple chests cant share any resource types unless there is only one resource. Oh you're right you can have one box with multiple items in it. The user must prevent the chests from ever becoming completely full if they want to load cargo wagons in this way. In this situation the inserter will be stuck again. Proposed solution: Add a feature to allow the stalled inserter to place the copper back into the chest and then start loading iron.ĭrawback: if the chests are being constantly filled by another inserter than there is a chance that between picking up an item and putting it back in the chest, the chest may become full. In addition, the more unique resources, the slower cargo wagons are loaded. This isn't a show stopper, however it is inconvenient if you wanted multiple trains with their own set of stack filters to be able to stop at the same train stop. Solution 1: Put all of the copper in one chest and all of the iron in the other chest.ĭrawback: You need a chest and inserter per resource which limits you to 24 different resources. While the inserter that got to load the last copper gets to move on to loading iron, the other inserter is stuck holding the copper and does not move on to loading iron. Only one can load the copper onto the cargo wagon. What happens however is that the two inserters start out loading copper, but on the last copper item both inserters pick up copper from their respective chests. You would expect the two inserters to load both copper and iron until the cargo wagon is full. The two chests are filled with copper and iron and then loaded on to the cargo wagon using the two inserters. Suppose the cargo wagon has stack filters set such that it can only be loaded with 200 iron and 50 copper. The easiest way I can think to explain this is using an example. I think a good solution to this problem would be to allow the inserters to place the resource back into the chest(if there is room), and then continue loading the train with other resources. I have seen other posts describing this problem as a bug, but it seems that this is intended behavior. TLDR: In the situation where a train cargo wagon has stack filters to allow a set amount of each resource to be loaded on to it, inserters can become stuck if more than one is loading the cargo wagon.
0 Comments
Leave a Reply. |