How To Merge Routes In Tsc?

Discussion in 'General Discussion' started by cityrail-rulez, Sep 28, 2023.

  1. atomicdanny

    atomicdanny Guest

    I got distracted - but i did make the list of numbers (but then got frustrated with one route having about 20 gravel / forest textures - i'll let you know when i get through the list though :) )
     
    • Like Like x 2
  2. cunningn#3154

    cunningn#3154 Well-Known Member

    Joined:
    Mar 22, 2023
    Messages:
    228
    Likes Received:
    303
    Does the program show a list of tiles being processed when it runs?
    are all of your RW folders read/writable?
    what is the last modified date on the workfile.bin in the c:/temp folder - it should be the date/time that you last ran the program.
    Have you ensured that your range of tiles to be copied is non-zero?
     
  3. ollie37418

    ollie37418 New Member

    Joined:
    Feb 28, 2025
    Messages:
    4
    Likes Received:
    1
    The program seems to run and I get the list of files being processed when it runs. The files are definitely read/writeable and the bin files do have the date and time of when I last run the program. The only error I seem to get at all is “error cleanupcatenary object reference not set to an instance of an object”
     
  4. cunningn#3154

    cunningn#3154 Well-Known Member

    Joined:
    Mar 22, 2023
    Messages:
    228
    Likes Received:
    303
    Nothing springs to mind.

    Try running the cloner on a small set of scenery tiles (a 2x2 grid is fine) - ensuring that all four have some scenery on them.ONLY scenery items - don't select any other type.
    If you can't see any new tiles in your target route then check the workfile.bin in rwtools - does it show scenery items or is it empty apart from headers/footers?
    If it does work then try again with each of the other categories of tile to see which one(s) are causing a problem. The catenary error may indicate that one of the 'Network' tile types (loft,road,track) has something that my program doesn't like.
     
    • Like Like x 1
  5. ollie37418

    ollie37418 New Member

    Joined:
    Feb 28, 2025
    Messages:
    4
    Likes Received:
    1
    Just did the test with 2x2 and scenery has succesfully copied onto the route. The route im trying to merge doesnt exactly go top left to bottom right so i wonder if ive been using the wrong co-ordinates
     
  6. cunningn#3154

    cunningn#3154 Well-Known Member

    Joined:
    Mar 22, 2023
    Messages:
    228
    Likes Received:
    303
    Ok - some progress. So just expand the copy to encompass the area you need without worrying about empty tiles (except for the top-left one which MUST have a scenery item in it). Work through each type of tile until you have success or have identified a problem.
    Good luck
     
    • Like Like x 3
  7. trainspotteruk

    trainspotteruk New Member

    Joined:
    Mar 5, 2025
    Messages:
    17
    Likes Received:
    0
    hi cunnign, could you tell me what scrc (x,y) top-left to bot right , tgf (x,y) top-left to bot right and gOffset - x.gOffset - y means?
     
  8. cunningn#3154

    cunningn#3154 Well-Known Member

    Joined:
    Mar 22, 2023
    Messages:
    228
    Likes Received:
    303
    Yes, it means read the manual ;-)

    You are copying a rectangle of tiles from one route to another - defined by the top-left tile and the bottom-right tile. The offset is how many tiles difference there is between your source route and the position that the tiles will be on the new route.

    And, RTFM.
     
    • Like Like x 1
  9. trainspotteruk

    trainspotteruk New Member

    Joined:
    Mar 5, 2025
    Messages:
    17
    Likes Received:
    0
    ok thanks but another problem, how do i open the .doxc file?
     
  10. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,154
    Likes Received:
    3,163
    It is a .docx file so Microsoft Word or similar
     
  11. trainspotteruk

    trainspotteruk New Member

    Joined:
    Mar 5, 2025
    Messages:
    17
    Likes Received:
    0
    i also keep getting an error stating error in TileCopy Could not find a part of the path in 'c:/temp/workfile.bin'.
     
  12. kilt46

    kilt46 Well-Known Member

    Joined:
    Jan 23, 2022
    Messages:
    1,244
    Likes Received:
    579
    Sounds like a setting issue. Are you given an opportunity to select the drive where the in-progress data is stored?
     
  13. trainspotteruk

    trainspotteruk New Member

    Joined:
    Mar 5, 2025
    Messages:
    17
    Likes Received:
    0
    The error happens when i click run
     
  14. kilt46

    kilt46 Well-Known Member

    Joined:
    Jan 23, 2022
    Messages:
    1,244
    Likes Received:
    579
    Understood. Sounds like your pc doesn’t know where to find the files. Was wondering if there is done setup required before execution. I do not have the software to diagnose.
    Respectfully
     
  15. ollie37418

    ollie37418 New Member

    Joined:
    Feb 28, 2025
    Messages:
    4
    Likes Received:
    1
    Got it working so i must thank you for your help. I was trying to be overambitious before id even figured out how the software worked but now its brilliant so thanks for all the help
     
    • Like Like x 1
  16. cunningn#3154

    cunningn#3154 Well-Known Member

    Joined:
    Mar 22, 2023
    Messages:
    228
    Likes Received:
    303
    You need to be running with administrator privileges which you may already have spotted. The new issue sounds odd but could have a simple explanation: the top-left scenery tile MUST have at least one scenery item in it. So check that first. If that tile is empty then stick a big grey chimney in it (and then save the route) so the program has something to grab on to.
     
    • Like Like x 1
  17. trainspotteruk

    trainspotteruk New Member

    Joined:
    Mar 5, 2025
    Messages:
    17
    Likes Received:
    0
    Ive did that and now its working but when i merged two routes there is no sign of the source route in the target route?
     
  18. cunningn#3154

    cunningn#3154 Well-Known Member

    Joined:
    Mar 22, 2023
    Messages:
    228
    Likes Received:
    303
    My guess is that you've got the offsets wrong - so the tiles are there but not where you expect them. Go to the scenery fodler and look for newly modified tiles - if they exist then the program did put them in. If so then you need to use rwtools to read one of them and find the first reference to the tile number. Then open your target route and fly to that location - which should show you that they exist and that you've cocked up the offset.

    Then read the manual, look at what has happened and you'll be able to work out what you did wrong.
     
    • Helpful Helpful x 1
  19. trainspotteruk

    trainspotteruk New Member

    Joined:
    Mar 5, 2025
    Messages:
    17
    Likes Received:
    0
    Yep checked in the scenery folder and saw an unusal tile where a scenery item would be, flew to that location in the target route and saw the scenery in the source route just a quick question. for the src tiles do you enter the same tiles in each box or different ones because i think that might be where i went wrong. and also does it merge the whole route if correct, or do you need to merge it by individual tile?
     
    Last edited: Mar 8, 2025
  20. cunningn#3154

    cunningn#3154 Well-Known Member

    Joined:
    Mar 22, 2023
    Messages:
    228
    Likes Received:
    303
    RTFM!! You enter the top-left and bottom right tile coords from your source route. The offset is then applied to every tile in the virtual box that you've defined by doing that and the program moves all of them that exist. Your source route is unlikely to be a neat rectangular shape but the program doesn't care - it will copy what it finds.
     
    • Like Like x 1
  21. trainspotteruk

    trainspotteruk New Member

    Joined:
    Mar 5, 2025
    Messages:
    17
    Likes Received:
    0
    i have merged the two routes but the target route track dissapears at the merge point where the source route is
     
  22. cunningn#3154

    cunningn#3154 Well-Known Member

    Joined:
    Mar 22, 2023
    Messages:
    228
    Likes Received:
    303
    There is a separate process for merging the track - have you done that? Did you back up the target route first (if not then do so).
     
  23. trainspotteruk

    trainspotteruk New Member

    Joined:
    Mar 5, 2025
    Messages:
    17
    Likes Received:
    0
    Yeah i know about that but when i merge the tracks, the tracks in the target route dissapear near the merge point of where the source tracks are and i have made a backup of the target route
     
  24. cunningn#3154

    cunningn#3154 Well-Known Member

    Joined:
    Mar 22, 2023
    Messages:
    228
    Likes Received:
    303
    No error messages? A 'clean run' - just no track? Have you checked to see if there are track tiles where the track would be?
    One possibility is that you have a different track type in the source route which is not present in the asset list of the taregt route (e.g. your source route uses Bath Concrete rail and your target route uses a JustTrains Wooden track type). You need to make sure that either you change the track types in the source route to match your target (on a copy I suggest) - or - you add the source track types as assets in the target route.
     
    • Helpful Helpful x 1
  25. trainspotteruk

    trainspotteruk New Member

    Joined:
    Mar 5, 2025
    Messages:
    17
    Likes Received:
    0
    Is there any way to change the track type in the source route bceause adding the source track types as assets in the target route didnt work unfortunately
     
  26. toms87

    toms87 Well-Known Member

    Joined:
    Jan 20, 2022
    Messages:
    729
    Likes Received:
    1,091
    my friend from the German community has been working on a new merge tool for some years now. It seems to be working at this point and I will talk about it here, when it´s ready and I´ve tested it.
     
    • Like Like x 1
  27. dolanbaker

    dolanbaker Active Member

    Joined:
    Dec 29, 2022
    Messages:
    149
    Likes Received:
    131
    I remember when I merged two routes, the tracks tile from the doner route replaced the tile on the original route. You need to choose carefully which tiles to bring across at the merge point.
    Then you have to manually join them up.
     
    • Like Like x 2
  28. cunningn#3154

    cunningn#3154 Well-Known Member

    Joined:
    Mar 22, 2023
    Messages:
    228
    Likes Received:
    303
    You use RWTools to edit the tracks.bin. Don't forget to backup first.
     
    • Like Like x 1
  29. trainspotteruk

    trainspotteruk New Member

    Joined:
    Mar 5, 2025
    Messages:
    17
    Likes Received:
    0
    I dont have rwtools is there a way to do this with ts tools?
     
  30. Gary Padley

    Gary Padley Active Member

    Joined:
    Dec 10, 2016
    Messages:
    883
    Likes Received:
    239
    Basically they're the same program, just with a name change.
     
  31. trainspotteruk

    trainspotteruk New Member

    Joined:
    Mar 5, 2025
    Messages:
    17
    Likes Received:
    0
    I know but i cant seem to find the option to replace the tracks in a route
     
  32. cunningn#3154

    cunningn#3154 Well-Known Member

    Joined:
    Mar 22, 2023
    Messages:
    228
    Likes Received:
    303
    It is an editor. So you find the relevant string that identifies the track asset and do a bulk change.

    If you don't know how there is a manual and there will be both videos and old posts. But the best way is to experiment (on a copy) - you learn this stuff by doing it.
     
    • Like Like x 1
  33. trainspotteruk

    trainspotteruk New Member

    Joined:
    Mar 5, 2025
    Messages:
    17
    Likes Received:
    0
    Where is the manual or a video for it?
     
    Last edited: Mar 23, 2025
  34. heardturkey

    heardturkey Active Member

    Joined:
    Mar 6, 2020
    Messages:
    155
    Likes Received:
    213
  35. trainspotteruk

    trainspotteruk New Member

    Joined:
    Mar 5, 2025
    Messages:
    17
    Likes Received:
    0
  36. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,154
    Likes Received:
    3,163
    Well you must be doing something wrong - I have done this a number of times and it works.
     
  37. cunningn#3154

    cunningn#3154 Well-Known Member

    Joined:
    Mar 22, 2023
    Messages:
    228
    Likes Received:
    303
    Check that you have read/write permissions on the file. The search/replace function on a single file works fine.
     
    • Like Like x 1
  38. trainspotteruk

    trainspotteruk New Member

    Joined:
    Mar 5, 2025
    Messages:
    17
    Likes Received:
    0
    It dosent work when i click Find it just goes blank when i have entered all the correct things
     
  39. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,154
    Likes Received:
    3,163
    As I said you must be doing something wrong.
    Screenshot_District Sud Ouest Belgique_50.61224-3.41011_12-43-24.jpg
    there are two different types of track in this picture where I only swapped one type and not the other.
     
    • Like Like x 2
  40. trainspotteruk

    trainspotteruk New Member

    Joined:
    Mar 5, 2025
    Messages:
    17
    Likes Received:
    0
    I have realised what i have been doing wrong the top bar in the provider d type delta string is all the way to the extreme left and not ontop of the other one for some reason even though im copying and pasting it correctly
     
  41. trainspotteruk

    trainspotteruk New Member

    Joined:
    Mar 5, 2025
    Messages:
    17
    Likes Received:
    0
    can someone please reply? its been 5 days already
     
  42. sparraboy

    sparraboy Active Member

    Joined:
    Dec 31, 2022
    Messages:
    109
    Likes Received:
    33
    That instruction doc can't be any clearer, you must be doing something wrong. I'm getting the impression that there are many newcomers who think it's a simple job to merge routes, change lots of assets load it up and you can share/bask in the glory of being a route builder. In the 5 days since you 'realised' what you did wrong? and you have been waiting for a reply have you actually tried the instruction that has been given?
    There's a reason that Danny is no longer here and a reason that we can't access one of his 'hard worked' routes. There is a serious lack of respect for the work that goes into 'giving' us what we desire in this hobby. (Rant mode off) :)
     
    • Like Like x 3
    • Helpful Helpful x 1
  43. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,154
    Likes Received:
    3,163
    The track swapping software does work - if you does not work for you then YOU must be doing something wrong

    You seem to be under the impression that there is a lot of people using the route merging software
    But there are not that many.
    I have been playing this game since 2012 but I would not know how to merge routes.
     
  44. cunningn#3154

    cunningn#3154 Well-Known Member

    Joined:
    Mar 22, 2023
    Messages:
    228
    Likes Received:
    303
    None of us are paid to be a helpline, my friend, and constant requests for more and more help can be a little annoying. You seem to have identified a problem in your technique which is good. So start with baby steps. Pick a single word in your file and try changing it to something else (backup first of course). That should work - if not then experiment until you get it right. Once you are confident then try a full line and proceed until you can change complex stuff with panache. RW/TS tools is a wonderful thing but it was made by one bloke so it does have the odd wrinkle. Once you understand the wrinkles then using it become second nature.

    Experiment, trial-and-error and you'll get there. Good luck.
     
    • Like Like x 1
  45. KrisKol

    KrisKol Active Member

    Joined:
    Apr 2, 2023
    Messages:
    173
    Likes Received:
    103
    And thanks to whoever that was, that showed their disrespect, we all get lumped into the same category.
    Also, someone thats very constructive leaves the forums now, because of them. Thanks to whoever that ratbag was.
    I am glad I am not one of them. And my conscience is clear in that respect.
     
    • Like Like x 1
  46. AeroFishOne

    AeroFishOne New Member

    Joined:
    Jul 11, 2024
    Messages:
    6
    Likes Received:
    1
    I want to thank cunningn#3154 for developing this awesome program and for everyone that has provided assistance to everyone along the way. I was able to successfully merge the scenery and other aspects in my route but Track side, I'm coming up with the same error that Higgsy333 was having in post#77. I have tried different blocks of tiles as Higgsy had done but no matter the area I try, I still get this error. Now after RWklon is ran, the track is visible in the correct position when looking at the 2D map on RWInfo however when you go into the route in the game, no track appears on the 2d map nor in game. I'm not seeing anything in the Klon log that screams error to me. Has anyone had any more recent experience coming up with this error.

    [​IMG]
     
  47. cunningn#3154

    cunningn#3154 Well-Known Member

    Joined:
    Mar 22, 2023
    Messages:
    228
    Likes Received:
    303
    As in the case above your post: If the 2d map shows the track then one possibility is that you have a different track type in the source route which is not present in the asset list of the target route (e.g. your source route uses Bath Concrete rail and your target route uses a JustTrains Wooden track type). You need to make sure that either you change the track types in the source route to match your target (on a copy I suggest) - or - you add the source track types as assets in the target route.
     
    • Like Like x 1
  48. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,154
    Likes Received:
    3,163
    When you do the track type swap the first thing to do is to lay a section of the new track on the route you are changing.
     
    • Like Like x 2
  49. AeroFishOne

    AeroFishOne New Member

    Joined:
    Jul 11, 2024
    Messages:
    6
    Likes Received:
    1
    Thanks for the response. To give an idea of what I'm doing, I want to merge the Norfolk Southern N-Line with a route I created from scratch that continues on the Norfolk Southern Mainline to Danville. When I created my route, I used the N-Line template and have used a variation of all the N-Line Track Rules and pieces. My route was started well before I knew about route merging but hopefully I had the foresight to use the N-Line Assets.

    After trying a few things before your response, I had deleted and reinstalled the N-Line Route and unpacked the .AP files. Some of my track I had completed on my route had corrupted and after viewing the source code and the file structure, I found that some of the previous track was laid using the script NLineAssets\RailNetworks\Track and some just using RailNetworks\Track
    . Long story short I was able to correct all the instances by using RW_tools to remove the "NLineAssets" tag to the script structure which fixed the corruption issue. This was caused during the unpacking of the .AP file. I also made sure to compare the Xml between N Line and my route with the structure appearing to be the same.

    I'm sure the answer is probably in their somewhere like you were saying due to being able to see it on RWInfo 2d Map but not the In-game 2dmap. Ill keep on truckin.
     
    • Like Like x 1
  50. cunningn#3154

    cunningn#3154 Well-Known Member

    Joined:
    Mar 22, 2023
    Messages:
    228
    Likes Received:
    303
    Good to hear that you've already spotted and dealt with one issue. The clone 'tool' doesn't play with .ap files so if the route was inside an .ap then that would cause problems (doesn't sound like it in this case though).
    You could try searching the tracks.bin file for a piece of track somewhere in the new section so you can check what it is trying to do. Missing/misnamed track rules can also cause problems - though it sounds like you've already covered that. Worth checking.
     
    • Like Like x 2

Share This Page