MOD Map Scan?

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


  • Hallo zusammen


    Ich habe mir folgende Frage gestellt, Ihr kennt das Ihr zieht euch MOD um MOD um MOD und am Ende braucht Ihr vielleicht 60% der MODs die Ihr auf der Map aktiviert habt (zumindest ist das bei mir wohl so).

    Nun habe ich mir folgende Frage gestellt. Gibt es eine Möglichkeit ein Spielstand zu scannen um zu sehen welche MODs effektiv verwendet wurden auf einer Map?


    Dann sehe ich zum einen welche MODs ich verwendet habe und zum anderen welche in meiner Liste eben nicht, dann könnte ich diese allenfalls aus dem Savegame entfernen.

    Oder fürht dies dann wiederum zu Problemen? Sollte ja eigentlich nicht, da die MODs ja lediglich im Menu vorkommen nicht aber auf der Map?


    Vielen Dank für eire Antworten und Inputs.


    Cheers jaY

  • Hendi

    Hat das Label Feature-/Scriptanfrage hinzugefügt
  • Bauer33333 Nein, die gelben Ausrufezeichen werden vom Modder über die mod.lua Datei geregelt.

    severityRemove = "NONE", (Keine Warnung)
    severityRemove = "WARNING", (Gelber Hinweis mit einem Ausrufezeichen: Das entfernen dieser Mod kann unerwartete Auswirkungen haben)
    severityRemove = "CRITICAL", (Gelber Hinweis mit zwei Ausrufezeichen: Das entfernen dieser Mod wird das Spiel wahrscheinlich zum absturz bringen)

    Wer das ließt kann lesen!

  • Give this a try:

    http://www.douglassdawson.ca/files/dsd_ModEnum_1.zip

    If it works for you as expected, I will upload it for general use.

    Right now, it is only scanning vehicle add-ons, although I could probably add other types of mods as well.

    Edit: There is a file, read_me.txt, in the mod's folder which explains how it works.


    If you have any questions or comments, please let me know.

    Einmal editiert, zuletzt von doug ()

  • Activated it as I loaded up a saved game.

    At around 20%, a CTD greeted me.

    modelList.txt was created and is filled in with 6 lines, as below. It's about the only extra vehicles I do have though.

    Q: /SteamLibrary/steamapps/workshop/content/1066780/1958235092/res/models/model/vehicle/tram/be_5_6_cargo.mdl

    Q: /SteamLibrary/steamapps/workshop/content/1066780/1958235092/res/models/model/vehicle/tram/dampftram_cargo.mdl

    Q: /SteamLibrary/steamapps/workshop/content/1066780/1958235092/res/models/model/vehicle/tram/lvs_86_cargo.mdl

    Q: /SteamLibrary/steamapps/workshop/content/1066780/1958235092/res/models/model/vehicle/tram/pcc_1643_cargo.mdl

    Q: /SteamLibrary/steamapps/workshop/content/1066780/1958235092/res/models/model/vehicle/tram/schst_cargo.mdl


    Here's the stdout excerpt:


    error: error: mods / dsd_ModEnum_1 / res / scripts / vehicle_enumeration.lua: 86: attempt to call global 'modelName' (a nil value)

    stack traceback:

    [C] (- 1): modelName

    mods / dsd_ModEnum_1 / res / scripts / vehicle_enumeration.lua (86): getModFolder

    mods / dsd_ModEnum_1 / res / scripts / vehicle_enumeration.lua (120) :?


    MinidumpCallback: dumpPath "C: / Steam / userdata / 66984343/1066780 / local / crash_dump /", minidumpId "e34a3879-327e-406b-bb83-9abe062fa765", succeeded 1

    local time is Sun Feb 23 18:02:20 2020



    Hope it helps

  • Scope is a terrible concept!

    In the mod.lua file, you will find the a function called modelName.

    It is defined as local. Remove the 'local' reference, so that it is global in scope.

    Alternatively, copy it into the vehicle_enumeration.lua file in the scripts folder.

  • modelList.txt

    modList.txt

    statistics.txt

    unused.txt

    used.txt

    void (empty ie.)


    vehicleList.txt


    Cargotrams is the only vehicle mod I have downloaded and activated.

    [Blockierte Grafik: https://gyazo.com/297dc86e20e9001db8bc05adb8010930.png]

    https://gyazo.com/297dc86e20e9001db8bc05adb8010930


    I'm usure which 2 mods are declared "not used".

  • It doesn't look like you have any vehicles loaded that originate in the CargoTrams mod.

    The other is the blank one that precedes it in the modList. I'll have to look at suppressing that one.

    Based on what I'm seeing here, you should only be showing one mod loaded, with none in use.

    If you put one of the cargo trams into an active route, you should see it show up in the list of used mods.

BlueBrixx