How to Use Driver Setup Rule
m |
m |
||
Line 244: | Line 244: | ||
*Click on the '''driver name''' to type in a new name for this driver (this will '''not''' change the driver icon). | *Click on the '''driver name''' to type in a new name for this driver (this will '''not''' change the driver icon). | ||
*Click on '''Autodetect''' to select a new owner for this driver and loco. There are four "owner" options:- | *Click on '''Autodetect''' to select a new owner for this driver and loco. There are four "owner" options:- | ||
− | #'''AI driver''' - this train will be under AI control even if it has no ''Command Bar'' orders to follow. This can be used to prevent a user from taking control of the train. | + | #'''AI driver''' - this train will be under AI control even if it has no '''Driver Command Bar''' orders to follow. This can be used to prevent a user from taking control of the train. |
− | #'''Autodetect''' - if the train has ''Command Bar'' orders then it will be under AI control. If it has no ''Command Bar'' orders then it will be under user control. | + | #'''Autodetect''' - if the train has '''Driver Command Bar''' orders then it will be under AI control. If it has no '''Driver Command Bar''' orders then it will be under user control. |
#'''First Human Player''' - the train will be assigned to the user or a multiplayer, whoever selects it first. | #'''First Human Player''' - the train will be assigned to the user or a multiplayer, whoever selects it first. | ||
#'''Multiplayer Driver''' - the train will be assigned to a multiplayer. | #'''Multiplayer Driver''' - the train will be assigned to a multiplayer. | ||
Line 268: | Line 268: | ||
<tr valign="top"> | <tr valign="top"> | ||
<td width="560">[[file:DriverSetupAddCommand.JPG|link=]]<br> | <td width="560">[[file:DriverSetupAddCommand.JPG|link=]]<br> | ||
− | Shown below is a ''Command Bar'' after two | + | Shown below is a '''Driver 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.<br> |
[[file:DriverSetupAddedCommand.JPG|link=]] | [[file:DriverSetupAddedCommand.JPG|link=]] | ||
</td> | </td> | ||
Line 279: | Line 279: | ||
<td>[[file:Steps.PNG|link=]]</td> | <td>[[file:Steps.PNG|link=]]</td> | ||
<td><span style="font-size: 17px;">'''Steps:'''</span><br> | <td><span style="font-size: 17px;">'''Steps:'''</span><br> | ||
− | #Click the small "double chevron" icon shown in the image on the left. This will open a Command List menu which will show the driver commands that can be added to this drivers ''Command Bar''. | + | #Click the small "double chevron" icon shown in the image on the left. This will open a Command List menu which will show the driver commands that can be added to this drivers '''Command Bar'''. |
− | #Click on a command to add it to the ''Command Bar''.</td> | + | #Click on a command to add it to the '''Driver Command Bar'''.</td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 311: | Line 311: | ||
<tr valign="top"> | <tr valign="top"> | ||
<td>[[file:NotePad.PNG|link=]]</td> | <td>[[file:NotePad.PNG|link=]]</td> | ||
− | <td> | + | <td>When a driver command has been executed in '''Driver Mode''' by the Trainz AI system, it will be deleted from the '''Driver 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.</td> |
− | 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.</td> | + | |
</tr> | </tr> | ||
</table> | </table> | ||
==Deleting Driver Commands== | ==Deleting Driver Commands== | ||
− | To remove a command from the ''Command Bar''... | + | To remove a command from the '''Driver Command Bar'''... |
<table> | <table> | ||
<tr valign="top"> | <tr valign="top"> | ||
Line 331: | Line 330: | ||
<td><span style="font-size: 17px;">'''Steps:'''</span><br> | <td><span style="font-size: 17px;">'''Steps:'''</span><br> | ||
#Click on the command and hold down the left mouse button | #Click on the command and hold down the left mouse button | ||
− | #Drag the command out of the ''Command Bar '' area</td> | + | #Drag the command out of the '''Driver Command Bar''' area</td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 357: | Line 356: | ||
<tr valign="top"> | <tr valign="top"> | ||
<td>[[file:DotPoint.JPG|link=]]</td> | <td>[[file:DotPoint.JPG|link=]]</td> | ||
− | <td>''' | + | <td>The '''Repeat''' command is only available when at least one command is present in the '''Driver Command Bar'''. Only one '''Repeat''' command can be added to a ''Driver Command Bar'''. |
</tr> | </tr> | ||
</table> | </table> | ||
Line 368: | Line 367: | ||
<td>[[file:Steps.PNG|link=]]</td> | <td>[[file:Steps.PNG|link=]]</td> | ||
<td><span style="font-size: 17px;">'''Steps:'''</span><br> | <td><span style="font-size: 17px;">'''Steps:'''</span><br> | ||
− | #Click the ''Add Command'' button on the ''Command Bar'' | + | #Click the '''Add Command''' button on the '''Driver Command Bar''' |
#Select the '''Repeat''' option | #Select the '''Repeat''' option | ||
</td> | </td> | ||
Line 387: | Line 386: | ||
<tr valign="top"> | <tr valign="top"> | ||
<td>[[file:DotPoint.JPG|link=]]</td> | <td>[[file:DotPoint.JPG|link=]]</td> | ||
− | <td> | + | <td>The '''Repeat''' icon will '''always''' be placed at the end of the '''Driver Command Bar''' after the '''Add Command''' button |
</tr> | </tr> | ||
</table> | </table> | ||
Line 393: | Line 392: | ||
<tr valign="top"> | <tr valign="top"> | ||
<td>[[file:NotePad.PNG|link=]]</td> | <td>[[file:NotePad.PNG|link=]]</td> | ||
− | <td> | + | <td>As each command is executed by the Trainz AI system, it will be deleted from the front of the command list and added to the end of the list to create an "endless loop" of commands.</td> |
− | As each command is executed by the Trainz AI system, it will be deleted from the front of the command list and added to the end of the list to create an "endless loop" of commands.</td> | + | |
</tr> | </tr> | ||
</table> | </table> | ||
Line 423: | Line 421: | ||
<td>[[file:Bug.png|link=]]</td> | <td>[[file:Bug.png|link=]]</td> | ||
<td><span style="font-size: 17px;">'''Known Issues:'''</span><br> | <td><span style="font-size: 17px;">'''Known Issues:'''</span><br> | ||
− | If a '''Repeat''' command is present in the ''Command Bar'' and all the other commands are then deleted, the '''Repeat''' command will remain in the ''Command Bar'' and cannot be removed. Because there are no other commands to be repeated this will not cause a problem. However when later adding new commands the presence of the '''Repeat''' command can be easily overlooked. | + | If a '''Repeat''' command is present in the '''Driver Command Bar''' and all the other commands are then deleted, the '''Repeat''' command will remain in the '''Driver Command Bar''' and cannot be removed. Because there are no other commands to be repeated this will not cause a problem. However when later adding new commands the presence of the '''Repeat''' command can be easily overlooked. |
<table cellpadding="4" bgcolor=#bbffbb width="640"> | <table cellpadding="4" bgcolor=#bbffbb width="640"> | ||
<tr valign="top"> | <tr valign="top"> | ||
<td>[[file:Spanner.PNG|link=]]</td> | <td>[[file:Spanner.PNG|link=]]</td> | ||
<td><span style="font-size: 17px;">'''Workaround:'''</span><br> | <td><span style="font-size: 17px;">'''Workaround:'''</span><br> | ||
− | Add a command (any command) to the ''Command Bar''. The '''Don't Repeat''' option will then become available and the '''Repeat''' command can be removed.</td> | + | Add a command (any command) to the '''Driver Command Bar'''. The '''Don't Repeat''' option will then become available and the '''Repeat''' command can be removed.</td> |
</tr> | </tr> | ||
</table></td> | </table></td> | ||
Line 526: | Line 524: | ||
<td>[[file:DotPoint.JPG|link=]]</td> | <td>[[file:DotPoint.JPG|link=]]</td> | ||
<td>'''The [[file:WikiLink.PNG|link=]] [[Session Rule List with Parameters#Driver Command Rule|Driver Command Rule]] controls which ''Driver Commands'' will be available in a Session.''' This applies to both:- | <td>'''The [[file:WikiLink.PNG|link=]] [[Session Rule List with Parameters#Driver Command Rule|Driver Command Rule]] controls which ''Driver Commands'' will be available in a Session.''' This applies to both:- | ||
− | * | + | *driver commands added to the [[file:WikiLink.PNG|link=]] '''[[How to Use Driver Setup Rule|Driver Setup Rule]]''' in the [[file:WikiLink.PNG|link=]] '''[[How to Use Session Editor|Session Editor]]''' in '''Surveyor Mode''', and |
− | * | + | *driver commands for the user to manually add to the '''Driver Command Bar''' of user and AI controlled trains running in '''Driver Mode'''.</td> |
</tr> | </tr> | ||
<tr valign="top"> | <tr valign="top"> | ||
Line 590: | Line 588: | ||
<tr valign="top"> | <tr valign="top"> | ||
<td>[[file:NotePad.PNG|link=]]</td> | <td>[[file:NotePad.PNG|link=]]</td> | ||
− | <td> | + | <td>In '''TANE''' some Driver Commands that have been checked ON will not appear in the '''Driver Command Bar''' if there is no target for their action. For example, no set triggers or interactive industries. |
− | + | ||
</td> | </td> | ||
</tr> | </tr> |
Revision as of 14:23, 22 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 Driver 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. |
|
When a driver command has been executed in Driver Mode by the Trainz AI system, it will be deleted from the Driver 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 Driver 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.