How to Use Portals: Difference between revisions

From TrainzOnline
Jump to navigationJump to search
Pware (talk | contribs)
Pware (talk | contribs)
Line 167: Line 167:
<table width=996 bgcolor=#ffffff cellpadding=2>
<table width=996 bgcolor=#ffffff cellpadding=2>
<tr valign="top">
<tr valign="top">
<td width=35>[[image:Information.png|35px|link=]]</td>
<td><span style="font-size: 15px;">'''Surveyor 2.0''' is currently only available for '''Trainz Plus''' and '''TRS22 Platinum Edition'''</span></td>
<td><span style="font-size: 15px;">'''Surveyor 2.0''' is currently only available for '''Trainz Plus''' and '''TRS22 Platinum Edition'''</span></td>
</tr>
</tr>

Revision as of 23:00, 15 April 2025

The information in this Wiki Page applies to TANE, TRS19, Trainz Plus and TRS22.

Portals are track objects that can add and remove trains during the running of a Session
Portals can be used to move trains from one part of a Route to another


  Top   Next Down Bottom

What is a Portal?

Portals come in a variety of forms - some resemble tunnels and others look like a section of normal track. One portal is a Track Marker.

The basic portals supplied with Trainz can be configured to:-

remove trains that are sent to them or pass through them (the portals that look like track can be used to let certain trains pass through while "swallowing" others).

The removed trains can be:-

removed permanently, or
returned to the Session through the same portal or another portal after a set time delay
add new trains to the Session. The new trains:-
will have drivers with orders to follow
can be randomly selected from available consists


Portals can be "enhanced" by using Session Rules that add additional features and capabilities


Enhanced portals can have features such as:-
adding new trains to the Session according to a set schedule ranging from once only, once per day or at set clock times
varying the drivers of added trains and their commands according to a set schedule
varying the consists of added trains


Adding a Portal

 In Surveyor Classic (S10) 

The quickest way to find all the train producing and consuming portals in the Surveyor Object Tool window is to set up a search filter. This will sort the portals you want from all the objects named "portal" such as tunnel portals.
Steps: To find a Portal in Content Manager:-
Set an advanced search filter by:-
Pressing  Ctrl  +  Shift  +  F 
 Left Click   +  and add the filter  Name  and enter Portal (upper/lower case is not important) in its text entry box
 Left Click   +  and add the filter  Category  and its sub-category Industry
The Objects selection window will now show only those objects that match your search criteria.
Open the Object Tools "fly-out" (or press the  F3  key)
The objects list will show all scenery assets that meet your entered search


The portals will NOT work correctly if the Trainz Settings - Dev Tab - Compatibility mode: from the Trainz Launcher is set to Maximize performance. This setting should be left at Maximize compatibility

 In Surveyor 2.0 (S20) 

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Surveyor 2.0 is currently only available for Trainz Plus and TRS22 Platinum Edition


Steps: To find a Portal in the Assets Palette:-
In the Filter Palette  Left Click  on the Scenery Objects icon or select Scenery Objects from the Content Drop Down box
Notes:

If both the Filter Palette and Assets Palette are not shown on the screen, then:-

Windows Menu
open the  Window Menu from the menu icons at the top of the screen
If either palette does not have a next to its name then  Left Click  on the palette name to add a and make it visible
If the palettes have ticks but are not visible then check the minimised area at the bottom of the list where Mini Map is located. If their names appear there then they have been minimised. To restore the palettes to the screen  Left Click  on the palette names in the minimised area, NOT in the palette area above.


In the Assets Palette enter the text "portal" (UPPER/lower case does not matter) into the  Search  text box
 Left Click  on an entry to select it. If you are not sure about an asset then  Double Left Click  on the name to bring up its image and description
 Left Click  in your Trainz World to add the portal to the scene


Portal Context menu S20
Steps: To open the Properties window of an asset, including a Portal, in Surveyor 2.0
 Left Click  on its Context Icon as shown in the image left
 Left Click  on  Edit Properties  to configure the portal
  Top Next Up Next Down Bottom

Configuring a Basic Portal

Open the properties window of a portal in the route.


Settings:

This portal is set to:-

Produce a train every 15 minutes (but the train consist has not yet been specified)
Consume all trains that are sent to the portal or pass through the portal
The consumed trains will not be returned to the Session

Notes:

In TRS19, Trainz Plus and TRS22 the time entered is in real minutes as determined by an external clock and not according to the Trainz Clock Time which may be set to run at a higher speed (e.g. 10X normal).


Produce Trains

Steps: To add consists to be produced by the portal:-
Produce new trains
set the desired time interval (in minutes) between the trains
 Left Click  the link Add new consist


Steps: To manually add rolling stock objects:-
 Left Click  to manually construct a consist from the Session rolling stock list
 Left Click  Add driver to consist to add a driver from the Session list
 Left Click  Add an existing saved consist to add a saved consist from those that you have already saved as Train Consist Assets


Construct a Consist


Settings:

For each vehicle in the consist you can specify:-

how many to add (they will be coupled together)
the direction the vehicle(s) will face

You can also:-

delete vehicles or the entire consist
insert additional vehicles inside the consist
add additional vehicles at the end of the consist
Notes:

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 the first vehicle in the list will be the first vehicle produced by the portal
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 it is NOT possible to easily reorder the vehicles in a consist
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 to add more of the same vehicles in a different location in the consist, add the vehicles as a separate entry in the list
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 add another consist and driver by a  Left Click  on the Add new consist link again


Add a Saved Consist

If you have already saved your consists in Trainz using the Trainz Tool then those consists can be quickly and easily added to the portal consist list.

Steps: To add a saved consist to a portal:-
Scroll through the list to find the saved consist
Select the consist, then either:-
 Left Click  the icon to accept the selection and load it into the portal consist list, OR
 Left Click  the icon to reject the selection and return to the previous screen


Add a Driver


Settings:

You can:-

Select a new driver and icon
Rename the driver
Add driver commands
Delete the driver

For information on adding driver commands see the Trainz Wiki Page at:-


Consume Trains

To remove trains from the Session


Choices:

Consume trains then either

Accept all trains to remove any and all trains that enter the portal, OR
Accept trains matching specific criteria to only remove certain trains that enter the portal

For "dead end" portals (those that have no exit) the Accept all trains option is the option that should be used


Consume Only Specific Trains

After selecting the option Accept trains matching specific criteria a new set of controls will appear


Settings:

Accept trains matching specific criteria

You can set any one, any two or all three of the consist selection criteria
Any train that matches the entered settings will be removed from the Session as it enters the portal, other trains will be ignored

Control Options:-

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Specific Vehicles - normally used to specify just one particular train in the Session
You must select, from the Session list, the exact name given to a vehicle. This is the name that has been entered into the property window of that vehicle
The order of the vehicles, if there is more than one, is not important
You only need to select enough names to correctly identify the consist that contains the vehicle or vehicles (the locomotive name is usually sufficient)
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Vehicles Types - normally used to specify a number of different trains in the session e.g. all trains with a particular type of coal wagon
You must select, from the Session list, the general name of the type of vehicle or vehicles - this is the name shown in the Trains Tool when the vehicle is added to a layout
If you have identified Specific Vehicles (above) then you would normally not need to set this option
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Drivers - used to specify trains driven by particular drivers
Select the driver or drivers from the Session driver list
If your drivers change trains or consists during a Session then it may be useful to combine this with one of the other two options


An example:-

Notes:

In this example, the portal will remove any train that:-

Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 contains locomotive BR HST 125 with the running number 253007
OR has any of the following vehicles:-
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 BR HST MK3 TF with any running numbers
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 BR HST MK3 TRUK with any running numbers
OR is driven by any of the following drivers:-
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Alan
Error creating thumbnail: /bin/bash: line 1: /usr/bin/convert: No such file or directory Error code: 127 Andrea


Return Consumed Trains

A train that has been returned after entering a portal will return to the Session with any remaining driver commands still in its Driver Schedule. It will then immediately start obeying those commands


To return consumed trains back into the Session




Settings:

To return the train from a different portal:-

Set Train returns through alternate portal, and
Enter the exact name of the alternate portal


Settings:
Set Train returns after ... and
 Double Left Click  on 5 real minutes to set the time delay (in real minutes, not Trainz Clock minutes) between the train being consumed and produced, then select one option from:-
Choices:
Train is not loaded or unloaded - no changes will be made to the loads carried in each vehicle
Train is loaded only - each vehicle will be loaded when it exits the portal
Train is unloaded only - each vehicle will be unloaded when it exits the portal
Empty trains are loaded, other trains are unloaded - vehicles that are empty when entering the portal will be loaded when they exit the portal, all other vehicles will be unloaded


If the driver command that sent a train to the consuming portal was the final command in its schedule, then it will emerge from the portal with an empty Driver Schedule. It will come to a halt immediately after leaving the portal.


  Top Next Up   Bottom

Configuring an Enhanced Portal

There are a number of portals available on the DLS that have additional features or capabilities that are not found in the basic portals built into Trainz. There are also Session Rules available on the DLS that will give additional features or capabilities to the basic portals.

Quick Portal Manager Standard Edition Rule (SP2 and later)

This is a Session Rule, by pguy, that manages the portals and adds flexible timetables to their operations. It is available on the DLS.
  • <kuid2:61392:5011:45> - correct at the time this document was written

Portals and the UDS (Unified Driver Surveyor) Interface

The UDS is an option for rapid switching, in both directions, between Driver and Surveyor. It is available in TRS19 Platinum Edition and later versions of Trainz. The UDS does not affect the operation of portals but it has revealed one previously unnoticed property of portals.

A train that is driven into a portal and later returned to the layout will be returned in the same layer as the portal and not in the trains originally assigned layer. Trains that are produced by a portal will be assigned to the same layer as the portal. This has  possibly always been the case with portals  but was probably unnoticed until the arrival of the UDS. It seems to have no other noticeable effect on trains.

This could become an issue if you make the switch from Driver to Surveyor after a train has been returned to the layout from a portal. For example, if a train is originally in a Session Layer then it is part of a Session. If it is returned from a portal then it will now be in a Route Layer and will be part of the Route. If you then switch from Driver to Surveyor and save the Route then the train will be saved in the Route not in the Session. If this is an issue then the remedy is to open the property dialogue window of any wagon in the train after it has left the portal and change its assigned layer to the correct one. This will set all vehicles in that train to the same correct layer.


  Top Next Up    


Trainz Wiki

More Tutorials and Guides to Using Trainz


This page was created by Trainz user pware in July 2018 and was last updated as shown below.