Train speed calculation
Posted: Sun Mar 22, 2020 2:59 am
I'm playing with mods that change trains, so I was wondering what would be a good locomotive/cargo wagon ratio. The wiki page of Locomotive explains something about maximum speed, but there are some constants involved that I'm not sure about the meaning of.
Why is there a 10 here?:
Is that the vanilla 600kW divided by 60 ticks/s? So for a modded locomotive I would replace the 10 with the modded consumption / 60?
Why is there a 1.2 here?:
Is that the vanilla top speed in m/tick? So for a modded locomotive I would replace the 1.2 with the modded top speed in m/tick?
Why is there a 10 here?:
Code: Select all
train_speed = train_speed + (10 × number_of_locomotives_in_moving_direction × fuel_acceleration_bonus ÷ train_weight)
Why is there a 1.2 here?:
Code: Select all
max_speed = 1.2 * fuel_top_speed_multiplier