Transport Fever 2

Transport Fever 2

Otillräckligt med betyg
h4e Train Power x4
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Misc: Script Mod
Filstorlek
Lades upp
420.147 KB
22 dec, 2019 @ 4:55
1 ändringsnotis ( visa )

Abonnera för att ladda ner
h4e Train Power x4

Beskrivning
Quadrupled the power of all trains.
14 kommentarer
homieforever  [skapare] 18 jul, 2020 @ 1:17 
This Mod Font get More Updates. In Future you can find this in the h4e Game Console
Blade_Seduction 14 jul, 2020 @ 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 @ 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  [skapare] 22 dec, 2019 @ 8:37 
also you dont check exists data.metadata.railVehicle.engines[1] or not
homieforever  [skapare] 22 dec, 2019 @ 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 @ 8:28 
bbcode doesn't work, great, neither there is edit capability.
coth 22 dec, 2019 @ 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  [skapare] 22 dec, 2019 @ 8:19 
h4e Train tractive power x2 und x4 in Arbeit.
White_Eagle 22 dec, 2019 @ 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.