Transport Fever 2

Transport Fever 2

h4e Train Power x4
14 kommentarer
homieforever  [ophavsmand] 18. juli 2020 kl. 1:17 
This Mod Font get More Updates. In Future you can find this in the h4e Game Console
Blade_Seduction 14. juli 2020 kl. 3:41 
Hello! do you still have plans to update this mod so the power increase does not increase the running costs??
matt92tau 22. dec. 2019 kl. 10:46 
Can you do like a 1/2 and 1/4 of running and buy cost? Because this model is increasing it a lot
homieforever  [ophavsmand] 22. dec. 2019 kl. 8:37 
also you dont check exists data.metadata.railVehicle.engines[1] or not
homieforever  [ophavsmand] 22. dec. 2019 kl. 8:35 
@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 kl. 8:28 
bbcode doesn't work, great, neither there is edit capability.
coth 22. dec. 2019 kl. 8:27 
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  [ophavsmand] 22. dec. 2019 kl. 8:19 
h4e Train tractive power x2 und x4 in Arbeit.
White_Eagle 22. dec. 2019 kl. 8:03 
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 kl. 7:09 
Hab mal reingesehen - nur power x4
Evtl auch den tractiveEffort auf x2 erhöhen wäre m.E. gut
hannebambel002 22. dec. 2019 kl. 7:02 
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  [ophavsmand] 22. dec. 2019 kl. 6:20 
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 kl. 6:14 
Oh, ja Danke das lässt die Züge flotter in die gänge kommen danke dafür.