Route Cloning

Discussion in 'General Discussion' started by R3dS41ft, Jan 27, 2024.

  1. R3dS41ft

    R3dS41ft Active Member

    Joined:
    Sep 18, 2020
    Messages:
    245
    Likes Received:
    71
    Hi,
    Has anybody tried cloning a route recently or has anybody seen the below happening?

    I'm trying to clone JT ECML:Newastle - Edinburgh and am getting a blank map afterwards, even when I jump to coordinates that work on the existing route. I'm not cloning scenarios; just clicking into build -> pick route -> clone and keying in the new name.

    Interestingly, I've also tried a manual copy/paste of the route, amending a couple of the UUIDs to be a new route ID in RouteProperties.xml and the main folder. That works fine so it seems to be the clone tool in TSC that is not working.
     
  2. Spikee1975

    Spikee1975 Guest

    Never had an issue with that.

    But be careful with manually giving GUIDs, you must enter them as both 128bit GUID and 2x 64bit values in the route properties. While it may seem to work, there could be strange issues later which are almost impossible to pinpoint then.

    All cloning does is doing that for you, copying the files and replacing the GUIDs with a new unique one.

    I've just tried that, the clone works perfectly. No issues here.

    2024-01-27 20_15_13-Train Simulator (x64).png 2024-01-27 20_16_38-Train Simulator (x64).png
     
    Last edited by a moderator: Jan 27, 2024
  3. R3dS41ft

    R3dS41ft Active Member

    Joined:
    Sep 18, 2020
    Messages:
    245
    Likes Received:
    71
    Thanks for the response.

    I'm not sure what is going on here. Checking Drem station on my cloned route, the coordinates are 55.004921, -2.785100 when I click on the the station name in the flyout. Nothing there when I jump.
    In the original route, the coordinates are 55.99795,-3.55188. When I jump to the "old" coordinates on the cloned route, the station is there.
    Something seems to have messed up the latitude and longitude of the station markers in the clone.
     
  4. R3dS41ft

    R3dS41ft Active Member

    Joined:
    Sep 18, 2020
    Messages:
    245
    Likes Received:
    71
    Scrapping what was in here before. It was misleading.
    I've attached a couple of screen grabs showing the above. The stations are moving in the cloned route.
    old-route.png

    new-route.png
     
    Last edited: Jan 27, 2024
  5. KeithG

    KeithG Active Member

    Joined:
    Jan 18, 2023
    Messages:
    147
    Likes Received:
    95
    Its a known issue when using the game itself to clone a route. I thought this issue would have ben fixed by now, but obviously not. I always use TSTools to clone routes, never had a problem.
     
    • Helpful Helpful x 1
  6. OldVern

    OldVern Well-Known Member

    Joined:
    Nov 2, 2020
    Messages:
    17,972
    Likes Received:
    36,553
    Thought I would bump this as just came across a similar issue.

    Decided to dust off plans to rework some of my old TS routes from years ago, starting with the Tanigumi line. Cloned the route and renamed it to find the start location had moved slightly, also every junction now broken with the infamous red "gate" over it. Tried laying a small section of line with the track type I'm planning to use, created a junction and that immediately places as broken. Went into the original route and confirmed everything looks okay.

    So Plan B is to use TS/RW Tools to clone and see what happens there.

    Whether anyone at DTG is still looking at let alone fixing these issues, who knows, but it looks like route cloning within the game is broken and shouldn't be used.

    Edit: Yes, cloning in TS Tools yielded a sound copy - DTG please fix your game.
     
    Last edited: Nov 3, 2024
  7. OldVern

    OldVern Well-Known Member

    Joined:
    Nov 2, 2020
    Messages:
    17,972
    Likes Received:
    36,553
    Spoke too soon... As soon as I touched the route all the junctions just suddenly broke.
     
  8. Spikee1975

    Spikee1975 Guest

    TS will always use the origin coordinates given in the route's template! Some routes are using other routes' template files, and a mismatch in the template and RouteProperties coordinates will shift the scenery.

    Use TSTools to reliably clone a route, it reads the RouteProperties' origin coordinates.

    That means if you create a new route, select your template file and then alter the coordinates, Cloning will shift everything by the coordinate delta. Ideally, template and route should have the same coords, then there's no issue.
     
    Last edited by a moderator: Nov 3, 2024
  9. OldVern

    OldVern Well-Known Member

    Joined:
    Nov 2, 2020
    Messages:
    17,972
    Likes Received:
    36,553
    As you say TS tools is the answer as I doubt DTG will change anything in their code now.

    Anyhow I have abandoned the exercise for now, with the track database effectively blowing up in my face corrupting every junction after laying one section of track. Not only that, TS2024 has the laptop fans in overdrive which wasn't pleasing the wife... Will stick with doing my route building in Trainz or maybe DRS, if the guy ever sorts out real world data import. :)
     
  10. Spikee1975

    Spikee1975 Guest

    The route template is the base for cloning. The most safe way would be to always create your own template, which wouldn't trigger this behaviour.

    The issue is not in the code - it's more that it wasn't clearly documented for creators. How many freeware routes are based on the oldest Kuju default template at 0,0 (somewhere near Sao Tomé)...
     
    Last edited by a moderator: Nov 3, 2024
  11. OldVern

    OldVern Well-Known Member

    Joined:
    Nov 2, 2020
    Messages:
    17,972
    Likes Received:
    36,553
    Problem with a custom template is that you can't then upload to Steam Workshop. Can't remember which one I used for Tanigumi now, modifying the start co-ordinates of course.
     
  12. Spikee1975

    Spikee1975 Guest

    The template is given in the RouteProperties. For your Sulitjelma route, I had reconstructed the template file using the RouteProperties data. RP is in turn a bp that gets created using the template, only changing coordinates if different on creating a route.

    For cloning, modify the template coordinates by copy pasting them from the RouteProperties.xml if you don't want to use TSTools (It's really just one click).

    For uploading and playing, it doesn't matter if you are using a default template.
     
    Last edited by a moderator: Nov 3, 2024
  13. OldVern

    OldVern Well-Known Member

    Joined:
    Nov 2, 2020
    Messages:
    17,972
    Likes Received:
    36,553
    Not giving up yet but will switch my efforts to the main PC, laptop not really up to running TS any more!
     
  14. OldVern

    OldVern Well-Known Member

    Joined:
    Nov 2, 2020
    Messages:
    17,972
    Likes Received:
    36,553
    After a bit more experimentation it's not the cloning process that's at fault. I opened the original Tanigumi Line in the editor and same thing happened - as soon as I clicked on the editor track icon to open the sub menu, all the junctions came up as broken. About to see if the same thing happens on another of my old routes - Heartbeat Moor - as these were the routes which were originally on UKTS but then got transferred over to Trainsim dot com.

    In fact I can actually confirm Heartbeat Moor loads okay and nothing amiss so it looks like the Tanigumi route itself is corrupt for some reason. Not an issue with TSC per se, so I apologise for any dissent towards DTG on this occaion and for hijacking this thread!
     
  15. Spikee1975

    Spikee1975 Guest

    Don't worry Vern. It's good to be reminded that the TS Cloning function will always use route template coordinates though, while TSTools reads them from RouteProperties.xml.

    We only learn from faults. If you need a hand restoring old routes, call me.
     
    Last edited by a moderator: Nov 4, 2024
    • Like Like x 1
  16. atomicdanny

    atomicdanny Guest

    I mean personally i never use the cloning tool - I just copy the entire folder and give it a new guid (usually just change a couple of letters but in the case of scenarios - i just replace it with something from that - Free Online GUID Generator. (if a route - i'll remove the scenarios from the copy )

    (and of course where it's mentioned in the Routeproperties or scenarioproperties xmls)
     
    • Helpful Helpful x 1

Share This Page