PC [app] - Tsw Route Annotations

Discussion in 'TSW General Discussion' started by Winzarten, Aug 8, 2025.

  1. Winzarten

    Winzarten Well-Known Member

    Joined:
    Jun 27, 2020
    Messages:
    499
    Likes Received:
    980
    This is a little app I've been working on, and I think (hope :-D) it is ready for public release. The goal is to mimic the overlay you see in Cab videos, showing the current location and possibly other interesting facts.

    upload_2025-8-8_18-20-35.jpeg

    It works by using the Lat/Long coordinates provided by the TSW API. Using them you can use the app to mark various locations on the route, which then will be shown as a overlay when you pass near them.

    Prerequisites
    • TSW needs to be run in Windowed Fullscreen or in windowed mode (Exclusive Fullscreen doesn't work).
    • TSW needs to be run with its HTTP API Enabled
    upload_2025-8-8_18-27-53.png
    Installer, instruction, as well as the source code can be found on the projects Gitlab page:
    https://gitlab.com/winzarten/tsw-route-annotations

    This will currently work only for Steam version, and possibly Epic (not tested). To support windows store version I need to know what's the user directory where i.e. engine.ini is kept (for steam it's My Games\TrainSimWorld5\)

    Hopefuly someone will find it usefull, question, ideas are welcomed.
    And note, it is first version, so.. there will be bugs ;-)
     
    • Like Like x 4
  2. roysto25

    roysto25 Well-Known Member

    Joined:
    May 1, 2019
    Messages:
    365
    Likes Received:
    385
    If engine.ini location is important, you may wish to note that not all machines store it in the regular My Games location. For instance, for some reason known only (maybe) to Microsoft, on my machine (Steam) the location is OneDrive\Documents\My Games\TrainSimWorld5\Saved\Config\WindowsNoEditor
     
  3. Winzarten

    Winzarten Well-Known Member

    Joined:
    Jun 27, 2020
    Messages:
    499
    Likes Received:
    980
    Thankfully this is already solved by using the OS to provide the location of 'my games' folder. The only thing that I need to handle are the various suffixes DTG uses for each version location.
     
  4. roysto25

    roysto25 Well-Known Member

    Joined:
    May 1, 2019
    Messages:
    365
    Likes Received:
    385
    The problem is that my system, for example, has multiple instances of 'My Games' and I have not discovered what rules it is using to decide which folder to use. The OneDrive location seems, with some exceptions, to be mainly various editions of TSW. I would add that the main installations of TSW are on a completely different drive in the usual SteamLibrary folder.
     
  5. Winzarten

    Winzarten Well-Known Member

    Joined:
    Jun 27, 2020
    Messages:
    499
    Likes Received:
    980
    I've pushed a new version, here - https://gitlab.com/winzarten/tsw-route-annotations/-/releases/1.2.0
    I've added icons for the various location types, as well as autoupdate functionality, so there will be a notification when a new version is released.

    I'm also attaching some of the routes I've so far been able to annotate. Just extract the .zip and use the import functionality from within the app to import the TSWRoute file.

    i.e. One of the files contains Kassel - Würzburg, with all tunnel names and most of the viaduct names, with both the Frankfurth routes and Pfälzische Ludwigsbahn (all these routes share the same origin).
     

    Attached Files:

Share This Page