Transport Fever

Transport Fever

Speed Restricted Tracks
40 Comments
_JoyBlock 22 Jul @ 3:29am 
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
SimiSte 31 Mar, 2018 @ 5:35pm 
kannst du eine version ohne die bahnhofsbeschränkung machen? die ist in meinen augen wenig realistisch (ausser bei einem kopfbahnhof) und nehmen völlig den nutzen von durchgangsgleisen!
Otto_von_Randenburg 24 Mar, 2018 @ 2:31pm 
made my game crash every time I tried to press the trainstation button. Removed the tracks and all i ok.
Ghost265 1 Nov, 2017 @ 10:10am 
Ich muss sagen, geile mod aber mega teuer. für 120kmh auf ca 100 metern soll es 54M kosten? etwas mega krass oder?
Mr Nederlandse Spoorwegen 31 Oct, 2017 @ 3:09am 
guten morgen elitelex ich habe grade diesen mod (links im bild zu sehen) in nutzung, er verträgt sich aber leider nicht mit allen bahnhöfen. :( melde dich mal bitte.
Danielczech 11 Oct, 2017 @ 8:03am 
zdarec, ... Dali by se vylepšit podobně jako silnice? Když chci po koleji začít jezdit jiným vlakem ??? Třeba z rychlejší na pomalejší....?
ucryxx 28 Aug, 2017 @ 12:05am 
Ich mach immer zwei linien pro strecke. Eine Regionallinie die an jedem bahnhof hält und eine expresslinie die nur an groeßeren bahnhofen hält. etwas unprakrisch wenn die dann nur mit 50 durchfahren koennen. guter mod aber bitte die bahnhoefe default lassen
Habicht!!™ 30 Jul, 2017 @ 5:21am 
@EliteLex von der Idee eine echt gute Mod, nur wenn jeder Güterzug (bei Schönbau 720m) durch jeden Bahnhof mit 30 km/h fährt, staut sich alles. Wie kann man das beheben?
Habicht!!™ 27 Jul, 2017 @ 10:33am 
Nh super Mod, kann man die Geschwindigkeitsbegrenzung für Bahnhöfe aufheben?
EliteLex  [author] 30 Jun, 2017 @ 11:09am 
@ViP3R: Welche Version spielst du? normal oder experimentell? und standard Bahnhöfe oder gemoddete? Bei den moddet hab ich schon gemerkt, dass viele auf den Toms Builder gehen.. da muß ich mal gucken, wenn ich etwas Zeit habe, was sich da machen läßt.
CUADRADITOS 28 Jun, 2017 @ 11:36am 
It's a good mod but the price of tracks is absolutely overpriced for the benefits on the game. It's difficult to construct a better railway. The trains are cheaper than tracks? XD. Please fix the prices of that mod to do more playable. Thanks
Gdsm. R. Grimes [6th GA] 24 Jun, 2017 @ 8:25am 
Actually just fixed the bug by adding this code - not sure if it's the right thing to do:

if (params.numTracksIndex == nil) then
params.numTracksIndex = 0
end

if (params.sizeIndex == nil) then
params.sizeIndex = 0
end
Gdsm. R. Grimes [6th GA] 24 Jun, 2017 @ 8:15am 
Hi - Since the upgrade on 23/06/17 I get this error message:
error/..team/steamapps/workshop/content/446800/946897147/mod.lua:18:attempt to perform arithmetic on field 'numTracksIndex' (a nil value)
Can you please advise? Thanks!
Enzojz 23 Jun, 2017 @ 4:31pm 
@EliteLex No with test version my upgrade doesn't work.

Please pay attention not all station mods are upgradable due to some of terrain calculate bug from the game(for example my latest open cut station can't be correctly modified), so putting all speed values to replace original paramsutils is perhaps not a good choice. (better ask UG to enlarge the construction menu before doing this)
EliteLex  [author] 23 Jun, 2017 @ 3:59pm 
UG fixed the tracks in the latest experimental build (gameplay update). Upgrading rails works there now.
Released a minor update. You can now set the speed limit in train stations yourself. One flaw here.. if you initially place the trainstation UG uses a different settings window.. you only see the middle choices .. but in the trainstation update menu it's fine.
Enzojz 23 Jun, 2017 @ 8:11am 
When this mod is installed, the track upgrade tool will be no more available.
tonda 22 Jun, 2017 @ 6:33am 
Now impossible to use...In conclusion to profits really isn't possible to build 380/h stretch of track costing 10B
Python 21 Jun, 2017 @ 3:56am 
@canophone so in short. i have to relay all my tracks. i will activate the mod when i am finished with the map. thanks for the help (:
Liquidfire 21 Jun, 2017 @ 3:42am 
Hello, I have an issue with the pricing of the rail stretches, it gets insanly expensive upward from 30 kmph, like millions for a short line. Is that intentional, cause I can't see how you could afford it, even late game one strech of 380 kmph will cost 5B+ which is a collosal amount against what you earn. Thanks in advance.
EliteLex  [author] 20 Jun, 2017 @ 3:03pm 
@soldier312: kommt auf den Mod an und wie das Scripting realisiert wurde. Ich hab diese Mod extra per hook realisiert (ich ändere also nur spezifische Einstellungen, statt sie komplett zu ersetzen). Daher sollte mein Mod möglichst nach den anderen Mods installiert werden und alles müsste problemlos funktionieren. Schick mir sonst einfach mal die ID des Mods und ich schau es mir mal an
EliteLex  [author] 20 Jun, 2017 @ 2:58pm 
@TastyFlavour: I love my buffers and I liked the idea of trackrules plus. But I wasn't happy with the scripting of the mod. Technically spoken, Trackrules Plus overwrites the existing standard rails and creates their own, while I hook into the existing and do only some adjustments (thus it should survive an update easier). Furthermore the tracks are inherited from the standard rails, while Trackrules Plus creates just new ones.
Blauer_adler 17 Jun, 2017 @ 3:46am 
Sehr Großes Lob. Mit diesen Speed Mod kann man auch die Mods
( Größere Bahnhöfe https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=853048846&searchtext= ) und ( Gebogene Bahnhöfe Vier verschiedene Radien https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=854664535&searchtext= von Transport Fever Entwicklerteam ) Zusammen nutzen! Alles Getestet
canophone 16 Jun, 2017 @ 5:55pm 
@Python, from my previous experiments, speed limits are set when the tracks are first drawn, maintained even if you load a savegame. Only future tracks drawn can have different speed limits.
Python 16 Jun, 2017 @ 12:39am 
hello i would like to report a bug.
i have installed you mod, wich very much like and another mod called
(Ares28 Train Speed Mod) https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=866135615

then i loaded an existing save, and when i removed a piece of track, the segments before and after are stuck at 30km/u. when i removed that, the 30km/u segemts just jumps to next segments and so on. maybe i needed to make a new save, but i dindt want to.

also make these tracks much cheaper. for early game its just way overpriced.
Vanta 15 Jun, 2017 @ 1:21pm 
Kann diese Mod in Savegames angewendet werden? Gibt es da kein Durcheinander/Abstürze?
ViP3R 15 Jun, 2017 @ 8:58am 
Super Mod,vielen herzlichen Dank
[DFC] Titelloser 15 Jun, 2017 @ 7:45am 
Davon gibt es doch schon 2. Warum jetzt ne dritte?
soldier312 15 Jun, 2017 @ 1:33am 
Eine kleine Frage: Bleibt die deutsche Oberleitung, falls man den Mod dazu hat?

Ansonsten großes Lob! Gefällt mir besser, als die bisherige Mod dazu!
TastyFlavour 15 Jun, 2017 @ 12:52am 
Trackrules Plus Edition works fine for me, what's the difference?
mikeking3280 14 Jun, 2017 @ 5:56pm 
You can make 200 or 250 speed tracks.
Jannis1999original 14 Jun, 2017 @ 4:20pm 
So eine ähnliche Mod hab ich schon lange, nur das diese besser ist die ich habe.