Trainz/containers/member-of-groups container
| |||
|
|||
|
The member-of-groups container is a top-level config.txt file entry which can be used by any Content_Types. This container was introduced in trainz-build 3.5 as a result of lobbying by user-content creators to provide better sorting and selection capabilities in Content Managers and TrainzUtil and is not valid in older-version Config.txt files. This means if an asset with such a container tag name is detected when an asset is retrograded, it will generate a fault message in the older version of Trainz.
The container holds a regular list of kind asset-group KUIDs. This asset will be considered as a member of each listed asset group.
If no entries are specified for a given "member-of-groups" container, or if the asset omits the "member-of-groups" container, then the simulator may specify some default asset groups based on the asset's Config.txt file. The exact behavior may change between different versions of the simulator, however the current logic is described on the N3V Wiki at Known Asset-Groups.
The actual interpretation of what membership of a given asset-group means is documented here.
"member-of-groups" Example
[edit | edit source]The following is an example of a simple member-of-groups container. This example declares the asset as a member of the 'Bridge Spline Group' and the 'Road Spline Group' (not necessarily a sensible combination.)
member-of-groups { 0 <kuid:30501:100046> 1 <kuid:30501:100045>
}
This reference page is adapted from the TrainzOnline Wiki under the CC-BY-SA 3.0 License. This page will likely include more textual explanations, exposition, history, and/or examples than the source page on the same topic. The TrainzOnline Wiki is for the most part maintained by the programmers or knowledgeable content creators and may have newer more up-to-date information on the current trainz-build code standards, which have some tendency to change as features are added to the software. |