Transport Fever 2

Transport Fever 2

h4e Train Power x4
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.
hannebambel002 22 Dec, 2019 @ 7:09am 
Hab mal reingesehen - nur power x4
Evtl auch den tractiveEffort auf x2 erhöhen wäre m.E. gut
hannebambel002 22 Dec, 2019 @ 7:02am 
Gute Idee mit dem Mod. Aber gilt das nur für die kW-Zahl "power" oder auch die Anzugskraft "tractiveEffort". Mehr kW alleine sind nicht optimal, da es nicht schneller beschleunigt^^
homieforever  [author] 22 Dec, 2019 @ 6:20am 
Genau so ist es :) Was bringt max Speed denn sonst auch wenn der Zug es den Berg nicht hoch schafft ;D ?
weixler.klaus 22 Dec, 2019 @ 6:14am 
Oh, ja Danke das lässt die Züge flotter in die gänge kommen danke dafür.