Permanent Driver Commands

boleyd

Well-known member
There is a default list of driver commands, selected by N3V, that are part of every route. How do I add to, or remove from that list other driver instructions.
 
Good question. It's probably baked into the data somewhere we can't access without a hex editor.
 
The default driver commands are defined in <kuid:-3:10057> Driver Command (a Base asset)
The kuid-table has the kuids of the command, the tag name allowing the script to findd them.
Code:
kuid-table
{
  drive-to-command                      <kuid:-3:10058>
  load-command                          <kuid:-3:10076>
  unload-command                        <kuid:-3:10077>
  couple-command                        <kuid:-3:10081>
  decouple-command                      <kuid:-3:10082>
  drive-to-trackmark-command            <kuid:-3:10149>
  drive-via-trackmark-command           <kuid:-3:10209>
  wait-for-command                      <kuid:-3:10090>
  drive-schedule-command                <kuid:-3:10186>
  runaround-command                     <kuid:-3:10083>
  notify-command                        <kuid:-3:10078>
  stoptrain-command                     <kuid:401543:1090>
}
The script drivercommandrule.gs loads these defaults (here a partial listing)
Code:
    void FillDefaults(void)
    {
        Asset asset = GetAsset();
        
        driverCommands = new KUID[12];
        
        driverCommands[0] = asset.LookupKUIDTable("drive-to-command");
        driverCommands[1] = asset.LookupKUIDTable("drive-to-trackmark-command");
        driverCommands[2] = asset.LookupKUIDTable("drive-via-trackmark-command");
        driverCommands[3] = asset.LookupKUIDTable("drive-schedule-command");
        driverCommands[4] = asset.LookupKUIDTable("load-command");
        driverCommands[5] = asset.LookupKUIDTable("unload-command");
        driverCommands[6] = asset.LookupKUIDTable("couple-command");
        driverCommands[7] = asset.LookupKUIDTable("decouple-command");
        driverCommands[8] = asset.LookupKUIDTable("runaround-command");
        driverCommands[9] = asset.LookupKUIDTable("wait-for-command");
        driverCommands[10] = asset.LookupKUIDTable("notify-command");
        driverCommands[11] = asset.LookupKUIDTable("stoptrain-command");

        isDefault = true;
    }
Peter
 
Hi I think if in survayer you click on edit session
Then click on diver commands
then edit driver commands and untick what you dont want
Drive too etc
and tick what you want
Then save

I think this is what you need to do
This is what I do

Matt
 
Save changes
Leave that task
Later restart that task and the Drive To is no longer there.

If, however, you Save the session, leave the task and rejoin it later the Drive To remains present.
N3V just adding it to the permanent list would solve the "disappearing" command.
Of course this could be exclusive to my setup.
 
Last edited:
Back
Top