Rivens Realistic Train Acceleration (based on cargo)


This mod makes train acceleration more realistic and depend on the amount of Cargo. (youtube demo included)

Tweaks
10 months ago
1.1
3.24K
Trains

g [solved] About the "Not being able to get locomotive power" thing...

1 year, 25 days ago

It appears you can get a number that's at least related to it.

https://lua-api.factorio.com/latest/classes/LuaEntityPrototype.html#max_energy_usage

This thing definitely scales with the max_power entry in locomotive prototypes, but I haven't done any other testing to see what all affects it.

1 year, 25 days ago

Interesting, thanks for looking into it. Will have a look how it is affected by mods, when I have time.

1 year, 23 days ago
(updated 1 year, 23 days ago)

Nice, it turned out to scale almost linearly with the hardcoded values I made up.
Had to tweak the linear relation to make powerful engines stand out more.

powerFactor = max_energy_usage / 10K -- 10K means 600kW
if isShip(....) then powerFactor /= 3.33
powerFactor = math.pow(powerFactor, 1.25)

1 year, 22 days ago

Excellent

New response