Jump to content

Trainz/containers/member-of-groups container

From Wikibooks, open books for an open world
logo
Trainz Annotated References
TOC | BeginningsFun | AM&C | Creation | InBook Refs ORP Refs:  • Index • Containers • Kinds • Tags | Appendixes  • Vers
[e]
KINDs (type asset groups)
and containers


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>

}