CTD Station on screen, TransportFever 2 Update

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


  • Today I entered the beta test area again and got version 29596, but after some testing I got a new CTD. That is why I returned to Steam setting to reset the game in no beta test.

    I'm not getting the previous official version. I have also validated the files in the game directory. Is the last "beta" version also the official version... ?


    Here is the CTD info:

  • That's the unknown classic one.

    That could be everything.


    Did you see any hints in the lines above? Because they said something of error message improvements.

  • In my investigation I have found that this CTD occur when I get a railway station viewed on the screen (just a small piece is needed). I'm sure that it has nothing to do with the mod it self as there has been no mod updates lately, but UG has made game updates...


    Sadly I can't get back to the previous game version. Beta and official version (29596) seems to be the same for the moment. Can anyone confirm this?


    Interesting details:

    • I can select the config mode on an different station, then move the map so I can see the railway station which isn't possible in normal view.
    • I can build the same station on a different place and it works.
  • Seems like the station is corrupted. I would suggest to bulldoze it, but that's hard without seeing it... Only possible with scripting


    You can switch to older game versions: https://www.transportfever2.co…php?id=gamemanual:updates

  • You can switch to older game versions: https://www.transportfever2.co…php?id=gamemanual:updates

    This was perfekt! Thank you VacuumTube.


    I have restored the game into version 29485 (3 July) :)


    From this point

    • I can delete the station and update the game to see how it will behave when building the same in the latest beta.
    • or just play and hope a future beta will fix the issue. I have e-mailed a detailed information to UG.


    Edit:

    Deleting the station creates a new crash :(

    • Restored the game to 29433, still crashing...

    Only one option left is to delete the station by scripting...

    Dateien

    • stdout.txt

      (253,09 kB, 388 Mal heruntergeladen, zuletzt: )

    Einmal editiert, zuletzt von melectro ()

  • I thought I could make this script from my TpF1 experience, but no.... There are some other code names in use as I can't write the proper code. Please is there anyone that can help me creating a script that can search in the list of stations to find the station name "Lower Cary" and make a delete?

  • You get the station IDs with game.interface.getStations()

    Then you can search for the right one with game.interface.getEntity(id)

    And bulldoze it with game.interface.bulldoze(id) - this is only available in script thread so you need commonapi console

  • Thank's for the support.


    I have used this small code (inside the spoiler) to find the id number, but I think the id is not right as bulldozing is givning me an error:


    >> game.interface.bulldoze(255363)

    error: [string "game.interface.bulldoze(255363)"]:1: attempt to call field 'bulldoze' (a nil value)

    stack traceback:

    =[C](-1): bulldoze

    game.interface.bulldoze(255363)(1): ?




    DEBUG PRINT: 46 Found name= Lower Cary id = 255363

  • game.interface.bulldoze(id) - this is only available in script thread so you need commonapi console

  • Do you mean the using the mod that Eis_os has written?


    EDIT: I dont understand what is commanapi consol I have already tested the console by pressing "§" under ESC

    2 Mal editiert, zuletzt von melectro ()

  • Back to basic.

    I'm testing the script on a working savegame where I have built one station.

    By opening the debug console I can see the Entity number for the station and it is confusing me a lot, as the Entity number is changing upon the part I'm clicking on. One of these numbers are equal to the "id" number written in the DEBUG print. The rest are numbers close to the Debug id (about 20).


    Please give me a hint on how to proceed.

  • the mod that Eis_os has written?

    Yes the commonAPI2 has a console for different threads.


    There are other ids for the types that are involved. A Station is only one part (i.e. one side of a bus station). Station_Group is the whole thing. And the building is a construction. I guess you should bulldoze construction, but try it out.

  • Thanks' I have downloaded the Eis_is mod. Restored the game inte a version that allow the mod to work.


    But I can't figure out on how to bulldoze. In the console I write: game.interface.bulldoze(255363), nothing happens, even in the test game where I only have one station (of course the id is something else)

  • I think game.interface.bulldoze() has been removed from the game entirely.

  • CommonAPI2 works ok with the newest game version. Steam Build 29596

    a) There is a dev version 20200717 https://www.transportfever.net/index.php?thread/13025
    b) game.interface.bulldoze is still accessible in the relevant lua thread (called Script Thread in CommonAPI2)

    c) game.interface.bulldoze can remove a station I just build a few seconds ago...

    Zurzeit nicht aktiv im Forum :!:   Glaskugel rendert noch... Du möchtest meine Projekte unterstützen? You want to support my projects?   https://www.paypal.com/paypalme/eisos

  • CommonAPI2 works ok with the newest game version. Steam Build 29596

    I have updated the game again to 29596

    1. How to open the commonAPI console in this new version? I got a different window, but I can't find the console.
    2. I wish to test bulldozing this station where I have a small new started game with only needed mods activated.
    3. What about the different Entity numbers on this station? (This is the same station the should be bulldozed in my game, but I can't get it into a view as that will immediately create a CTD.)

    I think there will be a problem as the station seems to be built with a couple of separate Entities.

    The script has only found the id 22607



    Here I can show the info from the debug window Alt Gr +D


    Entity id= 22607


    Entity id= 22571

    Einmal editiert, zuletzt von melectro ()

  • Here is the stdout.txt to view that bulldozing isn't working. I must do something wrong.

    Dateien

    • stdout.txt

      (93,05 kB, 739 Mal heruntergeladen, zuletzt: )
  • Hallo, Freunde. Ich verfolge nun die diversen Themen zu Schwierigkeiten beim Spiel hier im Forum. Es gibt sicher viel Probleme, deren Wurzeln auch an UG liegen. Leider findet zwischen den wertgeschätzten Moddern und UG zu wenig Austausch statt. Deswegen wird es immer zwischen den Schnittstellen Gamplay/Modding Probleme geben. Ich spiele seit geraumer Zeit TPF 2, mit von mir, mit Hilfe des Konverters unmodifizierten Mods aus TF und TPF1. Viele Mods aus den alten Zeiten lassen sich konvertieren, funktionieren aber nicht. Andere funktionieren herrvorragend. Nicht schlimm. Try and learn. Schmeiss ich eben erstmal raus.... bis ich gelernt habe, die Mods anzupassen.

    Beta-Versionen - daher der Name- führen zu Problemen. Deswegen nehme ich nicht daran teil. Mein Savegames funktioniert einwandfrei, trotz diverser Updates von UG, da ich gelernt habe, seit TF, rechtzeitig zu speichern. Danach try and error. Was ich damit sagen möchte, ist, es liegt teils NICHT an UG, größtenteils NICHT an den Moddern, wenn ein Spiel(Savegame) nicht mehr funktionieren will. Die Fehler liegen bei den Nutzern des Spiels und deren aktivierten Mods. Steam-Mods würde ich z.B. nicht nutzen, ohne sie vorher zu speichern, umbenennen, usw. Also Leute, guckt erstmal auf Euren Mod-Ordner und Festplatte, räumt auf und kritisiert nicht nur. Manchmal baut Ihr als Nutzer auch Bockmist. Ich kenn mich da aus, ist mir doch auch schon und noch immer passiert :) Ein schönes Wochenende, das ich ab Montag für zwei Tage in Werder /a.d. H. verbringen werde.:P:thumbup:

    Gefällt mir 1
  • Farang121212

    Es gibt sicher viel Probleme, deren Wurzeln auch an UG liegen. Leider findet zwischen den wertgeschätzten Moddern und UG zu wenig Austausch statt.


    Beta-Versionen - daher der Name- führen zu Problemen. Deswegen nehme ich nicht daran teil. Mein Savegames funktioniert einwandfrei, trotz diverser Updates von UG, da ich gelernt habe, seit TF, rechtzeitig zu speichern. Danach try and error.

    Manchmal baut Ihr als Nutzer auch Bockmist

    Regarding your post:

    To what will it help to solve the problem I have? You suggest that the fault is probably with me and that it is not always wrong in a mod or in the game.

    I have nowhere written that there is a fault caused by the mod. I only show one station and to the modder (sent a PN) I have clearly stated that I do not think the fault is in the mod as it has not been updated since March "on Steam" and yes I have already checked the files!

    What is the cause of this error, will probably not turn out as the solution as I see it and tips from others is to bulldoze away the construction that creates the problem. To make it clear for you. I need help to get the bulldoze function in a script to work as a station can't be bulldozed in the game due to a CTD when it's showing up.


    Therefore, I kindly ask you in the future not to write more in this post if you have nothing sensible to say.

    3 Mal editiert, zuletzt von melectro ()

    Gefällt mir 2