Route and Session Basics
The information in this Wiki Page applies to TRS19, Trainz Plus and TRS22. This page is intended to provide you with an overview of the properties and features of Routes and Sessions when creating layouts for Trainz. More detailed descriptions of these various features plus instructions on getting you started with creating Routes and Sessions can be found in the Trainz Wiki How To Guides - links are provided at the end of this document.
Trainz Worlds
The virtual worlds that Trainz creates can be classified as:-
Routes are created in Surveyor and contain most (if not all) of what you will see in your virtual Trainz world. You can have many different routes, limited only by your storage space. Routes can be built to represent different geographical regions (real or imagined) and different periods of time (past, present, future). Routes also control the environment settings in your virtual world, such as your geographic location and altitude, the season of the year, lighting conditions and the weather. Routes can have:-
Sessions are also created in Surveyor but are designed to be run in Driver. Sessions contain the instructions that will control your trains when they are operating in automatic or "AI" mode in your route. They also control the goods your trains will carry, load and unload at industries along the way, regardless of whether you are driving them manually or using the AI. You can create different sessions for different aspects of your railway - freight, passenger, shunting or a mixture - or for different seasons of the year or times of the day. Sessions are where you can program the behaviour of objects in your virtual Trainz world. A session can also contain scenery items that are specific to a particular railway operation, season of the year or time of day that will only appear in that specific session. Sessions also control the environment settings in your virtual world, such as lighting conditions and the weather. Sessions can have:-
|
What is a Route?
A route (also known as a "Layout") consists of most of what you will see on the screen when using Surveyor and Driver. Things such as the landform or terrain, most (if not all) of the scenery items, the ground textures, the effect layers (TurfFX and Clutter), plus some "environmental" features.
A route consists of two parts:-
- Route Data and
- Route Layers.
When you save a Route, all the items in the Route Data and Route Layers will be saved |
Route Data:
The Route Data stores all those features that are painted into a layout using a brush tool and all the Environmental Data including the World Origin (latitude, longitude, altitude) |
This covers all those visual elements that are "painted" in Surveyor with a brush tool and all the Environmental features.
Route Data consists of:-
Landforms (Terrain) - baseboards and ground height | |
Water height and spread | |
Ground Textures including the grid pattern which is a texture | |
TurfFX, Clutter and Water - found in the Effects Layers | |
Environmental Settings - World Origin (latitude, longitude, altitude), Water Surface (rough/calm/etc), Snow Altitude, Lighting (sun, ambient and water colours), Sky (clouds), Road Traffic (on/off), Date (day, month), Wind strength, Fog level, Weather (rain/fine/snow), Brightness level. You must edit and save the route for these settings to become part of the Route Data - see the Trainz Wiki page How to Use the Environment Tools for more details. |
Route Layers:
Route Layers are used to hold the scenery assets that you want to appear in all sessions created for the route |
All scenery assets are held in layers. Route Layers give you a way of organising or grouping the assets displayed in your route.
Track and Track Objects (such as signals, switches, bridges, tunnels, speed signs, etc) | |
Most (or all) scenery items (e.g. buildings, trees, rocks, active industries/stations) and scenery splines (e.g. roads, fences, etc) | |
Rolling Stock (including locos) - Note: It is strongly recommended that all rolling stock be placed into a Session Layer | |
Lineside and Fixed Cameras | |
Trackmarks, Triggers, Direction and Priority Marks |
|
A detailed description of Layers can be found on the Trainz Wiki Page How to Use Layers |
Loading (and Creating) a Route
The Main Menu screen is shown below. The first option (shown highlighted in the image) opens Driver/Surveyor with all its options including loading and creating a route.
In Driver/Surveyor a strip of thumbnails for all the installed Routes will be shown at the base of the screen. The strip will scroll horizontally if there are too many to display. Just move the mouse pointer onto any thumbnail to reveal the scroll bar device.
A Left Click on the MAIN MENU button will take you back to the starting or main screen.
A Left Click on the Sort By A-Z button (top right of the image above) will give you a drop down menu of sorting options for the thumbnail list.
A Left Click on the button (top right of the image above) will expand the thumbnail list to fill the screen - Left Click it again to return the thumbnails to the strip at the bottom of the screen.
The thumbnail images are colour coded.
Payware on DLC | Must be purchased and downloaded, but some may be free - depending on your membership options. If you click a thumbnail with this colour a DOWNLOAD button will appear on the bottom right of the screen. If a price is included in the button then that is the purchase price (in $US) | |
Payware installed | Already installed from the DLC. DLC items cannot be deleted. To remove them use the Uninstall option in the Content Store from the Launcher. You can reinstall them later without any additional cost | |
Installed | Downloaded from the Download Station (DLS) or created by you. This includes any cloned DLC Routes and Sessions (see Cloning a Route/Session below) | |
|
Multiplayer | For simultaneous development by multiple players. Special conditions apply |
Creating a New Route
On the Driver/Surveyor screen the route options are shown as a set of buttons at the bottom of the screen.
In Surveyor Classic (S10)
in Surveyor Classic (also known as S10), which is supplied with TRS19 and TRS22 and is an option in Trainz Plus, Left Click CREATE ROUTE . This will start Trainz Surveyor and open the New Route Dialogue Window.
It is recommended that you enter some details before you click the icon to create the new route. A bare minimum is listed below that will save you some time and effort later, and you can always change them at any time.
|
|
A Left Click on the icon at the bottom right of the New Route window will create a new route with a single flat baseboard using the data settings you have entered.
A Left Click on the icon on the top right of the New Route window will cancel the data entry and create a new route with a single flat baseboard using the default data settings (usually the settings entered for the last route you created).
In Surveyor 2.0 (S20)
In Surveyor 2.0 (also known as S20), which is supplied with Trainz Plus and TRS22 for those who also have Trainz Plus, Left Click CREATE ROUTE . This will start Trainz Surveyor and move straight into the Surveyor World View screen. If you wish to edit any of the Route settings then open the Route Editor from the Main Menu or press Ctrl + E . |
The Surveyor World View
Depending on the Route Editor settings and the version of Trainz you are using, you may see the following (shown below right but without the added yellow and white labels and descriptive objects).
In Surveyor Classic (S10)In Surveyor Classic the baseboards are controlled using the Topology Tools. To open the tools fly-out either Left Click the Topology Tool Tab or press the F1 key. |
The Key Topology Tools, as shown in the diagram above, are:- | |||||||
Add New Baseboard - Left Click (it will stay active until another button is clicked) and then Left Click in a blank area outside the baseboard to add a new baseboard in that position. Each click will add a new baseboard at the same altitude as the first | |||||||
Delete Baseboard - Left Click (it will stay active until another button is clicked) and then Left Click anywhere on a baseboard to delete that baseboard. You will get a warning dialogue window - you CANNOT undo this operation to restore a deleted baseboard | |||||||
Grid Size - a pop-out menu will give you a choice of 10m (the default) and 5m. This sets the resolution of the baseboard. It does not alter the size of the yellow grid squares which will always stay at 10m x 10m.
|
|||||||
Advanced - this will open another window in the Topology Tab that will allow you to select a grey scale bit map image to set the height of each grid |
In Surveyor 2.0 (S20)
In Surveyor 2.0 there is no separate Topology Tools fly-out. A single Tools Palette replaces all the separate tools "fly-outs" found in the original Surveyor Classic.
|
The Marquee area, shown with a green border in the image below right, shows the positions where 3 new baseboards will be created to add to the existing baseboard. The Marquee area has a Context Tool icon as shown in the image. | |||
Left Click on the Context Tool icon or press the T key to open up the Marquee Context Menu. |
|
Loading an Existing Route
You must first find and select the route to load from those already installed. At the top of the Driver/Surveyor screen the route search options are shown as a set of buttons.
Type: | ROUTES is the default selection. No need to change this. |
Source: | PURCHASED is the default selection, Click and change to MY CONTENT for a route you have created (or already modified) or to INSTALLED for one you have downloaded from the DLS. |
Region: | ALL is the default selection. You can select a particular geographic region if required and IF the route had a geographic region set when it was created. |
Search: | You can narrow down the list of routes by typing the first few letters of its name (e.g. SA) as shown in the image above. |
This will produce a display of thumbnails at the bottom of the screen.
Left Click on the thumbnail for the route you want to load, then Left Click on the EDIT ROUTE button to load the route into Surveyor.
|
Loading a Route Into Surveyor From Content Manager
Trainz provides a shortcut that allows you to load an existing route directly into Surveyor for editing from Content Manager.
|
Loading After an Unexpected Shutdown
If you select a route for loading after an unexpected shutdown of Trainz then any route (or route and session) that was open and running in Trainz Surveyor or Driver will be left marked as Open for Edit. When you attempt to load this route into Surveyor or Driver you will see a message listing the route and session (if any) that were affected.
The message is saying that the assets in the list may have been changed since the last time you loaded them and exited Trainz normally. For example if you had been editing the route and/or session and had experienced a crash to the desktop or had used Windows Task Manager to terminate the program.
|
The options you will see are:-
|
Editing a Route
When a Route is loaded or a new Route is created all the assets you add will be automatically placed into a Route Layer |
When you create a new route (with or without a named session), or load an existing route without a session, and start adding scenery assets they will automatically be placed into a Route Layer. See How to Use Layers for more details.
Any ground textures, water, effect layers (turfFX and clutter) you add, or terrain changes (including new baseboards) you make, will be added to the Route Data.
|
You can edit the Route Characteristics at any time by selecting the Edit Route command from the Edit menu or simply pressing Ctrl + E . |
|
|
|||||||||||||
|
You can edit the Environment Controls of a Route by selecting the Edit Environment command from the Edit Menu. |
|
|
Effect Layers
The Effect Layers tool allows you to add, remove and edit the special ground effect layers |
Effect Layers contain:-
TurfFX - 3D animated grasses including crops (e.g. wheat) ‡ | |
Clutter - rocks, stones, small clumps of plants (grasses, flowers, etc) | |
Water - (in the latest versions of Trainz only) a layer of water that covers the entire route but its height can be set to different values to be hidden or revealed throughout the route. It is possible to set a slope on the water (perfect for a water skiing scene 😀) |
‡ TurfFX Effect is hardware dependent and requires an Nvidia graphics card. TurfFX is an Nvidia software product and is not from N3V.
Merging Routes
Two (or more) separate routes can be joined together (merged) to create a new route |
There are some important restrictions on the merging of two routes:-
Payware (DLC) routes cannot be merged with Freeware (DLS) or other Payware routes | |
The Session Data and Session Layers in the first route can be saved in the merger, if required, but those in the other route are not | |
There may be a significant height difference between the two routes and this may not be easy to overcome | |
The orientation of the two routes (East-West or North-South) cannot be changed (it is possible but will usually require a lot of time, effort and patience) |
A detailed description of the process of Merging Routes can be found on the Trainz Wiki Page How to Merge Routes |
What is a Session?
A Session is always a part of an existing Route - you cannot have a Session that does not belong to a Route |
If you create a Route without a Session then ALL the active industries and rolling stock, time, environmental conditions, etc, will revert to their original (default) values. There will be no AI drivers and drivers will have a very limited set of available commands for manual driving |
In general, while a route provides the physical structures (or "hardware"), a session provides the services (or "software"). While you can easily have a route without a session, it could be a very limited (or even a boring) experience.
A single route can have multiple sessions, or none, but a session must always belong to a route. To put it into Trainz terminology, a session has a route as a dependency.
A session consists of two parts:-
- Session Data and
- Session Layers.
When you save a Session, all the items in the Session Data and Session Layers will be saved |
Session Data:
Session Data are often the "invisibles" that control the operation of a session. Session rules, driver orders and loco assignments, commodities (loaded, unloaded and carried) and most of the Environmental Settings are examples of Session Data.
Session Data contains:-
Drivers (names, AI commands and assigned locos) | |
Driver Commands - those available for AI and manual driving | |
Session Rules | |
Industry Settings (commodities consumed and produced) | |
Consist Settings (commodities carried) | |
Consist Locations - this is stored in the session even if the consists are placed in the route | |
Switch Settings (left/right) - but the default switch direction is stored in the route | |
Environmental Settings - Water Surface (rough/calm/etc), Snow Altitude, Lighting (sun, ambient and water colours), Sky (clouds), Road Traffic (on/off), Date (day, month), Wind strength, Fog level, Weather (rain/fine/snow), Brightness level. You must edit and save the session for these settings to become part of the Session Data - see How to Use Environment Tools for more details. If both a route and a session have saved Environmental Settings, which do not have to be the same, then those in the session will be used. If the session does not have any saved Environmental Settings then those in the route will be used Session Layers: |
Session Layers are used to hold the scenery assets that you want to only appear in that particular Session and not in all Sessions. They can be left empty and the Route Layers can contain all the scenery assets |
Session Layers give you a way of organising or grouping the assets displayed in your session.
Session Layers can contain:-
|
|
A detailed description of Layers can be found on the Trainz Wiki Page How to Use Layers |
|
Loading (and Creating) a Session
Creating a New Session
To create a new Session you must first create a new Route or identify an existing Route |
A new session can be created in two ways:-
Method Automatically When a New Route is Created | |||||||||
Follow the steps shown in the section Creating a New Route above by entering:-
|
Method Adding a Session to an Existing Route | |||
The first step is to locate (but not load) the route as described in the section Loading an Existing Route above. Once you have selected the route from its thumbnail, Left Click on the VIEW SESSIONS button.
Then Left Click on the CREATE SESSION button. If no other session exists for this route then this will be the only choice available to you.
|
|||
Both methods will load the route into Surveyor and create a new session with all its values/parameters set at default levels.
Loading an Existing Session
There are two different ways to load existing sessions into Surveyor.
Method Search For the Session | ||||||||
The easiest way to load an existing session is to use the search tools at the top of the Driver/Surveyor screen.
|
This will produce a list of session thumbnails at the bottom of the screen. As with the route thumbnails, the list can be scrolled horizontally.
The same colour coding system used in the route thumbnails also applies to session thumbnails.
Payware on DLC | Must be purchased and downloaded, but some may be free - depending on your membership options. If you Left Click on a thumbnail with this colour a DOWNLOAD button will appear on the bottom right of the screen. If a price is included in the button then that is the purchase price (in $US) | |
Payware installed | Already installed from the DLC. DLC items cannot be deleted. To remove them use the Uninstall option in the Content Store from the Launcher. You can reinstall them later without any additional cost | |
Installed | Downloaded from the Download Station (DLS) or created by you. This includes any cloned DLC Routes and Sessions (see Cloning a Route/Session below) | |
|
Multiplayer | For simultaneous development by multiple players. Special conditions apply |
Left Click on the thumbnail for the session you want to load and then Left Click on the EDIT SESSION button. This will load BOTH the route and the session into Surveyor.
|
Method Select the Route First | |
Select the route as described in the section Loading an Existing Route above. Then Left Click on the VIEW SESSIONS button.
This will display a list of thumbnails for all the sessions in that route. Select the session thumbnail you need and then Left Click on the EDIT SESSION button.
Again, both the selected route and its session will be loaded into Surveyor. |
|
Loading a Session Into Surveyor From Content Manager
Trainz provides a shortcut that allows you to load an existing session directly into Surveyor for editing from Content Manager.
Both the route and the session will be loaded into Surveyor for editing. |
Loading a Session into Driver From Surveyor
To start Driver simply select a session as described above in Loading an Existing Session and Left Click on the DRIVE SESSION button.
This will load both the session and the route into Driver.
You can save your "game play" in Driver at anytime. See Saving and Loading Sessions in Driver below.
Loading a Session into Driver From Content Manager
Trainz provides a shortcut that allows you to load an existing session directly into Driver from Content Manager.
The session and its parent route will be loaded into Driver and the simulation will be started. |
Editing a Session
When a Session is loaded into Surveyor or a new Session is created for an existing Route, all the assets you add will be automatically placed into a Session Layer |
When you create a new session, or load an existing session, and start adding scenery assets in Surveyor they will automatically be placed into a Session Layer. See the Trainz Wiki Page How to Use Layers for more details.
Any changes made to the Session Rules (including drivers and their commands), the Environment Tools, Industry or Rolling Stock settings, will be added to the Session Data.
There are also other changes that will be added to the Session Data.
You can edit the Session Characteristics at any time by selecting the Edit Session command from the Edit Menu or by simply pressing Ctrl + R . |
|
|
You can edit the Environment Controls of a Session by selecting the Edit Environment command from the Edit Menu. |
|
|
Saving a Route and a Session
Routes and Sessions are saved from the System Menu on the Surveyor screen.
|
Notes on Saving Routes and Sessions: |
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||
|
Saving a New Route and Session
If you have created a new route and select Save or Save As..., then you will be presented with the following Save Route Dialogue Windows.
In both cases the name of the route that was entered when it was created will be shown and you can change the name, even in the Save option. However, there is no option in either case to change the name of the created session because the other options have been greyed out and cannot be selected. |
Saving an Existing Route
If you have loaded the route only and not the session and HAVE NOT edited any Session Data or Session Layers, then selecting Save will produce the following Save Route Dialogue Window.
|
If you have loaded the route only and not the session and HAVE edited Session Data or Session Layers, then selecting Save will produce the following Save Route Dialogue Window.
|
|
Saving an Existing Route and Session
If you have loaded a route and a session and have edited the route or the route and the session then selecting Save will produce the following Save Route Dialogue Window.
|
|
If you have loaded a route and a session and have edited the session (Data or Layers) only and not the route, or have already saved the route but not the session, then selecting Save will produce the following Save Session Dialogue Window.
|
Saving a Route and Session Using the UDS
The UDS feature is available in TRS19 Platinum Edition, Trainz Plus and TRS22 only |
The UDS (Unified Driver Surveyor) Interface allows you to quickly switch from Driver to Surveyor and back to Driver again without having to restart the session from the beginning. You can edit a route and session while in Surveyor and then switch back to Driver to continue the session where you left it.
|
Most of the problems users seem to be experiencing with the UDS, judging from the posts in the Trainz Forums, is when saving their edited session before switching back into Driver mode.
Using Driver Mode involves driving consists (either manually or through the AI) and activating rules. These will change the Session Data |
Overwriting the Session will save any changes to the consist locations and the Session Rules and will destroy the previous saved Session |
|
When you are in Driver Mode at least one of the consists will probably be moving. Some of the Session Rules may have already been completed while others may still be running or waiting for events (e.g. triggers to be activated). If, after switching to Surveyor Mode, you then choose to save using the Overwrite existing session option then you will be replacing your original starting session with a new one with the consists saved in their new positions and the Session Rules saved in their new states. So when you later load and restart the session things will not be the same as they were in the original or starting session.
Unless you have a particular reason for overwriting the original Session then the recommended save options are:-
Option Do not save session | |
Tick the box Do not save session. This will only save the route using its existing name. This will save any edits that you have made to the route but not to the session. |
|
Option Create new session | |
Tick the box Create new session. This will save the route using its existing name. It will also save the session using a new name you enter in the text box below the option (Stage 3 in the example shown). The original session will not be altered. This is useful when you want to test out changes to consists, industry settings, Rules, driver commands, etc but do not want to destroy the original session. |
|
If you have have NOT edited anything while in Surveyor and select Save then you will be shown the Save Driver Session dialogue window to save the session in its current state as a Driver Game (also called a Game or Driver Game). This is exactly the same as pressing Ctrl + S while in Driver.
The Driver Game will appear in the Select Session menu for the route. Loading it will resume Driver at the point where it was saved.
Exiting Surveyor
If you exit Surveyor after editing without saving then you will be prompted to Save. |
|
Unsaved Route | Unsaved Session |
|
Exiting Driver
If you exit Driver after running a session you will be prompted to Save a Driver Game. |
|
|
Cloning a Route/Session
A Clone is an exact or duplicate copy of an asset. Some Payware routes and sessions cannot be cloned |
Cloned routes and sessions can be edited and saved as Your Content |
Cloning a Route or a Session allows you to work on a duplicate copy of the original. All changes that you make will be saved in the cloned copy leaving the original copy unchanged.
|
|
Cloning Using Surveyor
Routes and Sessions that have been loaded into Surveyor can be cloned using the Save As... command from the Surveyor System Menu
Enter a new name or edit the original name (as shown above) for your cloned route or session.
|
Cloning Using Content Manager
Select the Route or Session to Clone
|
A Task Window will open to display the result.
In the image above the original Route has been cloned and given a new <kuid> value.
The newly cloned Route will be shown in Content Manager as a New Asset that is Open for Editing.
|
|||||
Steps:
|
|||||
|
Rename the Clone (an Optional Step)
You can give the cloned Route or Session a new name and a new description. Note that these changes will not appear until after the New Asset has been submitted.
|
|||||||||||||||||||
Steps:
The config.txt file will open in your default text editor. You can then edit both the Title (username) and the Description of the Route or Session
|
|||||||||||||||||||
|
Submit the Clone (a Necessary Step)
When submitted a cloned DLC Route or Session will be described as Payware, Modified while a cloned DLS Route or Session will be described as Modified |
|
|||||
Steps:
The New Asset entry will vanish from the Open for Editing display. Open the Content Manager filter Today to check that it has been correctly submitted. If you have renamed the clone then it should appear using its new name. |
|||||
|
|
Saving and Loading Driver Games in Driver
Saving Driver Games
Driver Games (sometimes called "Saved Games" or "Driver Sessions") are "Game States" saved while in Driver Mode |
Driver Games save the "state of play" in Driver - the position of consists, the commodities and levels in rolling stock and industries, the state of the Driver Command queues, Session Rules, clock time, etc. Once saved, the Driver Game can be loaded back into Driver to continue the play at the point where it was saved. When you are in Driver select Save from the System Menu or press Ctrl + S . This will display the Save Driver Session dialogue window showing the name of the current session with a date and time stamp (shown left below). If you Left Click pn the Tick then this will be the name used for the saved game. Alternatively, you could enter your own unique name (shown right below). The space below the entered name will display any other saved driver games for that session. |
Loading Driver Games
Saved driver games will be shown with their sessions for a selected route. The section Loading an Existing Session shows two different methods of displaying saved sessions and their driver games.
Method will display ALL the saved sessions and driver games which may be a very long list.
Method will display ALL the saved sessions and driver games for a selected route, which should be a much shorter list.
Using Method 2: select the route first and then click the VIEW SESSIONS button. This will display a list of thumbnails for all the sessions and driver games in that route.
|
Where there is only one session in a route, the session will be the first thumbnail shown in the list followed by the driver games. Note that the session is selected by default.
Select (hightlight) the Driver Game you want to load and then Left Click on the DRIVE SESSION button.
This will load the Driver Game, the session and the route into Driver.
|
Editing Driver Games
It is possible to load and edit a saved Driver Game in versions of Trainz that have the UDS (Unified Driver Surveyor) interface - these versions are TRS19 Platinum, Trainz Plus and TRS22. However, when you save your edit, it will NOT be saved as an update to the loaded Driver Game. Instead it will be saved as a Session. You can select to create a new session or to overwrite the original session.
The Session will be saved with all the:-
consists in their positions and states (stationary or moving) at the time of the save | |
industries and rolling stock in their conditions (e.g. product levels) at the time of the save | |
switches in their state at the time of the save, and | |
session rules in their state (completed or not completed) at the time of the save |
Deleting Routes and Sessions
Deleting a Session will delete that Session and its Driver Games (if any), not the Route it was created from or any other Sessions |
Deleting a Driver Game will only delete that Driver Game, not the Route or Session it was created from or any other Driver Games |
All the Surveyor and Driver screens for loading routes and sessions have a DELETE ... button as an option.
|
If you need a more selective way of deleting routes, sessions and driver games, then use Content Manager from the Trainz Launch Screen. Select the Filter Routes & Sessions.
The Type column will identify each entry as a route, session or Misc. Misc in this case means a saved Driver Game.
You can delete routes and/or sessions individually but if you delete a route by itself then its dependant sessions and driver games will be shown as faulty with Missing dependencies. Likewise, if you delete a session by itself then its dependant driver games will be shown as faulty with Missing dependencies.
Trainz Wiki
Route and Session Building Guides |
|
More Tutorials and Guides to Using Trainz |
This page was created by Trainz user pware in September 2021 and was last updated as shown below.