Transport Fever 2

Transport Fever 2

Not enough ratings
h4e Train Power x4
   
Award
Favorite
Favorited
Unfavorite
Misc: Script Mod
File Size
Posted
420.147 KB
22 Dec, 2019 @ 4:55am
1 Change Note ( view )

Subscribe to download
h4e Train Power x4

Description
Quadrupled the power of all trains.
14 Comments
homieforever  [author] 18 Jul, 2020 @ 1:17am 
This Mod Font get More Updates. In Future you can find this in the h4e Game Console
Blade_Seduction 14 Jul, 2020 @ 3:41am 
Hello! do you still have plans to update this mod so the power increase does not increase the running costs??
matt92tau 22 Dec, 2019 @ 10:46am 
Can you do like a 1/2 and 1/4 of running and buy cost? Because this model is increasing it a lot
homieforever  [author] 22 Dec, 2019 @ 8:37am 
also you dont check exists data.metadata.railVehicle.engines[1] or not
homieforever  [author] 22 Dec, 2019 @ 8:35am 
@coth

The only difference I can see is that you write the function above outside of the run function. I cannot say whether the addModifier function also accesses the function above to this extent.

I wrote it like this:

runFn = function ()
addModifier("loadModel", function (fileName, modelData)
...my_code....
end)
end
coth 22 Dec, 2019 @ 8:28am 
bbcode doesn't work, great, neither there is edit capability.
coth 22 Dec, 2019 @ 8:27am 
I wonder how does it work?

I've been trying this. topSpeed was working, but engines[1].tractionEffort and engines[1].power didn't have any effect. Your seem to be same and makes an effect.

[code]

local function modRailVehicle(fileName, data)

if data.metadata then
if data.metadata.railVehicle then
data.metadata.railVehicle.topSpeed = data.metadata.railVehicle.topSpeed * 2
if data.metadata.railVehicle.engines then
data.metadata.railVehicle.engines[1].power = data.metadata.railVehicle.engines[1].power * 4
end
end
end

return data
end



runFn = function (settings)
addModifier("loadModel", modRailVehicle)
end

[/code]





homieforever  [author] 22 Dec, 2019 @ 8:19am 
h4e Train tractive power x2 und x4 in Arbeit.
White_Eagle 22 Dec, 2019 @ 8:03am 
Bitte auch mit "h4e Train Power x2" für die Zugkraft, nicht nur für die Leistung, das bringt sonst leider wenig. :)
Und danke für deine Mod's.