Vehicle-running-numbers container

From TrainzOnline
Revision as of 10:17, 6 May 2016 by Pw3r (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The vehicle-running-numbers container is an optional subcontainer used by KIND Traincar assets to define the behaviour of automatic random running-number generation. Support for this subcontainer was added in Trainz A New Era as a faster alternative to various custom scripts which attempt to do the same thing.

Contents

Supported Tags

The vehicle-running-numbers container supports the following tags. Each tag is shown here with its default value.

 running-numbers                   ""
 multiple-unit-increment-front     0
 multiple-unit-increment-rear      0


running-numbers

Type: Text
Desc: Specifies the valid running-number range(s) to randomly select from. This can be a list, a range, or any combination of both. For example:
 running-numbers                   "12345,67890,30000-31000"

This example will cause the traincar to be randomly assigned the running number 12345, 67890, or any number in between 30000 and 31000 (inclusive). Running numbers are assigned on train placement, and can be overridden using the traincar properties dialog.

multiple-unit-increment-front

Type: Integer
Desc: Used for assigning sequential/identical running numbers to multiple-unit trains. This tag indicates that the traincar should be numbered in sequence based on the *front* coupled traincar. This tag also allows an offset to be specified, so that the numbering sequence need not be contiguous (e.g. "multiple-unit-increment-rear 100" will have the vehicle set with a running number equal to the neighbouring vehicle plus 100) An offset value of 0 indicates that the running number should be copied.

multiple-unit-increment-rear

Type: Boolean
Desc: Used for assigning sequential/identical running numbers to multiple-unit trains. This tag indicates that the traincar should be numbered in sequence based on the *rear* coupled traincar. This tag also allows an offset to be specified, so that the numbering sequence need not be contiguous (e.g. "multiple-unit-increment-rear 100" will have the vehicle set with a running number equal to the neighbouring vehicle plus 100) An offset value of 0 indicates that the running number should be copied.
Personal tools