Transport Fever

Transport Fever

82 ratings
Speed Restricted Tracks
   
Award
Favorite
Favorited
Unfavorite
Track/Street: Track
Misc: Script Mod
File Size
Posted
Updated
1.330 MB
14 Jun, 2017 @ 1:19pm
23 Jun, 2017 @ 3:44pm
2 Change Notes ( view )

Subscribe to download
Speed Restricted Tracks

Description
This mod adds new speed restricted rails. Station tracks got limited to 30km/h (standard) or 50km/h (highspeed)
40 Comments
_JoyBlock 14 hours ago 
It's now broken :(
Yamamba 12 Oct, 2020 @ 7:59am 
Whenever I want to make a limited station train, it slows down at a station, which is really annoying, and also there was a bridge mod (which is a train depot) and it slowed down the train exponentially on the bridge, sorry, but this mod is a no go for me. It is very nice though!
CPL Gotno Friends 17 Nov, 2019 @ 7:49pm 
My Example:
I have changed my station speeds to 160 & 450.

runFn = function(settings)
addModifier("loadTrack", function (fileName, data)
if fileName == "res/config/track/standard.lua" then
data.yearTo = 1849
data.speedLimit = 160 / 3.6 <----(Changed from 30 to 160)
end
if fileName == "res/config/track/high_speed.lua" then
data.yearTo = 1849
data.speedLimit = 450 / 3.6 <----(Changed from 50 to 450)
end
return data
end)

IMPORTANT THINGS TO REMEMBER!!!
1. When you are placing or editing a station in order to use you're new station track speed. You need to select the track type "20" or "30". All other track types give you a speed of only 30 or 50 (idk y this happens).

2. All speed values are in km/h. So if using mph, I suggest converting you're mph value into km/h using google or etc. (taking nearest whole number or to the 1st decimal point).

I hope this helps people.
& happy Fevering.

PS Can't wait for Transport Fever 2
CPL Gotno Friends 17 Nov, 2019 @ 7:38pm 
@sukur. You can change the speed limit for station tracks by going to.

Folder path: \Steam\steamapps\workshop\content\446800\946897147
or
Locate Folder: 946897147

Folder should contain another folder called "res" & 2 LUA files named "mod" & "strings". Click on the "mod" LUA file. (Open with notepad or etc)
In LUA file go to section that looks like this:

runFn = function(settings)
addModifier("loadTrack", function (fileName, data)
if fileName == "res/config/track/standard.lua" then
data.yearTo = 1849
data.speedLimit = 30 / 3.6 <--(Change "30" to what you want)
end
if fileName == "res/config/track/high_speed.lua" then
data.yearTo = 1849
data.speedLimit = 50 / 3.6 <--(Change"50" to what you want)
end
return data
end)

The 2 values you want to change are shown above (or located on the LUA file at lines 59 and 63. Both in column 6).

Once done save the "mod" LUA file.
Open TF, this change shouldn't conflict with existing save games.

Sukurn't ♛ 10 Apr, 2019 @ 10:43am 
Is there any way to change the speed limit on the station tracks ? Because the default speed limit is 20 km/h and if I have an express train that doesn't stop on that station automatically decreases the speed to 20 km/h and this is literally "a pain in the ass" in my gameplay xD
Vanta 28 Feb, 2019 @ 12:04pm 
Bei Savegames kann die Geschwindigkeit zwar auf bereits erstellten Gleisen geändert werden, jedoch wird jeweils der anschliessende Gleisabschnitt immer auf 30 km/h geändert. Sehr schade... oder mach ich was falsch?
Fado 1 Feb, 2019 @ 2:58am 
good idea...but waaaaaaaaaayyyy too expensive to build tracks...cant use it unless i use a no cost mod.
WalkingWater21 12 Jan, 2019 @ 6:59am 
Durchgangsgleise sind auf max 50km/h wenn man sie auf Hochgeschwindigkeit stellt wäre SEHR Dankbar für einen Fix. Ist nur bei den gemoddeten.
info 31 Aug, 2018 @ 5:46am 
Heute mod installiert, aber bei gebrauch trainstation button das spiel crasht?
Grumar 27 Aug, 2018 @ 2:44am 
Is there a way to deactivate the mod without having the game crash? right now building track with the mod is just to expensive for me