[MOD] Cost mod (Kosten-Mod)

Willkommen in der Transport Fever Community

Wir begrüßen euch in der Fan-Community zu den Spielen Transport Fever und Train Fever, den Wirtschaftssimulatoren von Urban Games. Die Community steht euch kostenlos zur Verfügung damit ihr euch über das Spiel austauschen und informieren könnt. Wir pflegen hier einen freundlichen und sachlichen Umgang untereinander und unser Team steht euch in allen Fragen gerne beiseite.

 

Die Registrierung und Nutzung ist selbstverständlich kostenlos.

 

Wir wünschen euch viel Spaß und hoffen auf rege Beteiligung.

Das Team der Transport-Fever Community


  • @Alex Paen, is this what you are looking for:


    Configuration
    After installation a new file has been created in the trainfever/res/scripts foldercost_mod_config.lua

    Frag' nicht - Du könntest eine Antwort erhalten.

  • @Alex Paen, is this what you are looking for:


    In the new config file "MaintenanceFactor = 0.0 -- Cost factor for train maintenance" and after install mod in LuaTF.exe modifier "Maintenance" present at all vehicles mdl, not only trains.

  • Win7 64
    No errors, Im remove old cost_mod_config.lua and after insallation of 2.0 new file was created.
    I have cost_mod.zip file and TFMM show 2.0 version after install it.

  • It sounds like the wrong script has been running. If you use TFGM, you don't need the LuaTF.exe anymore. TFGM will run the scripts automatically for you.
    After the mod has been enabled the cost_mod_config.lua should look like this:



    All .mdl files will have a xxxx_Maintenance multiplied with the maintenance cost. xxxx is the name of the group, such as Bus, Train, Tram etc...

    - Check out all mods and tools by Gwinda

    Einmal editiert, zuletzt von Gwinda ()

    Gefällt mir 1
  • Hallo,
    bei der Installation werden nun ja ALLE gefundenen Dateien bearbeitet. Dies ist jedoch nicht immer wünschenswert (z.B. bei Fakes).


    Ich würde mir wünschen, dass man Dateien gezielt von der Bearbeitung ausschliessen kann. Zum Beispiel durch eine entsprechende Kennzeichnung am Anfang der jeweiligen Dateien, wie z.B. "no_costmod" oder auch "no_timelessmod".


    @Gwinda, wäre es möglich, dies zu implementieren?


    Liebe Grüße
    Enno

    Auch ein alter Fuchs schaut gern ein Huhn, selbst wenn er's nicht mehr Reißen kann. ^^

    163393-cpuz-ryzen9-5900-png


  • I don't speak German and Google translate gave me some weird translation. But I think I know what you mean.
    Technically it's not a problem. The hurdle is how this would be configured in a way that is easy for users with no Lua experience. I do have some interesting ideas to implement in TFGM that would make this more easy to configure, but there is no easy solution right now.


    I will keep this in mind on future development.


    Thank you.

    - Check out all mods and tools by Gwinda

  • OK, thank you for the answer. Sorry, but my english is also not the best. :D


    Now i have the following problem. On run the LuaTFx64.exe or the LuaTFx.exe (both in Version 5.2) i become the Error-Message: ERROR #1 You need the latest Train Fever Extended Lua console or the Train Fever Game Manager to run this script. This is on cost_mod also timeless_mod.


    Have you, @Gwinda, a Solution for that?


    Greetings
    Enno :)

    Auch ein alter Fuchs schaut gern ein Huhn, selbst wenn er's nicht mehr Reißen kann. ^^

    163393-cpuz-ryzen9-5900-png

  • Are you sure you have the latest version of LuaTF.exe (or LuaTFx64.exe)
    When you start it, it should display:


    Train Fever Extended Lua Console 6.2 by Gwinda
    Based on Lua 5.2 Lua.org, PUC-Rio
    >

    - Check out all mods and tools by Gwinda

  • This is the Text on LuaTFx64.exe:


    Train Fever Extended Lua 5.2 by Gwinda
    Based on Lua 5.2.2 Lua.org, PUC-Rio
    >


    I downloaded this Version today from Webdisk.

    Auch ein alter Fuchs schaut gern ein Huhn, selbst wenn er's nicht mehr Reißen kann. ^^

    163393-cpuz-ryzen9-5900-png

  • I have double checked the version here on train-fever.net and it displays:


    Train Fever Extended Lua Console 6.2 by Gwinda
    Based on Lua 5.2 Lua.org, PUC-Rio
    >


    Are you 100% sure you are running the right version?

    - Check out all mods and tools by Gwinda

  • Ok, now i find the right Version.....i'm so stupid.... :whistling::saint:


    Very Thanks for your help and time. :thumbup:


    Greetings
    Enno


    PS: I change the code a little bit for my suggestion (No Cost Mod on Fake's etc.)....


    Code
    local function isNoCostMod(script)
        return (string.find(script, "__no_cost_mod__") ~= nil)
    end



    ....and it's running good. :thumbsup:

    Auch ein alter Fuchs schaut gern ein Huhn, selbst wenn er's nicht mehr Reißen kann. ^^

    163393-cpuz-ryzen9-5900-png

    Gefällt mir 1
  • Hi all iam new here i have registration here i have a problem whis the cost mod. Sorry my english is terrible. I have install the new TFMM 0.6.66 the old cost mod are not function with the version. I install then the new cost mod version, Install with lua a no probs but i start a new game now i become this error. Some one can help me?

  • The problem is that the new version, the old unfortunately can not remove it. :thumbdown:


    Here is a modified version of me that can uninstall the old version and incidentally manipulated no fake files. :thumbsup:


    Procedure:

    • Please uninstall the installed cost Mod (with TFMM)
    • Now install the attached cost Mod (with TFMM)
    • Please check the TF-path in the cost_mod.lua
    • Run the Lua Console (LuaTF.exe or LuaTFx64.exe)
    • type require "cost_mod" cost_mod.install ()
    • Have fun :D

    Greetings
    Enno :)


    PS: You need the latest Lua-Console from here.


    PPS: Mein Deutsch ist auch erheblich besser, als mein Englisch. Sorry.

    Dateien

    Auch ein alter Fuchs schaut gern ein Huhn, selbst wenn er's nicht mehr Reißen kann. ^^

    163393-cpuz-ryzen9-5900-png

    Einmal editiert, zuletzt von EAT1963 ()

  • Hallo EAT1963 Fake Files verwende ich gar keine. Ansonsten werden ich das mal durch arbeiten und bescheid geben ob es funzt oder nicht danke für die Antwort.

    Gefällt mir 1
  • So hat alles wunderbar geklappt danke EAT1963 :-)

    Gefällt mir 1
  • Sorry for the inconvenience, I was to fast there. I have updated to v2.10 and it now takes care of the earlier installation.

    - Check out all mods and tools by Gwinda

    Gefällt mir 1
  • Thank you Gwinda

  • Doesn't work for me :( I downloaded the new TFGM and Cost mod, but when activated (in a normal or legacy mode), there is no possibility to "edit config" when right-clicking as it was possible before.