How do I clone all sessions associated with a route?

RobWed

Member
I had a bit of a play with Schwaninger Land today. Lots to do in it but some parts could do with some detailing and some things need a tweak. Which I think makes it ideal for me to learn both driving and layout building.

I worked out how to clone a locked route so I can modify it (things like making the tram line function properly and increasing the range on a trigger at the Coal Bunker). What I'd like to do is clone all the sessions and point them to my route clone. What's the best way to do this?
 
What I'd like to do is clone all the sessions and point them to my route clone. What's the best way to do this
Open the session folder for edit in the CM.
Copy this folder to any other location. In the configuration file, change the map-kuid and also in the kuid-table to your new cloned route.
Also, assign any new kuid for the session. Then import this folder into the CM.
 
Last edited:
You could clone the sessions by picking it in content manager and clicking clone. Then edit the config file of the cloned sessions and change the route number to the cloned route number, this is done in 2 places in the config file. Save and submit the edit.
 
I would go about this in two steps.

1) Create a new copy of the route and the first sessions
2) Create clones of the remaining sessions.

With TRS22 and its relations, you can actually edit the route and not just create your own sessions.

1) Open up the first session for editing.
- Click on View Sessions for the route you want to work with.
- Edit the session.

When prompted to save your copy, because this is a DLC or built-in route, choose Save and save both the route and session.

This will take the existing session and keep that intact as the default plus copy the route at the same time.

With that set, move on to the next step.

2) Cloning each session.

There are two ways to do this and neither is really a one step process. Since you are already in Trainz...

- Open each session and save.
- Choose save session only.
- Repeat for each session.

- Close Trainz for now.
- Open Content Manager.
- Look for the sessions you created. There are multiple ways to do this. Among them is to search using Today for the current date of installed assets. This will list the cloned route and new sessions you just created.

3) Update the session config.txt files to associate them with the route.

- With the route listed, right-click on it and open View assets in a new window.
- In the Asset-Kuid bar, highlight the KUID and press CTRL+C to copy it.
- Close that window.
- Back in the first Content Manager window, select the first cloned session, not the default session. We'll take care of that afterwards.
-Right-click and choose edit config file.

This will open Notepad or some other text editor. Do not use a word processor such as Word or Open Office Write because these programs will put in special characters and corrupt the text file.

In the text editor, use the search and replace function to replace the old route-kuid with the new one.

- Look for the line map-kuid.
- In the search and replace box, type in that kuid carefully into the search for field.
- In the replace with field, paste in your clone of the route - the one created originally.
- Replace and this will replace both kuids at the same time. The one in the map-kuid line and the other in the kuid-table.
- Save and close the config.txt file.
- Back in Content Manager, right-click on the opened for edit session and choose Submit.

- Repeat this process for all the other sessions you cloned.

You may want to rename the "default" session.
You do this by editing the config.txt file and editing the username tag. Type in the new name you want.

- Check for missing dependencies. If you messed up the map-kuid, your cloned session will show a missing dependency. Check your work.

The process is a lot quicker than it took me to type this. I did this from memory since I'm not at my Trainzing computer. Hopefully I got the steps right.
 
Back
Top