# Trainz/containers/queues container

Back to the Top
* right-passenger-door subcontainer shadow subcontainer  Next  →
* Trainz Annotated Reference Pages Trainz Asset Maintenance and Creation
* TOC | Beginnings | Fun | AM&C | Creation | InBook Refs | ORP Refs:  • Index • Containers • Kinds • Tags | Appendixes  • Vers
Glossary :
HKeys-CM :
HKeys-DVR :
HKeys-SUR :
HKeys-WIN :
Mouse use :
Notations :
The queues" Container is a top-level config.txt file entry used by various Content_Types.
The queues Container is a list of queue subcontainers (Queues) with no standalone tags.∅ Queues are used by certain asset types (such as kind industry and kind traincar) to establish runtime memory space allocation to 'hold' kind product instances, and to define the legal values of their contents.
* In essence, because product can be loaded and unloaded or produced and consumed during operations, each queue establishes variables which change dynamically in the game. These memory set asides can then be accessed and used by supporting TrainzScript code.
* Queues can make use of animated meshes or custom attachments to visually represent the amount of product they hold in game.
* Instances of queue subcontainers are represented in TrainzScript via Class_ProductQueue.
    Each queue subcontainer uses the following format:

## Supported Tags

Each queue subcontainer supports the following tags. Each tag is shown here with its default value.

### size

    Data Type: Positive Integer
    Data element description: The maximum size of the queue, in other words this is the maximum amount of product the queue can 'hold'.

### product-kuid

    Data Type: KUID
    Data element description: Used in conjunction with the 'initial-count' tag, product-kuid specifies the initial kind product type in the queue.

### initial-count

    Data Type: Positive Integer
    Data element description: Used in conjunction with the 'product-kuid' tag, initial-count specifies the initial amount of product in the queue.

### passenger-queue

    Data Type: Boolean
    Data element description: Specifies that the queue can hold passengers.

### per-hour

    Data Type: Positive Integer
    Data element description: This flag is used for passenger stations and sets the base number of passengers that will accumulate over the period of one hour.

### animated-mesh

    Data Type: String
    Data element description: Specifies the name of an animated mesh from the mesh table. This mesh is used to visually represent the amount of product in the queue while in game and should animate from empty to full.

### custom-attachments

    Data Type: String
    Data element description: Specifies that this queue has custom attachment points. Custom attachments are used in game to visually represent the amount of product in the queue. An 'attachment-points' container is used to list the custom attachments.

### attachment-points

    Data Type: String Container
    Data element description: The 'attachment-points' container lists all of the mesh attachment points used to visually represent the amount of product in the queue. When the queue is empty the meshes attached on these points will be invisible, as the queue fills they will be progressively shown. The number of attachment points cannot exceed the total queue size.

### allowed-categories

    Data Type: KUID Container
    Data element description: Lists the KUIDs of all of the kind product-category assets that can accumulate in the queue. Allowing a product category means that all products of this category are allowed, they therefore do not need to be specified in the 'allowed-products' subcontainer.
* On the other hand, using an kind kind product-category, means one must be defined which matches the limits of the industry or rolling stock asset.

#### allowed-products

Allowed-products can be considered a list of specific products when a class of products, as that specified by allowed-categories above is too broad or otherwise inappropriate.
    Data Type: KUID subcontainer
    Data element description: Lists the KUIDs of all of the various kind product assets that can accumulate in the queue.

##### example

* Listed kuids are assets of defined kind product class assets.

### conflicts-with-queues

    Data Type: String Container
    Data element description: Sets a number of queues that this queue conflicts with. If any of the conflicting queues have any product in them, then a conflictable product cannot be added to this queue.
* Otherwise, products might be added to more than one queue if they do not exclude each other.

## queues-ID

queues-ID is a placeholder for an content creator specified identifier name (so is variable). Names of identifiers (queues-ID) are used by other parts of Trainz software to identify and interact with the data initialized in the queue data structures.
* In the below examples, the role of 'queues-ID' is obvious given that each is just one single nested level of curly-braces within the queue data block (group of elements), immediately after (inside) the braces forming the boundaries of the queue block of data.
* In order of appearance in the examples below they are:
* prod0 ‌ Locomotive with two consumption queues.
* locomotive_diesel_fuel_queue
* locomotive_sand_queue ‌ Some other interesting uses...
* load
* cattle_q ‌ Passenger Station with multiple consumption and source queues...
* passengers_on_0
* passengers_on_1
* passengers_on_2
* passengers_off_0
* passengers_off_1
* passengers_off_2
* Note in the examples, the processes data structures are the same level of indentation as the queues-ID identifier.

## Examples in rolling stock
### Queues in a Stock Car

    Stock Car in this case has nothing to do with NASCAR but is the older livestock useage: sheep, pigs, cows, etc.

### Queues in a Boxcar
## Examples in industries

* These examples may have to be placed in a sub-page because of length:
Industry types involve a companion or sister container: processes container container which are presented as well below to best demonstrate the interworkings and associations.

### Consumption only Industry

This meat packing industry outputs nothing, acting as a livestock consumer.