How to Use Driver Setup Rule
m |
(updated control options in Driver Setup Rule) |
||
Line 83: | Line 83: | ||
==Adding New Drivers== | ==Adding New Drivers== | ||
+ | <table cellpadding="4" bgcolor=#fcbcbc> <!-- BEGIN Timeout errors --> | ||
+ | <tr valign="top"> | ||
+ | <td>[[file:Stop.PNG|link=]]</td> | ||
+ | <td><span style="font-weight: 700; font-size: 17px;">Timeout Problem in T:ANE</span><br> | ||
+ | <table cellpadding="4" bgcolor=#c1e7e7> <!-- BEGIN Dot Point --> | ||
+ | <tr valign="top"> | ||
+ | <td>[[file:DotPoint.JPG|link=]]</td> | ||
+ | <td>This is an issue in '''T:ANE'''. It has been '''FIXED''' in '''TRS19''' and '''Trainz Plus'''</td> | ||
+ | </tr> | ||
+ | </table> <!-- END Dot Point --> | ||
+ | Adding a large number of drivers to the Driver Setup can cause '''Timeout''' errors particularly if certain driver script libraries are being used. Exactly how many is a "large number" will depend on other factors.<br><br> | ||
+ | <table cellpadding="4" bgcolor=#ffffb0> <!-- BEGIN Tips --> | ||
+ | <tr valign="top"> | ||
+ | <td>[[file:PencilTips.PNG|link=]]</td> | ||
+ | <td>If '''Driver Setup Timeout''' errors are reported, then split the drivers between two copies of the '''Driver Setup Rule''' and place the second copy as a child of a [[file:WikiLink.PNG|link=]] '''[[Session Rule List with Parameters#Wait Rule|Wait Rule]]''' set for a delay of just a few seconds, as shown on the right.<br><br> | ||
+ | This gives '''Trainz''' enough time to process all the drivers in the first '''Driver Setup''' rule before starting on the second '''Driver Setup''' rule.<br><br> | ||
+ | Information on how to use Parent and Child rules can be found at [[file:WikiLink.PNG|link=]] '''[[Parent and Child Rules]]'''</td> | ||
+ | <td>[[file:DriverSetupWait.png|link=]]</td> | ||
+ | </tr> | ||
+ | </table> <!-- END Tips --> | ||
+ | </td> | ||
+ | </tr> | ||
+ | </table> <!-- END Timeout Errors --> | ||
+ | <br> | ||
+ | ===Remove Existing Drivers First=== | ||
After selecting the '''Driver Setup Rule''' and clicking the '''Edit''' button, the Driver Setup Properties Window will be shown. The image below shows the properties window if it is opened with no locomotives placed in the layout. | After selecting the '''Driver Setup Rule''' and clicking the '''Edit''' button, the Driver Setup Properties Window will be shown. The image below shows the properties window if it is opened with no locomotives placed in the layout. | ||
<table> | <table> | ||
Line 127: | Line 152: | ||
</table> | </table> | ||
<br> | <br> | ||
+ | ===Generate New Drivers for Empty Trains=== | ||
[[file:DriverSetupGenerateNew.JPG|link=]] | [[file:DriverSetupGenerateNew.JPG|link=]] | ||
<table cellpadding="4" bgcolor=#c1e7e7> | <table cellpadding="4" bgcolor=#c1e7e7> | ||
Line 152: | Line 178: | ||
</table> | </table> | ||
<br> | <br> | ||
− | <table cellpadding="4" bgcolor=# | + | ===Wait For Schedule Completion=== |
+ | [[image:DriverSetupWaitSchedule.png|link=]] | ||
+ | <table cellpadding="4" bgcolor=#eeeeee> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | ----</td> | ||
+ | </tr> | ||
<tr valign="top"> | <tr valign="top"> | ||
− | <td>[[file: | + | <td>[[file:Gears.PNG|link=]]</td> |
− | <td> | + | <td><span style="font-size: 17px;">'''Settings:'''</span><br> |
− | < | + | *If '''Checked [[file:CheckBox.PNG|link=]]''' then this '''Driver Setup Rule''' will not complete until all '''Schedule Rules''' (if any) have been completed. |
− | <tr | + | *If '''Unchecked [[file:CheckBoxOff.PNG|link=]]''' then this '''Driver Setup Rule''' will complete as soon as all its drivers have been assigned locos and commands (if any).</td> |
− | < | + | </tr> |
− | <td> | + | <tr> |
+ | <td colspan="2"> | ||
+ | ----</td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | <br> | ||
+ | ===Focus Camera on First Driver=== | ||
+ | [[image:DriverSetupFocus.png|link=]] | ||
+ | <table cellpadding="4" bgcolor=#eeeeee> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | ----</td> | ||
</tr> | </tr> | ||
− | |||
− | |||
<tr valign="top"> | <tr valign="top"> | ||
− | <td>[[file: | + | <td>[[file:Gears.PNG|link=]]</td> |
− | <td> | + | <td><span style="font-size: 17px;">'''Settings:'''</span><br> |
− | + | *If '''Checked [[file:CheckBox.PNG|link=]]''' then the Session will start with the camera focussed on the first driver in the list. | |
− | + | *If '''Unchecked [[file:CheckBoxOff.PNG|link=]]''' then the Session will start with the camera focussed on the driver that last had the camera focus in Surveyor.</td> | |
− | + | ||
</tr> | </tr> | ||
− | < | + | <tr> |
− | </td> | + | <td colspan="2"> |
+ | ----</td> | ||
</tr> | </tr> | ||
− | </table | + | </table> |
<br> | <br> | ||
− | |||
==Editing the Driver List== | ==Editing the Driver List== | ||
When drivers and trains have been added to the rule, it will appear as shown below. | When drivers and trains have been added to the rule, it will appear as shown below. |
Revision as of 07:02, 7 December 2021
The information in this Wiki Page applies to TANE, TRS19 and Trainz Plus.
Contents |
Driver Setup Rule
Main Points: | |
The Driver Setup Rule assigns drivers to consists and issues them with Driver Commands. | |
Driver Commands are lists of instructions or "orders" that drivers are tasked to complete under the control of the Trainz AI system. |
A list of available Driver Commands can be found on the Trainz Wiki Page at:- |
The Driver Setup Rule is automatically added to the Session Editor of every Session.
|
Adding New Drivers
Timeout Problem in T:ANE
Adding a large number of drivers to the Driver Setup can cause Timeout errors particularly if certain driver script libraries are being used. Exactly how many is a "large number" will depend on other factors.
|
Remove Existing Drivers First
After selecting the Driver Setup Rule and clicking the Edit button, the Driver Setup Properties Window will be shown. The image below shows the properties window if it is opened with no locomotives placed in the layout.
|
If your session uses a rule that will expect to find a particular driver in charge of a train (e.g. driver Charlie in the Trigger Check Rule) then manually assign Charlie as the driver of a train and do not select the option Remove all existing Drivers first. |
Generate New Drivers for Empty Trains
When using the Driver Setup Rule for the first time with no drivers assigned to existing trains, the Generate new Drivers for empty trains option will immediately assign drivers to each train. Each time a new train is added to the layout, it will be automatically assigned a driver. |
|
|
Settings:
|
|
|
Wait For Schedule Completion
|
|
Settings:
|
|
|
Focus Camera on First Driver
|
|
Settings:
|
|
|
Editing the Driver List
When drivers and trains have been added to the rule, it will appear as shown below.
|
Adding Driver Commands
The grey area below the driver details (name, loco, owner) is the Driver Command Bar. This is where the driving instructions (the "train orders") used by the Trainz AI system are given to the driver.
Shown below is a Command Bar after two Driver Commands have been added. Each command has its own icon. Move the mouse pointer onto a command icon to reveal a tooltip showing the contents of the command, as shown in the image. |
|
Notes: When a driver command has been executed in Driver Mode by the Trainz AI system, it will be deleted from the Command Bar and the next command in the sequence will then be executed. This will continue until the last command has been executed and deleted. Then the AI control of the train will terminate. |
Deleting Driver Commands
To remove a command from the Command Bar...
|
The "Repeat" Command
The "Repeat" command is a special built in command that allows all the driver commands to be repeated endlessly. |
|
|
|
|
Copying the Driver Setup Rule
The Driver Setup Rule (and other rules) can be copied between Sessions |
This sub-section is also available in text only format suitable for copying and pasting at Copying Rules Between Sessions TEXT |
|
|
Steps:
|
|
|
Notes: There are some conditions that must be met for this to work.
|
Driver Command Rule
Main Points: | |
The Driver Command Rule controls which Driver Commands will be available in a Session. This applies to both:-
|
|
Removing commands such as Navigate To will force players to manually drive trains when in Driver Mode instead of allowing them to use the Trainz AI system to do all the work. |
The Driver Command Rule is automatically added to the Session Editor of every Session.
|
The Rule properties window will open to show all the Driver Commands that have been installed in Trainz on your system. This list includes the commands that are built in and those that have been downloaded from the DLS.
|
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.