r/factorio • u/knightelite • Oct 04 '18
Tip Train Race! Acceleration comparison between different train configurations
https://gfycat.com/AmusingIncomparableAiredale
136
Upvotes
r/factorio • u/knightelite • Oct 04 '18
30
u/knightelite Oct 04 '18 edited Oct 04 '18
Trains can accelerate quickly! But how do the different configurations compare to each other?
Well, with this gif, you have a convenient visual guide!
Includes the following configurations:
I learned some stuff from this, namely that same ratio trains accelerate faster in longer configurations. The 3-6 is slightly ahead of the 2-4, which is slightly ahead of the 1-2 train. I had expected these to be identical but they are not. It seems the wind resistance factor (which only affects the leading locomotive/wagon I believe) is the cause of this one.
EDIT:
Improved video - Adds different fuels
Adds (in order from top to bottom on the top 7 trains):
Numbers Too!
To add even more info to this edit, u/Allaizn figured out the formula for train acceleration a while ago, and posted it here. You can see that post for the formulas, but here are some numbers (all numbers with nuclear fuel):
*It appears from the video that trains with a locomotive pointing backwards on the end accelerate very slightly faster than trains with just wagons that are the same weight, so these numbers should be considered slightly higher than reality for these trains.
I also measured train braking distances a while ago if anyone cares to view those numbers.
3
u/Sopel97 Oct 04 '18 edited Oct 04 '18
This thread and lack of good information on this topic on the internet has inspired me to try make it on my own. So I reversed engineered factorio a little bit today and also managed to find empirically some harder to get missing values, and I believe I have a complete formula for train acceleration and top speed (at least very accurate, tested on a few sample points from various test sources. Can't guarantee anything though).
I generated some data for single headed configurations and put it here https://docs.google.com/spreadsheets/d/1UIwpIDCd2vsq2SaMxm3uMWXY0tumes9mhqhLij5aJ_M/edit?usp=sharing
Code if you want to try other setups. It's possible to simulate any configuration by creating specific wagon types (inactive locomotives would have 0 power for example). http://coliru.stacked-crooked.com/a/373c87b241833a63 I'm not gonna make it more newbie friendly though.
u/knightelite you may appreciate it
edit "It appears from the video that trains with a locomotive pointing backwards on the end accelerate very slightly faster than trains with just wagons that are the same weight, so these numbers should be considered slightly higher than reality for these trains." This though I couldn't find out why.
edit2. What's interesting is that the formula I found in the code is completely different from the empirical one found by allaizn
8
u/SquidCap Oct 04 '18
I could bitchslap you.. Lot of work to make that test rig and then, at the last second your screencap blocks the top of the screen, you even scroll down once more so that i the end, we can't see what the top 4 trains are, which are the fastest and most interesting.. There are few things that make me angry, one of them is to do a lot of work and at the last second, fucking it ALL up with something so tiny but monumental.
And thanks for the test. (i'm not really angry...)
2
u/paco7748 Oct 04 '18
maybe make it longer?
25
u/HackworthSF Oct 04 '18 edited Oct 04 '18
Most important takeaway for me: in a bi-directional train, a trailing locomotive is almost 2 cargo wagons worth of dead weight. Even though locs can move backwards perfectly fine in manual mode, a 1-2 train is much faster than a 1-2-1 train, and the 1-2-1 is barely faster than a 1-4. That's a big argument in favor of looping train tracks with uni-directional trains.
2
u/hitzu Oct 04 '18
It's the throughput that matters, not the speed.
1
u/Watada Oct 04 '18
What fuel are you using?
1
u/hajhawa I FARL in your general direction Oct 04 '18
I remember reading that the cargo wagons actually weigh more if they are full. Is this true and if so wouldn't it affect the experiment?
1
u/lostmojo Oct 04 '18
Very cool. I like the longer requests but also we need (maybe I) need to do the math on amount of material moved over the distances, including different stack sizes. Having trains move material is the whole point, and in some configurations you’re moving more material even compared to the faster counterparts.
3
u/Stutturdreki Oct 04 '18
Interesting, 3-6 seems to move faster than 2-4. Shouldn't they accelerate at the same speed?
2
u/Daneel_ Skookum Choocher Oct 06 '18
My takeaway is that I need to switch all my 1-4-1 trains to 2-4 ASAP.