KIND Product

From TrainzOnline
Revision as of 13:06, 27 July 2013 by Fabartus (Talk | contribs)

Jump to: navigation, search

Contents

Product data type tag

KIND Product defines a "product type" for use with Trainz interactive industries. Products are not directly placeable within the game, but KIND Industry, KIND Traincar may be configured to consume, produce, or contain the various product types. Individual product instances may be visible to the user in-game.


KIND Hierarchy

Parent Classes

Child Classes

  • none.


Supported Tags

The KIND Product config.txt file supports the following tags. Each tag is show here with its default value.

instance-type "resource"
mass 0.0
product-category <NULLKUID>
product-texture ""
icon-texture ""
allows-mixing 0


instance-type

The instance-type tag describes how products of this type are instanced within a product queue and may be one of the following values:
resource This indicates that instances of this product type are uniform, and that the software can track this product with a total number rather than a description of each instance.
  • This is by far the most efficient 'instance-type' and should be used unless there is a very strong reason to use another type.
instance This indicates that each instance of this product is of a specific sub-type. The subtype is assigned randomly when the instance is first created, but is preserved as the instance is moved from queue to queue throughout the system.
  • Queues of this instance-type are currently limited to 254 instances for performance reasons.
unique This indicates that each instance of this product is a true gamescript object. The object is preserved as the instance is moved from queue to queue throughout the system.
  • Queues of this instance-type are currently limited to 4 instances for performance reasons.

mass

Determines the mass (in kilograms) of a single unit (or, single instance) of this product. This is used when calculating the mass of a loaded KIND Traincar instance.


product-category

Each product type may be assigned to a single KIND Product-category.


product-texture

The product-texture tag allows the specification of a local texture file to use when this product is visible as a bulk load. (TBD: link to product queue description.)


icon-texture

The icon-texture tag defines an icon which is used when referring to this product in-game, for example in a KIND Industry configuration panel.


allows-mixing

If set to '1', this product type may be mixed with other products in a single product queue. This is appropriate for some classes of boxed goods, for example, but not appropriate for most gases, liquids, or solid bulk loads such as gravel or coal.


Downloads

Attach sample files here

This section is a stub. You can help TrainzOnline's other users by adding to the content in this section or page. If you unfamiliar with Wiki editing, see the How-to-edit pages.


Categories

Personal tools