Why does this station unload this train unequally?

Posted Mar 13, 2017, 7:19 AM UTC

Posted Mar 13, 2017, 7:19 AM UTC
As you can see, the first train car is empty, but the second one has almost 2k steel left. This is happening because this station somehow has a small bias towards the contents of the first car. It adds up to about 100 per train. Added over dozens of train runs, you get massive differences.
But I don't understand how. How do I fix this?
Edit: I'm not looking for a solution, I'm looking for an understanding of the problem. I get that the output is unequal, but unless my understanding of the way splitters work is completely wrong, that should be an entirely separate problem from the input being unequal -- and it's the input being unequal that I care about.
Another edit: The belts carrying steel are fully backpressured at all times.
Clean your outputs and test again. It's possible it's being emptied first because something on its line needs it more
I cleared and tested, and that's how I found out that it's ~100 per train
I don't know. It might have something to do with with edges being sooner in the path. Try making each unloading station exactly the same?
[deleted]
On my big train base I ran into something like this and I never proved it to myself to my full satisfaction, but I had a theory it was due to the combination of unequal travel lengths before the balancers (like you have going on as well, where your left wagon's belts are shorter than the right's), and intermittent consumption (like if the steel consumption was slower, just a little bit, on average, perhaps over many train delivery cycles, when your left belts were empty like in your image, and then was faster, again just a bit over many cycles at other times). But I don't know for sure.
For example, construct an extreme case, where you were actually trying to make it worse:
If you start unloading both full wagons at exactly the same time, the steel from the left wagon will hit the balancer first (call the time when there is steel from the left wagon in the last balancer but no steel from the right wagon State A), and then there will be some time when steel from both wagons are passing through the balancer (call that time State B) and then at some point steel from the left belts will clear out and only the last bit of steel from the right wagon will be left in the balancer (call that State C).
Say that steel consumption was enough to drain all of the belts at full speed during all State A and State Bs, and was very slow (or even a complete stop) during State C.
Since State A and State B are full speed consumption, and steel from the left wagon is only in the balancer during periods A and B, the average consumption from the left wagon will be full speed.
After the left wagon's steel has cleared through and we enter State C and for some reason the consumption of steel slows down. Therefore, the average consumption from the right wagon is less than full speed (some of it was full speed during State B, but some was slower).
Since average consumption from the left wagon was higher than that from the right, eventually the right will clog up.
On my base, I had very regular train schedules and always more supply than demand (and supply trains will get blocked by the previous train waiting to unload), so I figured that probably the train schedules and consumption got into some steady state where something like the scenario I described above (but with very, very slight biases) was occurring.
Going to prefix this by saying everyone who says your splitter configuration is incorrect most likely hasn't actually tested their solution, since the left-most splitter (ignoring the one splitting one lane into two) on the unloading part would be sharing them out.
The actual issue is that the belts on the left wagon are too short. What this does is cause that belt to deplete faster since it gets to the balancer earlier (I don't know why it depletes faster, intuition suggests otherwise), causing an imbalance in the chests that propagates to the entire wagon.
I've run into this exact issue when designing 4-wagon compact unloaders, since it relies heavily on reducing belt length. You're able to lengthen the belt right now, so you don't need to worry about this particular problem. As long as you lengthen the belts before the left-most splitter (again, ignoring the 2-3 one) the problem should go away.
Is it relevant that I've observed this issue occur without the belt depleting? I sat there and watched a completely equally loaded station develop a disparity of 100 units of steel while all the belts were backpressured all the way to the chests.
I don't know, all I know is that the issue comes from short belts.
In your save, the belts weren't backpressured at all times. When the plastic train arrives the two red belts of steel move at full speed, but then your solar production takes parts of a half belt. For small periods of time you have 2.5 belts of demand and only two belts of production. This is enough to cause the splitters to favor one side of your inputs.
Warning for New Players!!!
Disable achievements before opening this save game!
I didn't think to do so, and gained 10 steam achievements from loading this game. :-( All I wanted was to see how someone else laid out their lines... I like your work though!
If this bothers you a lot (it would bother me a lot) you can try this way to delete the steam achievements: http://steamcommunity.com/sharedfiles/filedetails/?id=414461578
Haha sorry, I'm glad you like it at least.
My starting area is the left factory with the pink trains, that builds all my supplies. And the nearby factory i'm at in the save is my rocket factory. And then a little bit away up and left i have a big oil refinery
Are you sure they're being loaded equally?
The leave condition at the previous station is "inventory full".
Are there any capacity restrictions on those chests?
Also test balancing the belt capacities. The right side has a larger capacity due to its length. The amount is 11x8 steel, I think.
Shouldn't belt capacity only matter if the belts occasionally empty out? I've watched this effect happen while both belts were completely full.
No capacity restrictions.
Is your downstream usage balanced? If you have more demand from the left belt, that will cause your left side chests to empty faster. You need an input+output balanced splitter to make sure the chests all unload evenly.
Get rid of the 2 - 2 splitter and haven them all empty into chests the same distance away and see what happens
Are the chests between the conveyor belts and the train constantly full? If not, are they big enough to store all of the contents the trains deliver?
I think the problem is that your setup is either backlogged (full), clogged up or maybe even both. (by clogging I mean that the conveyor belts on the right side cannot carry the steel away fast enough and the chests get full before the train is empty. This makes it so that the inserters cannot empty the train before it leaves).
More chests might be the solution.
[deleted]
THIS has been bugging the shit out of me lately. It was fairly low on my priorities, but it came to a head last week. I spent some time researching it, and this is what I found... (sorry if I use the wrong terms, still a balancing noob.)
When you balance your belts, input balance is good, and output balance is also good (dependent on your goals), but getting both causes many, many tests and subsequent forum posts, with my takeaway being:
If you really need input and output balanced lanes, you need to use back to back balancers. In fact, it appears that you can do two in serial or in parallel, but I prefer serial.
That may end up being a bit of real-estate, so in my situation I looked for other fixes first, basically as noted by other commenters on this post.
I unload with 6 inserters per side into chests, then inserters on to belts. I then balance the six to three and then off to the consumers, but I have one car that has a disparity and it's measured in thousands.
Currently I have my rail's all dug up while I fix some outpost issues, but I'll be working on the balancing issue this week. So while "I read on the internet" that the fix is back to back balancers, I haven't tried it yet.
think of train output in pairs, move the left belt to merge to the right one, then feed these 4 belts into a 4-4 balancer, and uses how many output you need. (and don't merge everything into two lanes to split it into three 15 block down the belt)
That's not a perfect solution, but it will at least use your train output more or less equally.
If you need it, I'll screenshot something after i'm home from work.
Down the bus, your left steel belt is more used then the right and since your balancer are not proper balancer, it ends up using more steel from the first carriage.
Two thing you can/should do. Put a proper 8-3 belt balancer and use circuits to force balanced unload of the chests
How is it not a proper balancer? what's the weak point? As far as i can tell it should be perfect.
The first part where you merge the lanes of each wagon into 1 its ok.
Then you have a spliter that balances the 2 lanes into 2 lanes, also ok.
Then, you split the right lane into 2, ending up with left lane with 50% of steel and middle and right with 25% each. That is not balanced.
Belt balancing is kinda of a dark art, that I too, cant understand very well, only getting some of the easy concepts like the one I just explained. The complex stuff, I just trust the 'heralds' and use what they say its good like here: http://i.imgur.com/kcZrPac.jpg
Although you could replace your 2-3 belt balancer with the right one, its still not very efficient since you are reducing your 4 lane input (8 lanes half full from wagon, so 4 lanes) into 2 lanes to balance again to 3, so you are reducing the throughput in the processes.
Better to merge these 8 lanes into 4 and then use a 4-3 belt balancer or just go 8-3 directly!
I see what you're saying, but I'm not worried about the output being balanced, because the demands aren't equal. The output being unbalanced isn't the same as the input being unbalanced, in this case at least. Why isn't the splitter just before the turn upwards balanced? It's favoring the bottom lane over the top lane, and I can't imagine any reason why.
I'm not looking for a solution, I'm looking for understanding on what the problem is. I'm sure that unbalanced output is a problem (if those belts had equal demands) but it's not the problem I'm trying to understand here.
I see your point....
Even if left lane is fully used and the other aren't, that splitter should be using equal ammounts from both wagons....
Why it isnt.... I accept my ignorance and leave that for the belt gurus.
http://imgur.com/a/lCkJO Because the #2 splitters are pushing two lanes into to one, then the #3 splitter does this again, there is a preference to accepting the materials that dont have a belt after the splitters. So essentially you are grabbing from the belts that dont continue on past the splitters first. I believe that is why the second cargo wagon is last to empty compared to the first cargo wagon. Its just the way splitters work. Im guess that if you got rid of splitter #3 they would unload at the same time.
I would guess it has something to do with parity. If your belts are not fully congested at all times, you could end up with uneven distribution when gaps pass through. Or there might be some hokey effect between the two lanes. I suppose you could rig it up with pulse-read belts and arithmetic combinators to count how many go in and come out where.
They are fully congested at all times.
I am having this issue two with some of my stations. I have reset the stations by filling the buffer chests and the belts all the way to the end of the balancer and then bringing in a full train. Over time the wagons furthest from the balancer get used less resulting in the same issue you are seeing. I cannot figure out for the life of me why they are being drawn from unequally.
[deleted]
There is something ODD with this game sometimes. For example, I had an unloader where I only allow the inserters to work If everything n the inserter hand is empty. In short..it should be impossible for it to "unbalance". But guess what..it does eventually. I rebuilt it 3x, double and triple checked my logic..it still breaks eventually.
Left-hand rule(I believe). Splitters will prioritize items on the left side when at full capacity. Thus, when pressure occurs on the system, the right side(in this case, the upper line) will be consumed less than the left side.
This also has to be kept in mind with belt buffer systems, as having a belt buffer system on the wrong side will result in the belt buffer being prioritized instead of the input line.
After reading the comments: It looks like belt length disparity to me. The only thing that would shoot that down is if there is always steel in the chests on the left side.
To test it, scoot either the left side one tile left, or right side one tile right. Feed into the center from both sides(mirrored setups) into a splitter right above it. Since consumption is unequal a lance balancer wouldn't be a bad idea right before the underniethies.
Asymmetric upstream consumption.
Put in a 2-to-3 count perfect balancer. That'll sort out any issues with belt imbalance. If you have a lane imbalance (you're consuming more from one side of a belt), you'll have to get a bit more creative.
I see what you're saying, but I'm not worried about the output being balanced, because the demands aren't equal. The output being unbalanced isn't the same as the input being unbalanced, in this case at least. Why isn't the splitter just before the turn upwards balanced? It's favoring the bottom lane over the top lane, and I can't imagine any reason why.
I'm not looking for a solution, I'm looking for understanding on what the problem is. I'm sure that unbalanced output is a problem (if those belts had equal demands) but it's not the problem I'm trying to understand here.
The likely problem is that your chests are full, and you're now limited to unloading at the rate that the material is being consumed. Thus, your demand is the bottlenecking factor here.If you have room in all your chests, and your carts were loaded equally, they would have both completed their unload at the same time. Since they didn't, either you didn't have the free chest capacity and something upstream on the right is bottlenecking you, or both your carts weren't actually completely full when they arrived.Looking more closely at your setup: this already is count-perfect balanced from each output's perspective. There's no clear bias to one set of chests over the other. This means you have an imbalance persisting from when you were first setting up. One set of chests got loaded up more than the other before you had finished slinging all your belts, or the train departed once without equal loads in both chests. Double-check all of your delivery trains to make sure they're all set to depart when completely full, and rebalance the two banks of chests by hand. They should stay balanced from here on out.
Here's a save that exhibits the problem: https://www.dropbox.com/s/l6w371x6psjp9al/inequality_test.zip?dl=0
I saved right as a train was arriving. Pause and observe that the train is completely full, and the station is as even as one could expect.
Then observe that the train takes about 15 minutes to empty, and over that time, the front cargo wagon empties while the back cargo wagon has about 100 units remaining.
Depending on timing, the splitters may end up pulling from different lanes.
Here's a creative mode setup that mimics your factory. On the left setup, both sides are pulled from evenly. On the right setup, the splitters are pulling more from the left lane. The only difference is timing of when I placed the splitters.
http://imgur.com/1zWDgvg
-edit- The above setups are slightly different from yours because the splitter is placed right at a corner. If the splitters are placed on a straight part of the belt (like in your factory), then the unbalanced input shows up consistently.
http://imgur.com/djq060V
But shouldn't the three splitters he has in the middle cause it to pull evenly from the inputs (ie the chests/wagons)? Unless I'm missing something it doesn't matter if the belts are not consumed evenly downstream. His splitter arrangement should result in any consumption pulling from the unloading stations evenly.
You're right. Check my edit. It's probably an imbalance that's been there from the beginning, which can only be worked out by manual intervention or input starvation.
My expectation is that the leftmost horizontal splitter makes each side a black box to the other side. Ie, it hides the circumstances of the right side from the left side, and hides the circumstances of the left side from the right side.
This clearly isn't always possible, but I expect that it does so when it is possible. So either it isn't doing what I expect, or it isn't possible to hide the circumstances of the left side from the right side.
So assuming the splitter isn't doing what I expect, the question is, what circumstances can't be hidden? Left side of a single belt vs right side of a single belt can't be hidden, but shouldn't the splitters right next to the train cover that?
Check my edit. Your setup is count perfect, so either the imbalance has always existed, or you're seeing a slight bit of bias on the part of the splitters playing out over a very long period of time.
No, he just consumes less than 2 red belts of steel. This means that once the train gets in the station, with empty belts, it starts unloading, the steel of the first cargo reaches the splitter first and has more time to flow at full speed before the belts get backed up.