Because of my signature "I don't drive trainz; I hire drivers", my route required a driver command to try to unload a train completely. The UnloadAll command works as the build-in Unload command. However, this new command repeats the unload process a number of times and waits some time between each unload.
UnloadAll<kuid:478639:1059>
When you select this command either in Surveyor or Driver, the command displays a submenu of five repeat options, where each option specifies a number of times to repeat the unload. The default values are 1, 2, 3, 5, and 8. Then for each of these repeat options it displays another submenu with 10 delay options where each delay option specifies the number of seconds to wait between unloads.
For example, in the config file there is a tag 'unload_2_label' that says in plain English "Unload 3 times" and a corresponding tag 'unload_2_val' that specifies the number "3".
In this way, if you decide to change the default labels and values, just change the values of the tags to whatever sentence and numeric value of your preference. The default numeric values are in ascending order but that is not required.
Similarly, a delay option has a tag label like this 'delay_3_label' to display the sentence "Wait 40 seconds" and a tag value 'delay_3_val' that specifies a numeric value of "40". Again, the default values are in ascending order but that is not required (but it looks better).
The numeric values of the delay must represent a number of seconds. For example if you decide to wait 1 year between unloads you would specify a tag value of 86400 and the label could be "Wait 1 year" or "Wait 12 months" or even, "Wait 86400 seconds".
I hope you will find this command of some use.
Cheers,
FFCCNN
UnloadAll<kuid:478639:1059>
When you select this command either in Surveyor or Driver, the command displays a submenu of five repeat options, where each option specifies a number of times to repeat the unload. The default values are 1, 2, 3, 5, and 8. Then for each of these repeat options it displays another submenu with 10 delay options where each delay option specifies the number of seconds to wait between unloads.
For example, in the config file there is a tag 'unload_2_label' that says in plain English "Unload 3 times" and a corresponding tag 'unload_2_val' that specifies the number "3".
In this way, if you decide to change the default labels and values, just change the values of the tags to whatever sentence and numeric value of your preference. The default numeric values are in ascending order but that is not required.
Similarly, a delay option has a tag label like this 'delay_3_label' to display the sentence "Wait 40 seconds" and a tag value 'delay_3_val' that specifies a numeric value of "40". Again, the default values are in ascending order but that is not required (but it looks better).
The numeric values of the delay must represent a number of seconds. For example if you decide to wait 1 year between unloads you would specify a tag value of 86400 and the label could be "Wait 1 year" or "Wait 12 months" or even, "Wait 86400 seconds".
I hope you will find this command of some use.
Cheers,
FFCCNN