Transport Fever

Transport Fever

Locomotive Speed Adjuster
44 Comments
Edinorog 3 May, 2023 @ 4:47am 
безполезный мод, цыфры показывает выше стандартных, но это только цифры. а когда поезд начинает движение и едет на ровном отрезке пути, скорость стандартная.

Useless mod, the figures show higher than the standard, but they are only figures. and when the train starts to move and goes on a flat section of track, the speed of the standard.
tomdesch 16 Nov, 2019 @ 4:06am 
@softwareSimian. Here the mod is also working again. Thx for the update
Wilhelm924 15 Nov, 2019 @ 6:24pm 
No problem

I'm just glad everything works fine.
SoftwareSimian  [author] 15 Nov, 2019 @ 6:17pm 
Glad to hear it's working now. Thanks for your debugging help.
Wilhelm924 15 Nov, 2019 @ 5:51pm 
@SoftwareSimian

Tested it and worked fine.
From what you're saying this mod(my guess the locomotive-variant) was giving me problems;

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=809376482
SoftwareSimian  [author] 15 Nov, 2019 @ 5:13pm 
v1.1.2 - 2019-11-15
* hotfix some possible crashes for some fake rail vehicles that have null engines entry
SoftwareSimian  [author] 15 Nov, 2019 @ 5:12pm 
@Sterben: it looks like you're using some kind of mod (perhaps a locomotive-as-asset of some kind) that has locomotive entries that have an engine, but with null data in the entry. Can you please let me know which mod(s) gives these files so I can examine them?
res/models/model/vehicle/train/twindexx_w1.mdl
res/models/model/vehicle/waggon/Fake_verbandswagen_v2.mdl

I've pushed a best-guess hotfix that may solve the problem, but I can't test the fix without having something that causes it to break.
Wilhelm924 15 Nov, 2019 @ 9:07am 
@SoftwareSimian;
This is literally what shows up everytime I start a game with this mod ON;

File: res/models/model/vehicle/train/twindexx_w1.mdl
error: ...ary/steamapps/workshop/content/446800/1471880075/mod.lua:27 : attempt to index field '?' (a nil value) stack traceback:
[C](-1):_index
...ary/steamapps/workshop/content/446800/1471880075/mod.lua(27) : vres/scripts/mod.lua(69): ?
This error is usually caused by modding. The syntax of some game resources is not correct.

And this is what shows up at the end of stdout.txt;

(x86)/SteamLibrary/steamapps/workshop/content/446800/809376482/res/models/model/vehicle/waggon/Fake_verbandswagen_v2.mdl
error: error: ...ary/steamapps/workshop/content/446800/1471880075/mod.lua:27 : attempt to index field '?' (a nil value)
stack traceback:
[C](-1): __index
...ary/steamapps/workshop/content/446800/1471880075/mod.lua(27) : v
res/scripts/mod.lua(69): ?
tomdesch 15 Nov, 2019 @ 8:50am 
error: error: ...emo/steamapps/workshop/content/446800/1471880075/mod.lua:27 : attempt to index field '?' (a nil value)
stack traceback:
[C](-1): __index
...emo/steamapps/workshop/content/446800/1471880075/mod.lua(27) : v
res/scripts/mod.lua(69): ?
SoftwareSimian  [author] 14 Nov, 2019 @ 4:15pm 
@Sterben: again, can you please be more specific? Do you get an error message? Please copy-paste the crash reason given at the end of
\Steam\userdata\<steamid>\446800\local\crash_dump\stdout.txt
Wilhelm924 14 Nov, 2019 @ 2:42pm 
Looks like the mod in combo with the wagon version is not doing well.
SoftwareSimian  [author] 14 Nov, 2019 @ 1:02pm 
@tomdesch: It's possible I missed something, please post the crash reason, either from the popup crash report or copy-paste the last few lines from
\Steam\userdata\<steamid>\446800\local\crash_dump\stdout.txt
tomdesch 14 Nov, 2019 @ 11:07am 
Fun mod, but since the update my game keeps crashing. Is there any way to go to the old mod?
SoftwareSimian  [author] 14 Nov, 2019 @ 8:42am 
v1.1.0 - 2019-11-14
* add ScaleLocoPower option to scale Tractive Effort inversely to the change in maximum speed
v1.1.1 - 2019-11-14
* hotfix some possible crashes for certain rail vehicle types
SoftwareSimian  [author] 14 Nov, 2019 @ 8:29am 
@MinenSuchSchnuller: Not a bad idea. I have added a new ScaleLocoPower option that scales Tractive Effort inversely to speed (slower = more tractive, faster = less tractive).
BioDiesel112™ 14 Nov, 2019 @ 5:24am 
Think Slower Locomotives needs more kN looks like a simulated lower gearbox translation :)
Omron360 4 Aug, 2019 @ 12:16pm 
@SoftwareSimian Thanks for the response. :steamhappy:
SoftwareSimian  [author] 3 Aug, 2019 @ 2:18pm 
@Old Soldier: There is no differentiation between locos that pull cargo vs locos that pull passengers so it's not possible to filter them differently. However, the speed/cost of a train is based on its slowest component, so if you limit the speed of your freight wagons (using the Wagon Speed Adjusted linked above) and leave your passenger cars unlimited then you will achieve your goal.

@Omron360: yes, the screenshot does illustrate an SD40-2 set to an explicit speed of 567km/h
Omron360 3 Aug, 2019 @ 10:33am 
Hm, is it correct that on the right side the SD40-2 has a top speed of 567 km/h?
Old Soldier 2 Jul, 2019 @ 12:33am 
Can this be applied to individual locos, or must it limit all locos across the board? I'd like to slow down my freight trains but leave my high speed passenger rail unaffected. Possible with this mod?
Nice work in any case. Well done. I never could figure out why my cargo was always giving me such trouble.
zkbu 10 Jun, 2019 @ 11:42am 
Nevermind:steamfacepalm:
zkbu 10 Jun, 2019 @ 11:36am 
Not even hidden
zkbu 10 Jun, 2019 @ 11:29am 
But there is no such file on windows 8.1:steamsad:
flegare01 28 Dec, 2018 @ 10:54am 
@SoftwareSimian Nevermind I got it figured out. Thanks anyway for the help, I know I wasn't very clear. Love the mod, cheers!
SoftwareSimian  [author] 28 Dec, 2018 @ 10:53am 
@flegare01: just open mod.lua with your favorite text editor, like Notepad.
flegare01 28 Dec, 2018 @ 10:47am 
@SoftwareSimian It's the part where I have to change the values that confuses me. How do I even open the mod? I opened it as text using a browser, explorer I think, but I couldn't change any values.
SoftwareSimian  [author] 28 Dec, 2018 @ 8:38am 
@flegare01: There are three settings at the top of the file and I thought they were reasonably well-documented (and too long to copy-paste here). I'm not sure what's not clear?

The default setting scales all locomotives to 50% of their stock speed. You can adjust RelativeMaxSpeed to a different percentage.
OR, you can set AbsoluteSpeed to make ALL locomotives have the same max speed, no matter what their default speed.
OR, you can set AbsoluteMaxSpeed as an upper speed limit: faster locomotives will be limited, slower ones will not be increased.

What are you trying to do?
flegare01 28 Dec, 2018 @ 3:53am 
So I'm a total noob and I actually don't know how to adjust the settings, I started working on a new free game and I'm slightly annoyed that all the trains go half speed. How do I adjust that? I found the lua script quite easily but I don't know what to do with it.
janisjan85 13 Oct, 2018 @ 6:27am 
Nevermind. It working :) It's just took a few moment before I recognized that the speed changed.
janisjan85 13 Oct, 2018 @ 6:16am 
Do you have tested the mod recently? When I tested this mod for a couple of months ago, it's worked perfect. But I just tried it again now, and I don't see any effect to the trainspeed in-game now :(
I found that I need to decrease the speed of the cargo-trains in the Fraser-Thompson-map to do it possible to transport oil and fuel.
lematch 1 Oct, 2018 @ 9:18pm 
how can i make the trains faster?


(sorry I couldn't resist lol; nice mod!)
SoftwareSimian  [author] 26 Aug, 2018 @ 12:31am 
@b18j04: did you not read my reply?
b18j04 25 Aug, 2018 @ 11:49pm 
@Softwaresimian where i can make the trains faster?
SoftwareSimian  [author] 25 Aug, 2018 @ 11:58am 
@b18j04: If for some reason you want trains to go faster (not the intent of the mod, but it should work), you can set the scaling to something greater than 1.0 if you want them to all be scaled up proportionately, or you could in theory set a fixed top speed that would apply universally to all locomotives. Prices will increase accordingly, of course.
b18j04 25 Aug, 2018 @ 9:27am 
how i can make the trains faster?
dennis 10 Aug, 2018 @ 11:45am 
Ok. Looks like a compelling theory. Good resources are welcome!

Nice Map, BTW :)
Autocoach 10 Aug, 2018 @ 11:44am 
@SoftwareSimian is correct with the maximum price save for "(for trains this is determined by the locomotive)" which should be replaced by (for trains this is determined by the slowest max speed of a vehicle in the consist) I believe.


Therefore it might be an idea (just thinking) for getting a modded brake van or caboose that you could place in the consist to limit speed of the train but this is an aside.

SoftwareSimian  [author] 10 Aug, 2018 @ 8:04am 
Assuming the below is accurate, then fast trains actually work against you; slower trains will have a larger range. And frequency is not important either (for cargo anyways). For example, in testing my Fraser-Thompson Canyon map (which has industries spaced far apart) I set up a cargo train in 1850 with a locomotive going 40km/h and a frequency of 53 minutes, and it worked fine.
SoftwareSimian  [author] 10 Aug, 2018 @ 8:01am 
Others on the forum may know better than I, but as I understand it for cargo (not sure if it applies to "cheap" passengers) the cargo has a money budget to get to its destination (which increases over the years as transport becomes more expensive in modern times). The cost of the journey is calculated as the straight-line distance between origin and destination, multiplied by the cost-per-km for the line (visible under the Vehicles tab on the line info window). Cost-per-km is dependent on the speed of the vehicle (for trains this is determined by the locomotive). I don't think anything other than speed affects cost-per-km.

The above is my understanding, if someone can point to some definitive information that either confirms or contradicts the above I'd be interested.
dennis 10 Aug, 2018 @ 3:20am 
What is the limiting factors for long-range transport? I ram into constraints, but i always assume it is the"as the crow flys" distance betwenn producer'/consumer. Fast trains and decnd frequncy/Cargo wait time are the key here, i thought anyway...
SoftwareSimian  [author] 9 Aug, 2018 @ 4:40pm 
I created the mod, for my own purposes, with the intention of limiting locomotives to lower speeds, not increasing the speed. You can, of course, configure the mod however you like.
Tordenskjold 9 Aug, 2018 @ 3:18pm 
Higher speed is useless without more HP/Kw
SoftwareSimian  [author] 9 Aug, 2018 @ 1:35pm 
It will affect all locos, vanilla or mods.
Grauer Wolf 9 Aug, 2018 @ 1:11pm 
Only for vanilla locs?