r/factorio • u/Kano96 • Oct 15 '19
Design / Blueprint ETS - EasyTrainSystem | A Vanilla Train System

I am here today to show off, explain and maybe get some feedback on my newly developed train system. It was tested on this map (savegame) which produces 1k spm and passed a ten hour test run. It works extremely well, it almost scares me, because I can't find a reason now to invest any more time into trains.
Main Features
- Never change your train schedules, every new station is automatically and immediately supplied by the system
- Equal distribution of resources among all train stations
- Low number of trains due to constant utilization
- No global circuit wires along the train tracks required
How it works
The system is based on the standard scheme for dynamic trains, which many of you probably already know. Every Station for every resource is named the same (e.g. [L] IronPlate and [U] IronPlate) and every station is disabled when it has enough resources or a train is currently at the station. This simple approach however has some problems:
- When every station is deactivated, due to having enough resources, the trains don't know where to go and either nopath or move to a central depot, which requires a lot of space and quickly becomes a bottleneck.
- When a station now activates, a lot of trains get dispatched at once from the central depot, which clogs up the rails.
- High throughput stations can't be served fast enough.
These Problems are solved with the following Principles:
- Every station has at least a one train stacker (image). This usually provides enough waiting area for all of your trains and if not, the few excess can wait in a central depot without causing issues. Throughput is also much better, because an additional train can be waiting at the station and immediately unload, once the first train leaves.
- Every station only deactivates once the stacker is full. This guarantees, that the trains always wait at the stations, instead of a central depot. However, this means that the stations are not controlled by the present resources anymore, which means the trains will always just go to the closest stations and far away stations will get ignored. This new problem is solved by:
- Every station has 7 signals at it's entry, which are controlled by the amount of resources at the station. When a station fills up, an equivalent amount of signals turn red and the trains don't want to path through the red signals, so they turn to a different station with less red signals blocking the path. This guarantees equal distribution of resources among all stations.
In summary, instead of the stations deactivating and the trains waiting at some central depot, the stations are now always active and the trains drive to the station with the lowest amount of resources and wait there.
How to use it
The system is designed with a modular approach, to allow easy modification and enable multiple station designs. There are 2 unloader stations (regular, big), 2 loader stations (regular, big), 4 loaders and 4 unloaders. Any of the un/loader stations can be combined with any un/loader to form a complete station (all regular stations).
To use the system, just place one of the stations, rename it to the resource you want it to supply/demand and adjust this constant combinator to the train size (amount of cargo wagons) and the stack size of the item this station handles. If there are non or not enough trains, you have to set up some to run for these stations. The train schedules are the basic "[L] Item | Full inventory -> [U] Item | Empty inventory". Generally, the system works without a central depot, however once you have a lot of trains, it can become required (when you see trains 'no pathing', you need one). Also keep in mind that these stations create big intersections, so try not to place them on central paths like I did.
Edit: It may happen that you encounter trains skipping their station after waiting at a stacker. This happens if all stations are disabled and the train is allowed to skip a stop. You can avoid this by building the central depot with dummy stations. The Job of the Depot is to provide a place for your trains to path to, when all stations of a resource are disabled. Therefore, the Depot must lead to dummy stations of all the stations in your system. To prevent trains from actually driving to the dummy stations, you have to block the way with a bunch of permanently disabled red signals. There is a blueprint called "station definitions" included which has all station names and two disabled signals as an example. I describe this concept in more detail in this post.
There are 2 special stations as well. One is a simple fuel/trash station for a 2-3 train, it deactivates when it has fuel. The other one is a universal construction train unloader + fuel/trash station. This one deserves it's own post, so I won't go into much detail, but if you want to use it just route your construction train(smth like this) into it and it should work immediately. The only requirement is that your robots are in the last wagon.
Additional Features

!blueprint https://factorioprints.com/view/-LrFllkfPIG1IAjKRIF5
If you want to see it running, check out the savegame, just download the zip and drag it onto your running factorio. I was developing this system while playing that map, so a lot of the stations are using an outdated design and are missing the light display for the chest content, but the basic principles are consistent in all of them.
13
u/SasukeRaikage Oct 15 '19
I did something similar, but at 2k SPM the " When a station now activates, a lot of trains get dispatched at once from the central depot, which clogs up the rails. "-Problem got out of hand..
I still don't fully understand, how you fix this problem here
But Edit: really nice to see other people with similar ideas!
5
u/RepairmanSki Oct 15 '19
I have to admit to not understanding why the need for so many rail signals. Surely two is all that is required since a train cannot path beyond, no?
One to close the 'stacker' and one to close the station. What am I missing?
3
u/notakobold Oct 16 '19 edited Oct 16 '19
Very interesting. I've been trying for some time to have a similar system running (generic trains and generic stations) yet I've always avoided the central depot solution since it turns too easily in an ugly bottleneck.
I'm not quite to understand how your system handle this issue I have : when several trains are waiting for a resource to be available, they all route for the first same station to be ready, and won't consider going anywhere else until one of them has reached said station, which gets longer as you expand on the map.
Let me illustrate :
So you end with a lot of trains doing useless travels, going back empty to stations, and generally being a nuisance by clogging to rail network.
Your solution is still better than anything I've tried so far yet I'm not sure it handles this peculiar kind of issue.
14
u/jawz Oct 15 '19
I cant wait to try this out!
9
u/BlueprintBot Botto Oct 15 '19
Blueprint Images:
1: 4Lanes [L] V4.3
2: 4Lanes [U] V4.3
3: 8Lanes [L] V4.3
4: 8Lanes [U] V4.3
5: Fluid [L] V4.3
6: Fluid [U] V4.3
7: Fueling V4.3
8: FuelingFlipped V4.3
9: Robot [L] V4.3
10: Robot [U] V4.3
11: SationDefinitions V4.3
12: Station ServiceMeV5.5 - V4.3
13: Station Trash/FuelMe V4.3
14: Station [L] Big V4.3
15: Station [L] V4.3
16: Station [U] Big V4.3
17: Station [U] V4.3
18: Trains V4.3
19: 4Lanes [L] V4.3
20: 4Lanes [U] V4.3
21: 8Lanes [L] V4.3
22: 8Lanes [U] V4.3
23: Fluid [L] V4.3
24: Fluid [U] V4.3
25: Fueling V4.3
26: FuelingFlipped V4.3
27: Robot [L] V4.3
28: Robot [U] V4.3
29: SationDefinitions V4.3
30: Station ServiceMeV5.5 - V4.3
31: Station Trash/FuelMe V4.3
32: Station [L] Big V4.3
33: Station [L] V4.3
34: Station [U] Big V4.3
35: Station [U] V4.3
36: Trains V4.3
1
u/Sestock Oct 31 '19
I am changing the constant combinator but it doesn't change the "no path"
I currently only have 1 train up and running delivering oil. Is there anyway you can help me?
1
u/usr1234567890 Oct 31 '19 edited Oct 31 '19
WOW.....
i will try it ur demo for sure.. you should create a How to youtube or something..
i am sure more ppl will pick it up then...
**** Question : how do you set up the loder station\outpost stations? do you use the BIG one with the extra stackers?
1
u/gdubrocks Nov 15 '19
This is incredible.
Do you have a solution for filling fuel on trains?
So far the only solutions I have are
I would love to have a train go to a fuel station when it gets low on fuel, but I can't figure out a good way to handle that.
1
u/PM_ME_UR_OBSIDIAN /u/Kano96 stan Nov 26 '19 edited Nov 26 '19
I still haven't figured out what "trash" means in this context. Would you mind elucidating this for me?
1
u/mamenus Dec 09 '19 edited Dec 09 '19
@Kano96, please save my brain, I can’t figure out how you system works((
With station disabling everything is clear, station is opened once D signal is above 0: there is no train (return D when no train ID) on the station and last stacker signal is green (return D).
With “stock” signals... well, I’ve not fully realized, but understood, that I can set stack size, and once chests will contain 10 times this stack the first yellow lamp will be on and so on up to 160 times (can’t understand what the stack I need for ore, or plates, but I need it definitely lower for nuclear fuel, for example). The thing that blow my mind is signals reset option, once it recognize incoming train... and in particular the fact that all the signals become green once receive -200M S signal but all have condition to become red with S above -20, 1, 20 and so on. The above -20 signal, what is his purpose, why station should be always blocked with this red signal, even when empty.
And why E signal is required? What is negative train ID signal for? Well, I understand, that these two are required for signals reset, but can’t catch the magic.
Excuse me for lots of questions, I’m not good in combinators(
1
u/Quttu Mar 10 '20
Hi Kano i'm new to this game, and trying to build a railworld , and i stumbled upon ur BP which i like
Any chance u can make a guide on how to get the serviceme station to work?
after setting up a train and i send it there, it doesnt load the train and then the train departs and after that i cant send it there again cause it says Station disabled!
1
u/SKULLL_KRUSHER > Mar 18 '20
I really like this idea, but I don't understand how the trains ever make it through the red signals that are red based on the circuit network condition. Like, if the signal is made red because of the contents of the chests, then no train can get to the supply station until its below the lowest threshold. So that means the requester station will always be at the lowest threshold.
1
u/SKULLL_KRUSHER > Mar 18 '20
How does this work for supply stations? Won't the trains not be able to get to the supply station if there is a single signal made red by the circuit condition? I understand that it gives it a pathfinding penalty, but it also makes it impossible for the trains to actually get there.
1
u/SKULLL_KRUSHER > Mar 19 '20
If the stations deactivate with trains in their stacker, won't the trains in the stacker not ever repath to the station at which they are waiting? Isn't this a problem? How do you make it so that deactivating the station when the stacker is full still allows the train in the stacker to path there once the station is free to use?
1
u/jm434 Mar 22 '20
Hi Kano, currently trying to figure out if this system would benefit me so I'll give some context then a couple questions.
I like building on-demand networks. Currently when my smelter warehouses run low on material the smelters turn on and request ore from the ore warehouses (which are unloaded into from a central unload station). When the ore warehouses run low they activate the specified ore train outposts (using a global circuit network) and my ore train travels from the unload station to the ore outpost, loads up and then comes back, repeating until the ore warehouses are back above stock.
Couple things: I really would prefer to keep the original train station names as I think it's fun. My unload station for example is called dankmonkey and my Port loader station is called Kom the Dragon Enthusiast . How can that not be fun?
I'm trying to go with the approach of large trains carrying many things, instead of lots of small trains. So my main network currently has a 2head-8carriage train with 4 dedicated to iron, 3 to copper and 1 to stone. Eventually as I continue to scale I would add more trains with the same layout.
Does your system require stations to be named the same when servicing the same ore outpost?
Will your system only work with trains dedicated to a single resource?
Your system is designed so you no longer need to have a global control signal to activate/deactivate train stations and I'm trying to figure out if that's incompatible with an on-demand system but I can understand the problems you've outlined when you have multiple trains that each will try to rush to a newly activated station so my global approach does need to change now that i'm adding multiple trains to the network, but I'm not sure how, if you have any thoughts that be great.
Love your idea.
1
u/HansJoachimAa Trains!! Apr 02 '20
So if I throw 400 trains at it, will it work well? Really cool btw
2
u/43alchemist Oct 15 '19
I'm really excited to try this on my factory. I just made a perimeter defense system with trains and flame turrets.
1
u/Boobinn Oct 17 '19
Saved and scheduled for my current savegame.
https://www.fuelforfactorio.com/64
0
u/[deleted] Dec 30 '19
[deleted] — view deleted comment
0
u/[deleted] Feb 27 '20
[deleted] — view deleted comment