Transport Fever

Transport Fever

Not enough ratings
Locomotive Speed Adjuster
   
Award
Favorite
Favorited
Unfavorite
Vehicle: Locomotive
Misc: Script Mod
File Size
Posted
Updated
306.152 KB
9 Aug, 2018 @ 10:52am
15 Nov, 2019 @ 5:10pm
6 Change Notes ( view )

Subscribe to download
Locomotive Speed Adjuster

Description
Adjust the maximum speed of all Locomotives, either by a fixed percentage or set all to a fixed speed.
Slower locomotives are cheaper to buy, and have lower ticket prices enabling longer routes (especially useful for cargo).

Default settings scale locomotive speed to 50% of their normal value, you can adjust the configuration values in
\Steam\steamapps\workshop\content\446800\1471880075\mod.lua
You can set locomotive speed to either a fixed percentage of their default values, or set all locomotives to a fixed maximum speed, or limit all locomotives to no more than a maximum speed (but not increase speed for slower locomotives).

Tractive Effort can also (optionally) be scaled inversely to speed adjustment: if enabled and the speed is adjusted to slower than default the locomotive will gain a proportionate amount of tractive effort, while faster-than-default speeds result in lower tractive effort.

See also Wagon Speed Adjuster for the equivalent mod for wagons.
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