r/factorio•
MadP4ul

Do you still use train stackers? Because the perfect train system does not need them

Tutorial / Guide

Train systems got massively simplified in version 1.1

If you want to deliver a ressource from m input stations to n output stations you just have to:

  • name all m input stations the same, eg „iron in“
  • name all n output stations the same, eg „iron out“
  • set all stations train limit to 1
  • configure m+n-1 trains to go between inputs and outputs when they are full/empty

As a result, there always is one empty train station that can become the next destination when a train is ready. Trains only move when they need to. This system utilizes the maximum possible delivery capacity of the train system without causing trains to go to any place they dont need to be at, keeping the rails as clear as possible and removing the need for waiting areas. Also trains path directly to the station where ressources are available/needed, avoiding any risk for bottlenecks that comes with having central trains hubs. The potential of this decentralised system is best used in grid megabases, because they have many paths between any two train stations, but to me it seems to be the best system in any case.

Does anyone else do it this way as well or do you do it differently? And if so, why?

Posted Apr 22, 2022, 1:04 PM UTC

212195

If the distance between provider and requester is large enough that the requester consumes a train load in shorter time than it takes to move from A to B, it's actually desirable to have an intermediate staging point between the two.

Late game rail world, for instance.

236
Legendendaer•

You can just extend the waiting area for one train, so there could be 2 trains simultaniously at the train station

25
danielv1232485344 repair packs in storage•

So a stacker? I guess it is necessary after all.

181
Legendendaer•

No.

Stacker is overkill.

Just extend the station with an waiting area.

-77

"A rose by any other name would smell as sweet"

-- William Shakespeare

141
f_leaver•

So, by extending the station providing a waiting area, you're able to - let me think, what's the appropriate word? - stack the trains to avoid supply problems, right?

21
[deleted]•

So a serial stacker instead of parallel stacker ?

6

I already have room for 5 trains in my preferred brick base layout. However, using that as a safe limit for number of requests won't always be enough, when raw material is coming from an outpost 8000m away.

It also helps buffering things if the provider push a train to the holding area as soon as it's full, so it can start filling the next one.

19
Vxsote1•

Exactly. If you are trying to maximize material throughput over long travel times (relative to load/unload time), you're going to need multiple trains enroute at the same time, in both directions.

With perfect timing, and no changes/disruptions, one could theoretically have each train arriving at station precisely when the previous train is departing, but that is essentially impossible in the practical sense.

But another consideration is that while you have all these trains in flight, something in your production or consumption might (will) break. And then you're either going to have to keep full or empty trains moving on the rails, or find somewhere for them all to park. And we all know what happens when your trains end up parked on the rails.

So, even if I don't expect a stacker to have multiple trains queued in it when my base is running nominally, I still build them big enough to have all the trains parked at one end of the route or the other, just to reduce the chaos resulting from other... shall we say... mismanagement of resources.

21

So, even if I don't expect a stacker to have multiple trains queued in it when my base is running nominally, I still build them big enough to have all the trains parked at one end of the route or the other, just to reduce the chaos resulting from other... shall we say... mismanagement of resources.

Always cap the train limit at a station with the actual number of trains that can wait without disrupting traffic elsewhere. Otherwise one of the green circuit modules will stop sooner or later, because too many iron trains are blocking the copper train that's needed to un-deadlock things.

10
Legendendaer•

Are your outposts really that far away?

What reason is even there to have ur production facilities so far out?

​

If you are talking about ores...
You can always make an exception for waiting areas for your smelting arrays.

2

When playing rail world, and only pacifying the natives in one direction, that's what happens. I do on-patch smelting btw.

10
Red_Icnivad•

They can be, plus the further out you go the bigger the patches get, so sometimes it's beneficial to go far out, especially if you are doing on-patch smelting, which limits mining throughput.

3
Seanrps•

Ah yes a … what do you call it again? Grouper?

3
Legendendaer•

Buffer. Or more specifically a queue buffer. With the capacity of 1 train.

1
MadP4ulOP•

Interesting, that is a problem I did not face yet. In our megabase we had an assembling station that almost ran out before the next train arrived and we blamed in on the scale of the factory at that station. "It should draw fewer belts from the input station" we concluded. But I see how this issue can get progressively worse in a railword, so you need for a solution that scales with increasing travel distances.

Edit: there are other solutions to your problem, its just hard to implement them after the fact

3
FunnyGamer3210•

I do it, but sometimes I put a limit for 2 trains in spots where the resources are getting used up very quickly. A train limit 1 does not always keep up. And I have a completely different system for ore delivery.

33
spacemanspiff1218•

I used circuits to increase the train limit on stations that are running low, so stations that are backed up don't have more than one train waiting to emtpy.

12
FunnyGamer3210•

I thought about it, but I rather want the full backup train doing nothing than have a circuit read the contents of a chest that's constantly changing.

4
Gprime5•

There’s 2 other options to increase throughput.

Either have longer trains and longer loading/unloading stations or build another output station next to the current output station with the same name.

1
DeHackEd•

I DO have longer station. It's just that it spilled out and became a stacker for space efficiency reasons. Makes the waiting area taller rather than wider.

3
what_comes_after_q•

This works if there is no transit time. It's true you don't need large amounts of train storage, but I always have two parking spots in addition to the station.

one parking spot means the station is almost never empty. By increasing it to two, I am holding more inventory, so if part of my supply chain suddenly changes, like if I build a large expansion and suddenly I my blue belt production shoots through the roof, I will have coverage for short term shocks until things get back to normal.

28
UnclothedSecret•

I’m not into megabase territory yet (just launched my first rocket a week ago), so take what I say with a grain of salt.

What I’ve been doing in my bases is to set all the train limits to 2 and have space for one extra train (not a stack). It allows a train to travel to the next station while another is loading, but no more than that. It might not be the most efficient, but in my case it increased the (un)load-to-travel time ratio. The only drawback I’ve seen so far is that all my stations take up more space, but that was the case with stacking too.

18
JasperDean•

This is the way

4
Dzyu•

This is the prelude to getting a train stacker. My trains took so long coming in that 2 trains per station wasn't enough anymore so I had to rebuild all the stations OR get train stackers. Since I wasn't sure that 5 trains per station would be enough in the future, train stacker was the easy way out. I only had 2-4 trains. Next time I will get 8-16 trains or. something, I think.

4
shoo_be_doo:science6:•

As a piece of advice, you get diminishing returns on # of locomotives pretty quickly. In practice for a train that long you’re not likely need to go over 4 or so.

2
oniaddict•

I set my unload side to a limit 2 and have a single space stacker. On the loading side, I do my best, to have a loading station for all trains of that resource with no stackers. I prefer to have consumption bottle necks instead of supply bottle necks so tend to over build mines and intermediate material production capacity.

3
MadP4ulOP•

This is fine, it just increases train network capacity so you can build bigger assembling stations. You could also use longer trains for the same effect. With a limit of 2, do you use 2m+2n-1 trains per ressource? Thats what I would recommend

1
UnclothedSecret•

I haven’t been using that number of trains, but I probably should. I’ve been using 2m+n, but tend to be bottlenecked in the consumption side.

1
Dysan27•

This system utilizes the maximum possible delivery capacity of the train system

Actually it doesn't. If the distance between stations is far then trains will be in transit and stations will be empty. The maximum possible delivery capacity comes when a train pulls in as soon as a train is finished unloading. At which point you are limited by how quickly you can unload the trains.

So it is best to at least have a minimal stacker so the next train can travel while one train is unloading.

The new changes, especially the train limits make it much easier to not need huge stackers that you needed before to be able to hold all the trains on a loop.

18
MadP4ulOP•

No, trains do not need to be constantly unloading. They just have to unload faster than the resource is consumed by the assemblers behind the station. But I agree, that travel distance can become a problem.

1†
thehalfmetaljacket•

That depends heavily on how you are doing your unloading stations and belt planning. If you are consuming resources at line rate (as fast as the belts can deliver it), which isn't an uncommon design goal for a lot of belt-based production blocks, then you can't have unloading stations running empty as it will create gaps in the belts and slow down production.

2
Eight888888•

Yes, but a cargo wagon gets unloaded faster than 45 items per second. They all get into your buffer chests and off goes the train. The unload is not direct from the wagon to the belt, it's not like as soon as the train leaves the resources will stop flowing.

3
bregmatter•

Watching trains pulling into, lining up in, and pulling out of a stacker is aesthetically pleasing and a mandatory feature of a "perfect" system. If you're not using stackers you're simply doing it wrong.

17
Josh9251:circuitred: YouTube: Josh St. Pierre•
3
gjsmo•

1.1 absolutely made stuff better, but it's not enough when you have large distances and large networks. The travel time increases so many stations go without inputs for long stretches of time without stackers in place. Recently in my base I have started doing 4-lane rail with dual unloading stations, plus usually a 4 train stacker.

It's worth noting that if you have smaller trains, or a smaller factory, this isn't really necessary. But it's also not like obsolete or anything.

15
platitood•

Stackers are the buffer chests of the rail network. :)

3
alexmbrennan•
  • configure m+n-1 trains to go between inputs and outputs when they are full/empty

This forces you keep all stations open at all times which is a very inefficient use of trains (e.g. the uranium fuel factory might need a shipment of steel every hundred hours or so but you need to park a steel train there permanently)

By creating some parking spaces you can cut the number of required trains by 95%.

Also what do you do when ore mines run out?

14
wheels405•

Why does the number of trains matter? The construction costs are negligible.

8

The biggest issue with that kind of saturation is that it prevent production planning by dynamically adjusting station train limits.

3
wheels405•

I'm not sure if I follow. Can you describe an example?

2

Setting the train limit to zero at a single station will block movement as there is no longer a free sport to shuffle around.

2
MadP4ulOP•

The described system regulates itself, you just need higher production than consumption for a ressource (which you need anyway).

1
Healovafang•

It's more work. Every consumer is another 2 trains that need to be setup.

0
wheels405•

You can include trains in blueprints, and you can copy their schedules with two clicks. It's much, much more work to ensure your trains aren't neglecting any stations if you use a different scheme.

0
boikar•

Schedules aren't blue printed?

0
Crazed_Archivist:rail:•

I just use LTN for all my train needs

No headache, no need to update stations.

Just place and forget, LTN does all the work

5
Flyrpotacreepugmu:portablefusionreactor:•

That doesn't change the stacker vs no stacker debate though. The depot may hold the trains when they're not running, but the stations still have the issue of either needing a place for multiple trains to wait or having reduced throughput because the next train can't start its trip until the current train leaves. If anything, LTN makes stackers even more important because it won't even send a train to get loaded until the unloading station is ready to receive it, whereas normal systems would have a train sit in the loading station already full. LTN setups also tend to run trains more often with smaller loads (if you're completely filling trains with a single item, there's little benefit to LTN over normal trains), further increasing the need to minimize time wasted waiting for the next train to reach a station.

3
Crazed_Archivist:rail:•

I solved the issue of the unloaded station by adding train capacity to it.

You can send more than one train at a time to the same station with LTN

0
Flyrpotacreepugmu:portablefusionreactor:•

Yes, but if you increase the station's capacity, you also need room for those extra trains to park (aka a stacker) if you don't want them to potentially back up into the way of other trains.

1
Crazed_Archivist:rail:•

Aaaah, so this is what this discussion is about

I never minded stacking trains so I never thought it was a problem

2
T-1A_pilot•

I'd argue that you still might need a waiting area of some sort, as ideally you're going to want tio use circuits to set the station limit to 1 when it can accept a train (needs resources at unload, or enough resources for a train at load) so your number of active stations is not going to be static.

A waiting area can prevent, for example, an empty train sitting at an unload station waiting for a load station to come available, preventing the next train from coming in.

3
MadP4ulOP•

Your example does not happen with the described system. One station would be empty and could be targeted by a train. In the next tick another train can leave for the now empty station the train just left.

If an empty train cant leave an unload station the only possible reason is that trains unload faster than they load. It is a symptom of a too small production. If a full train can not leave a loading station, it is fine. The cause is production being greater than consumption of the resource.

-1
T-1A_pilot•

(Shrug). Ok, as long as it works for you. If you have your load stations set so they activate when they can accept a load, then it can be possible for a train to complete unloading and not have an open load station (perhaps the "open" station doesn't have enough product.)

I see your comment about not enough production, and I guess if your production is such that this is never the case, then it wouldn't matter. Personally, I find frequently a load station might need a little time to produce a train load and be ready. Especially as the factory grows.

But, as I said, if it works for you then its perfect for you!

1
Panzerv2003•

I'd use stackers when you need a lot of something to the point where you unload at a speed that you consume something. The point would be having another full train behind the one unloading so there won't be a gap in supply.

3

For every loading-unloading station loop, I prefer to have three trains. When one is unloading, another should be loading, and another should be in transit or queued to load.

3
mo_hayder•

There is another problem with this approach (apart from the one mentioned previously if resources get used up faster than train travel time):

If you have n+m-1 trains, and suppose all Iron In (so m stations) are loading at the moment and a train at one of the Iron Out stations is finished unloading, then it has nowhere to go.

Thus it first needs to wait for one of the m trains to finish loading and leave for another Iron Out station before the train can even leave. Only then the next loading train train will go to the station this train just left, creating a wait at least as long as the travel time again (and in total even longer than the travel time).

I encountered exactly this problem in my recent megabase, and concluded a small stacker was still beneficial. Still trains are so much simpler with the "new" train station limit, I still remember messing with circuit conditions to disable train stations a lot to make many to many networks work before 1.0!

3
stoicfaux:portablefusionreactor:•

I go with 'm' trains instead of m+n-1 in my SE game (which has smaller SPM requirements.) My loading station blueprint includes a train. Same benefits as "m+n-1" but with even less thinking required.

2
MadP4ulOP•

Wouldnt the trains only target the closest unloading stations then?

1
bartycrank•

That will always happen unless you're setting the train limit or disabling the stops that don't need a load right now. Balancing the trains alone isn't going to get those stops fed.

1
brekus•

There's nothing "perfect" about this. As the distance between stations increases you need more trains on the route to maintain throughput. Whether they are stored in a queue, a stacker, or more redundant stations as you suggest doesn't change that.

2
Talzon70•

I'd prefer some of my full trains wait in a stacker able to enter my unloading station immediately after the previous train pulls away, rather than waiting at my loading station. The latter may be far away with significant travel time.

I get that trains aren't that expensive, but the proposed system will have trains sitting at slowly loading or dead stations instead of going to stations with more resources. Furthermore, loading stations may fill their buffers while waiting for the next train to arrive and then get backed up and shut off. It may be more complicated, but creating dynamic train limits lets you achieve higher throughput with fewer trains. You could mitigate these problems by setting train limits to 2 or higher and setting enable/disable conditions on stations, but that would require a stacker (or inline waiting area) anyways and I'd prefer a more dynamic solution.

Personally, I've been using circuits to set the train limits (within reason) on my stations based on the available resources or space. I have stackers allowing multiple trains to queue up to load at fast mining outposts and unloading stations.

2
[deleted]•

that only works if trains teleport instantly from input to output station.

The higher distance is the higher amount of trains "in transit" you need.

For example, if input and output needs one train a minute, but route takes 5 minutes, you need minimum 5 trains on the way to be able to get to station every minute, and 5 trains on the way back.

Now you don't need to have a stacker if that's only thing that is happening, being 'in transit' essentially works like that queue, but the traffic is always at least bit uneven so you will get into situations where something is backed up or spaced out more so having some buffer means smoother transfer to the input.

So if your route have "capacity" for 10 trains, if you want to guarantee the throughtput you probably want 11 just in case one of them gets delayed by waiting on intersection or something.

2
UncleDan2017•

If your world is big enough that train travel times start to get significant, and you also need a high percentage of Train occupancy in the station (The percentage of time Trains are actually unloading versus total time elapsed of your game), then buffering is a necessary evil. You simply can't afford the time it would take to ask for a new train and have it path over to the station. However, if you request multiple trains and you always have one in the stacker, it becomes possible to keep a very high Train Occupancy percentage.

I personally have a huge world that is a city block setup, and some stations can request as many as 3 trains at time to keep my 6.2K SPM.

2
SK1Y101•

I use train limit 2 plus single train stacker, for anything that has long distances, or super high utilisation. (Basically all ores)

1
[deleted]•

[deleted]

1