The information in this Wiki Page applies to TANE, TRS19, Trainz Plus and TRS22.
 |
Layers are a Surveyor tool that allows you to better manage the objects that are placed in your Trainz World. |
 |
Layers are a Driver tool that allows you to change what the players see as they drive around your Trainz World. |
|
Layers can contain any objects, visible and invisible, that can be placed into a layout in Surveyor Classic using the Object, Track and Train tools or using the Placement Tool in Surveyor 2.0. The layers and their contents can be hidden from view (in both Surveyor and in Driver) or locked against alteration whenever required. Their main use is in the development of a Route and a Session but they can also be used as a way of providing some additional novelty during a Driver session. |
 |
Effect Layers Notes:
The special ground effects layers, Clutter, TurfFX and more recently Water, are not discussed here. In many ways they are more like Ground Textures but some aspects of their use is similar to the layers covered here. These special ground effects layers are saved as part of a Route but are not associated with any Route Layer.
|
|
Almost all of what you will see in a Trainz World will be found in layers, and mostly in the Route Layers and Session Layers.
Loading a Route and Loading a Session (S10)
|
 |
 |
|
|
|
|
 |
Route Layers are saved with the Route. Session Layers are saved with the Session |
 |
If you edit a Session Layer and later load just the Route then those edits will not appear. |
 |
More information on creating, loading and saving Routes and Sessions can be found on the Trainz Wiki Page at Route and Session Basics
|
The layers you see will depend on whether you have loaded a Route by itself (with no "child" Session) or a Session and its "parent" Route.
 |
 |
The first image on the left gives an example of the layers that can appear if a Route only is loaded into Surveyor. These are the layers that are saved with the Route. Note that a default "session-layer" is present.
The second image on the left gives an example of the layers that can appear if a Session based on that Route is loaded into Surveyor. It shows Route Layers and Session Layers.
In both cases, the Route Layers are identical because the same Route has been loaded. A Session contains its own layers, the Session Layers, that are loaded and saved with the Session but are not loaded or saved with the Route.
 |
If you load a Session and do not want to edit any of the Route layers then Left Click the Lock Route Layers icon on the Layers Tool
 |
Left Click the Lock Button
|
|
|
|
 |
If you load a ROUTE but not the SESSION then only edit the Route Layers |
 |
If you edit a SESSION or its layers then always save the Session |
 |
When you save a new SESSION always give it a name, do NOT leave it as "Default"
|
|
Creating a New Route (S10)
|
 |
 |
|
|
|
|
 |
 |
Notes:
|
 |
A layer can be renamed at anytime by a Double Left Click on its name and entering a new name
|
|
|
|
The "Active Layer" (S10)
|
 |
 |
|
|
|
|
 |
The Active Layer is the selected (highlighted) layer |
 |
When you load the Route only into Surveyor, the first Route layer will be the Active Layer |
 |
When you load a Session into Surveyor, the first Session layer will be the Active Layer |
| In the image above, the route-layer is the Active Layer. You can change the Active Layer at any time by a Left Click on the name of another layer. |
|
|
|
 |
Trainz does not identify which is the Active Layer in Surveyor and this often leads to problems such as objects being added to the wrong layer.
See Adding Objects To Layers below for more information.
|
|
|
Adding a New Layer (S10)
|
 |
 |
|
|
|
|
 |
Left Click the Add Button |
An Add layer dialogue window will appear.
Deleting a Layer (S10)
|
 |
 |
|
|
|
|
 |
WARNING:
Deleting Layers cannot be undone
|
|
 |
Select the layer to be deleted and Left Click on the Delete Button. If you don't select a layer to delete then Trainz will select the current Active Layer. |
If the layer being deleted is empty, then the following dialogue window will appear:-
 |
| Options: Choose one of the following:- |
 |
Left Click Yes to delete the layer, OR |
 |
Left Click No to cancel the delete operation |
|
|
If the layer being deleted is NOT empty, then the following dialogue window will appear:-
 |
| Options: Choose one of the following:- |
 |
Left Click Merge to merge this layer and its contents into another layer (see Merging Layers below for more information), OR |
 |
Left Click Delete to delete the layer and its contents, OR |
 |
Left Click Cancel to cancel the operation |
|
|
Merging Layers (S10)
|
 |
 |
|
|
|
|
 |
Merging a layer into another layer will move ALL the objects from the first layer into the second layer. The first layer, which is now empty, will then be deleted |
 |
Once layers have been merged they cannot be separated. |
 |
WARNING:
Merging Layers cannot be undone
|
|
 |
Select the layer to be merged into another layer and Left Click the Merge button. If you don't select a layer to merge then Trainz will select the current Active Layer. |
 |
In TRS19 and later Trainz versions there will be a delay when merging a layer. The delay will be indicated by a progress bar but can take several minutes on very large routes.
Resist any urge to Left Click on the Cancel button
This delay will occur every time a layer is merged.
|
|
The layer merge dialogue window will appear as shown below:-
 |
| Steps: To merge two layers:- |
 |
Select the destination layer for the merge |
 |
Left Click on the icon to accept the change
Left Click on the icon to reject the change |
| The Merge into: list shows all the available layers with no distinction between Route Layers and Session Layers |
|
|
Locking Layers (S10)
|
 |
 |
|
|
|
|
 |
If you LOCK or UNLOCK a Route Layer while editing a Session then you will have made a change to the Route and will be asked to save both the Route and the Session when you exit Surveyor |
 |
It is good practice to LOCK ALL LAYERS that you are not currently editing. This will avoid the all too common problem of accidentally adding objects to the wrong layer. |
|
Locking Individual Layers (S10)
 |
The objects in a LOCKED layer cannot be moved (around the layout) or deleted but they can be moved to other layers. |
To LOCK an individual layer, Left Click on the
Open Padlock icon next to its name. The layer being locked does not have to be the current Active Layer.
If you attempt to add a scenery object to a locked layer you will receive the following message:-
 |
Left Click on the icon to accept the change and add the object
Left Click on the icon to reject the change |
Locking ALL Route Layers (S10)
 |
Left Click on the Lock Button |
This will LOCK ALL the layers in the Route Layers Group. The Session Layers Group will not be affected.
The Route Layers Group can be UNLOCKED by a Left Click on the Lock Button again.
Moving a Layer (S10)
|
 |
 |
|
|
|
|
 |
Layers can be moved up or down within the same layer group (e.g. Route or Session) or between the two groups |
 |
Track Objects (signals, switches, etc) should be in the same layer as the Track or in a layer below the Track layer |
 |
In TRS19 and later Trainz versions there will be a delay when moving a layer. The delay will be indicated by a progress bar but can take several minutes on very large routes
Resist any urge to Left Click on the Cancel button
This delay will occur every time a layer is moved.
|
|
In the example shown below a layer created in the Route Layers Group is being moved into the Session Layers Group.
Hiding Layers (S10)
|
 |
 |
|
|
|
|
To hide or show a layer Left Click the Eye Icon next to its name.
 |
In the image shown left the two trees are in different Route Layers and all the layers have their Eye icons open (set to Show)
|
 |
In the image shown left the Trees layer has its Eye icon closed (set to Hide)
 |
Notes:
|
|
|
Adding Objects To Layers (S10)
|
 |
 |
|
|
|
|
When an object (such as a scenery item, consist, track or track object) is added to the layout it is automatically placed in the currently Active Layer. Unfortunately, Surveyor Classic (S10) does not indicate which layer is the Active Layer unless you open the Layers Tool to look. This can lead to objects being placed into the wrong layers and while these objects can later be moved to another layer (see the section Moving Objects To Other Layers below) it would be better to correctly set the Active Layer first. |
 |
It is good practice to LOCK ALL LAYERS that you are not currently editing. This will avoid the all too common problem of accidentally adding objects to the wrong layer.
|
|
 |
You cannot add objects to a layer that is LOCKED |
If you attempt to add a scenery object to a locked layer you will receive the following message:-
 |
Left Click on the icon to accept the change and add the object
Left Click on the icon to reject the change |
 |
When adding track objects (signals, speed signs, etc) to a track, the objects being added must be in the same layer as the track or in a layer below the track layer. For more information, see the section The "route-layer" below |
 |
Notes:
There are many features of Trainz Routes and Sessions that are NOT stored in layers. In some cases while the objects themselves may be placed in layers, their settings or properties are not. These include:-
- landforms
- textures
- legacy water, TurfFX and Clutter prior to Trainz Plus
- trackside camera settings
- weather conditions
- time of day
- session rules and driver commands
- signal and junctions settings
- rolling stock loads
- industry settings
- portal settings
- passenger station settings
- navigation points
- interlocking tower settings

|
| Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 |
Landforms, textures, effect layers and legacy water are saved as part of the Route |
| Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 |
Environment Settings are saved in both the Route and the Session - see the Trainz Wiki Page Environment Tools for more details |
| Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 |
When you enter or edit the name of a route layer scenery object, such as a station name board, that change will be treated as a change to both the Route and the Session. The new or edited name will still be saved as a property of the scenery object in the Route layer but you will be given the option of saving the Session as well as the Route. You can ignore the offer to save the Session if you have not edited any objects in a Session Layer, the Session Layers themselves (e.g. moved, merged, deleted or renamed) or other Session properties (e.g. commodity levels or loads). If uncertain, always save the Session as well as the Route
|
| Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 |
A bug has been reported in the Interlocking Towers (and the Enhanced Interlocking Towers) where the path and settings are initially saved in the Route but any later edits and changes are then saved in the Session. The workaround for this is to always load the Session when working with IT and EIT assets. |
|
Deleting Objects From Layers (S10)
|
 |
 |
|
|
|
|
 |
You cannot delete objects from a layer that is LOCKED |
Unfortunately Trainz does not give you a warning message when you attempt to delete an object from a locked layer, the object just refuses to be deleted.
 |
If you cannot delete an object then check:-
|
|
Moving Objects To Other Layers (S10)
|
 |
 |
|
|
|
|
| Surveyor 2.0 is only available in Trainz Plus and TRS22 Platinum |
|
Layers are found in the Layers Palette.
 |
The Layers Palette will show all the layers in their groups (Effect, Route and Session) plus the Ground Height and Ground Textures which are "special layers". In the image on the left all the layer groups have been minimised (the "arrow" symbol in front of each group name is pointing to the right). |
| Layers can be:-
Objects can be:-
The following sections show how these tasks can be done using Surveyor 2.0 |
|
|
|
Lock the Route Layer Group (S20)
All the layers in the Route Layer Group can be locked against accidental alteration.
Open a Layer Group (S20)
To the left of each Layer Group name is a small arrow. Left Click on the arrow to open up the group.
 |
The image on the left shows that the Session Layers Group is open and its individual layers are now displayed. To close or minimise the group Left Click on the arrow again.
|
Add a New Layer (S20)
|
You cannot create new layer groups but you can add new layers to a existing group.
Each Layer Group has a icon next to its name. Left Click on the icon to add and name a new layer to that group. If you are adding a new Effect Layer then you will also have to identify the type of effect - TurfFX, Clutter or Water. |
Renaming a Layer (S20)
 |
Right Click on a layer name and select Rename Layer.. from the popup menu.
You will be asked to enter a new name for the layer. |
Deleting a Layer (S20)
 |
Right Click on a layer name and select Delete Layer from the popup menu.
You will be given a warning that you are about to delete a layer.
|
Moving a Layer (S20)
Layers can be individually moved up and down within the same layer group or between the Route Layers Group and the Session Layers Group.
Merging a Layer (S20)
 |
Right Click on a layer name and select Merge Layer Up from the popup menu.
|
Hiding Layers (S20)
|
Each individual layer has an Eye icon that controls the visible state of that layer. Left Click on the icon to toggle its state between visible and hidden. If the Eye is:-
open then layer is visible in both Surveyor and Driver
closed then layer is hidden in both Surveyor and Driver
|
Locking Layers (S20)
 |
Notes:
|
|
Setting the Active Layer (S20)
 |
the Active Layer is the layer where new objects will be automatically added when using the Placement Tool. The active layer is shown in the palette with its name on a blue background. In the image on the left the Rail Workers layer is the current Active Layer.
The name of the current Active Layer is also shown in the Layer Palette Title Bar.
To set a new Active Layer, Double Left Click on a layer name.
|
Move an Object to a New Layer (S20)
The Info Palette will show the layer assigned to the currently selected object. An object is selected by using the Free Move Tool (the S key) or the Fine Adjustment Tool (the D key) found in the Tools Palette.
To the left of the layer name is a small arrow object. |
|

|
|
This topic has filled endless threads in the Trainz Forums with arguments raging on both sides.
 |
In general, there are no "cast iron" rules that dictate what should be placed in the Route Layers Group and what should be placed in the Session Layers Group (for an exception see TRS19 Platinum Edition, Trainz Plus, TRS22 Notes below) |
| Each Route and Session will be different and different creators have different ways of working. The main question to be asked is how many different Sessions will be created using a particular Route? |
 |
Notes:
| Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 |
For a Route with only a single Session - everything can safely go into the Route Layers Group
- Many creators only ever build a single Session for each of their Routes and do not use Session Layers at all (but they still have to save the session separately from the route)
|
| Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 |
For a Route with multiple (2 or more) Sessions - certain things will probably need to go into the Session Layers Group for each Session.
- Many creators build multiple Sessions for each Route and rely on the Session Layers to create the differences between their Sessions
|
| Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 |
Many scenery assets actually have their properties stored in the Session, even when the assets themselves are in a Route layer. Editing the properties of these assets is considered to be a change to the Session. Unless you have a particular reason for saving the edited data (such as a change to commodities) you can usually ignore the offer to save the Session. These assets include:-
 |
junction switches - the left/right switch direction is stored in the Session (but the default switch direction is stored in the Route) |
 |
industries - the commodities and quantities loaded/unloaded are stored in the Session |
 |
industry enabled wagons - the commodities and quantities carried are stored in the Session |
 |
consist locations (TRS19 Platinum Edition, Trainz Plus and TRS22) - this is stored in the Session. Unless you need to save their new locations, you can safely ignore the offer to save the Session |
 |
named route objects (TRS19 Platinum Edition, Trainz Plus and TRS22) - while the name is stored in the Route, adding or changing the name is treated as a change to the Session. If the name is all that you have changed then you can safely ignore the offer to save the Session |
|
|
 |
TRS19 Platinum Edition, Trainz Plus, TRS22 Notes:
| Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 |
The recommended practice in these versions of Trainz is to place all consists in a session layer and NOT in a route layer. Because these versions have the Unified Driver Surveyor Interface, placing a train in a route layer after switching from Driver to Surveyor can cause problems. For example:-
 |
If active Driver consists (i.e. those under manual or AI control) are in a route layer and you switch from Driver to Surveyor to edit the route and save the route edit, then those consists will be saved in their new positions, not their starting positions for the session |
|
| Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 |
Recent experiments using the Unified Driver Surveyor Interface have indicated that when portals produce trains they will be placed into the same layer as the portal - so if a train that is in a Session layer enters a portal that is in a Route layer and is later returned to the layout, it will be returned in the same Route layer as the portal. This has possibly always been the case with portals but has not been noticed until the arrival of the Unified Driver Surveyor Interface |
For more details see the Trainz Wiki page How to Use the UDS Interface |
|
The Route Layers Group
|
 |
 |
|
|
|
|
 |
The Route Layer Group should be used for everything that will always appear in Driver Mode regardless of which Session is playing. |
| There is nothing stopping you from placing everything in the "route-layer" of the Route Layers Group and never having to worry about dealing with layers ever again - some creators prefer to work this way. However, layers do provide you with a way of organising your scenery objects to make them more manageable, particularly in more complicated layouts.
|
The "route-layer"
 |
To avoid any confusion over which layer is the original "route-layer", this is one layer that should not be renamed or moved from the top position |
While all layers are equal, the "route-layer" is special.
 |
Track objects, such as signals, junctions and track signs, cannot be placed in any layer that is above the layer containing the track that they are attached to. If the route-layer is used for all the track and track objects and this layer is left as the top layer then this will never be a problem.
|
|
 |
It is recommended that the following objects should be placed in the route-layer:-
|
|
The Session Layers Group
|
 |
 |
|
|
|
|
 |
The Session Layers Group should be used for everything that will only be seen in the currently loaded Session. |
If you are creating more than one Session based around a particular Route, then you will probably make use of the Session Layers.
 |
Notes:
Session Layers can contain:-
|
|
|
The "session-layer"
|
|
 |
WARNING:
If you edit or add anything to the session-layer or add new layers to the Session Layers Group and do not save the session then those changes will be lost when you exit
|
|
|
 |
In Trainz Plus and TRS22 the Bound Layer is often referred to as the Binding Layer |
This is a little used and probably little understood layer feature. It allows you to attach an object to two different layers so it can have the properties (locked/unlocked and show/hide) of both layers. The bound/binding layer was introduced as a development tool, its sole use is as a tool in the building of routes and sessions.
 |
An object will be LOCKED and cannot be deleted or moved if its layer OR its bound/binding layer is locked. |
 |
An object will be HIDDEN if its layer OR its bound/binding layer is hidden. |
 |
Rulers cannot be bound to another layer. |
Assigned Layer |
|
Bound/Binding Layer |
|
Object Status |
|
Unlocked |
or None |
Unlocked |
LOCKED |
or or None |
LOCKED |
Unlocked |
LOCKED |
LOCKED |
|
Visible |
or None |
Visible |
HIDDEN |
or or None |
HIDDEN |
Visible |
HIDDEN |
HIDDEN |
|
|
|
 |
If you are going to be working with multiple objects that will be bound to a locked or hidden layer then a simple strategy is to:-
| Steps: To use a bound layer:- |
 |
Create a new empty layer called "Locked" or "Hidden" and lock or hide that layer, according to your needs |
 |
Bind the individual objects to that layer as required |
 |
When editing, testing or whatever you are doing has been completed simply delete the new layer. All objects that have been bound to that layer will have their Bound Layer property reset to none so the hidden objects will reappear and the locked objects will be unlocked |
|
|
 |
If you need to remove an object from a route but cannot alter the route (e.g. it is payware or under another users kuid) then create a new hidden session layer and change the bound layer of the object to the hidden layer. This will be treated as a change to the session only and Trainz will not ask you to save the route as well as the session.
|
|
Setting an Object to the Bound Layer in Surveyor Classic (S10)
|
 |
 |
|
|
|
|
 |
| Steps: To set a Bound Layer:- |
 |
Left Click the Bounding Layer box or one of its scroll buttons |
 |
Select the layer to be used as the Bound Layer for the object (an object cannot be bound to its own layer) |
| The effects of the binding can be reversed by setting the Bound Layer back to <none> |
|
|
|
 |
When a layer is deleted any objects bound to that layer will have their Bound Layer reset to <none> |
Setting an Object to the Bound Layer in Surveyor 2.0 (S20)
|
 |
 |
|
|
|
|
| Surveyor 2.0 is only available in Trainz Plus and TRS22 Platinum |
|
 |
When a layer is deleted any objects bound to that layer will have their Bound Layer reset to <none> |
During the running of a Session in Driver Mode visible layers can be hidden and invisible layers revealled according to the events that occur during the Session.
 |
 |
The two Driver Mode scenes shown on the left illustrate this feature.
|
| This effect could be achieved in two different ways:- |
 |
A Driver Command - specific to a particular driver, or |
 |
A Session Rule - specific to a particular driver, consist, or any driver/consist |
Using a Driver Command
The driver command
Layer Control hides and shows named layers.
 |
| The sequence of events in this example will be:- |
 |
The train will drive to the named station |
 |
It will wait for 30 seconds |
 |
The assets held in or bound to the named layer will be hidden from view (or shown) |
|
|
Using Session Rules
 |
Rules Used:
|
 |
Session Editor Screenshot:
|
 |
Description:
|
| In this example:- |
The Trackside Check Rule is triggered when a specific train comes to a stop at a trackmark. This then executes the following rules in order:-
 |
The Show/Hide Layer Rule is used to hide the layer named "People". Four passengers (three standing and one seated) are hidden |
 |
The Show/Hide Layer Rule is used to hide the layer named "CNJCartsFull". The boxes and mail bags on the three platform trolleys are hidden |
 |
The Message Popup Rule is used to place a message on the screen informing the player that the passengers and mail have been loaded |
|
Trainz Wiki
 |
More Tutorials and Guides to Using Trainz
|
This page was created by Trainz user pware in June 2018 and was last updated as shown below.