CCG/Miscellaneous Config.txt Tags

From TrainzOnline
< CCG
Jump to: navigation, search

Note: This page describes a variety of different concepts, not all of which are tags. Descriptions here should be kept to a minimum, and the reader linked to the appropriate documentation for each concept or tag rather than attempting to repeat the details here.


MISCELLANEOUS CONFIG.TXT TAGS

There are a number of useful miscellaneous tags used in config.txt files that may not have been covered fully in previous Kind examples. A brief summary is provided for some of these here:


invisible 1
A tag only used for Kind track, the track will only show in Surveyor.
For other meshes use surveyor-only 1 to make it invisible in Driver, refer Effect Kind Attachment for an example.


trigger 1
Used for a trackside object to send script messages.


default-night-forward, default-night-reverse
This is the name for a sub mesh attached to a locomotive,to show a beam of light for example, in the direction of movement of the locomotive. Trainz recognises the name and turns on the correct mesh depending on the running direction.
Note in the example the use of auto-create 0 to make the mesh invisible when placed. The mesh will be visible when the light switch is activated.
mesh-table
{
  default
  {
    mesh          "loco_body/loco_body.lm"
    auto-create   1
  }
default-night-forward
  {
    mesh          "loco_body/night/night.im"
    auto-create   0
    att           "a.bog0"
    att-parent    "default"
  }
}


default-night
Similar to the previous tag, but not dependent on running direction.


use-parent-bounds
Used for an animated object. A bounding box is a fairly generic term used to describe the size of an object for clipping purposes. If the bounding box goes off the screen, the game will stop rendering the object. The idea is that the bounding box completely wraps the object, but this is not always the case. Animation, for example, may cause the object to pass outside its precalculated bounding box. Distance is not relevant; it's simply a question of whether the bounding box is on the screen or not.
The tag relates the sub mesh bounding box to the main mesh bounding box, and makes the animated sub mesh continuously visible. The tag is placed within the sub mesh config.txt entries


buffer-speed
Sets the upper speed limit for an object to act as a buffer. The value buffer-speed 5 sets a 5 metres per second speed as the limit for stopping a traincar. Used in a Kind mosignal object.


tender 1
Indicates the traincar is a locomotive tender. Used in the tender config.txt file to enable the tender to remain coupled with the locomotive in a runaround movement.


disable-extra-track-sounds 1
Disables the "click-clack" tracksounds. Could be used for silent shipping, planes or maglev type vehicles. Values are 0, 1 for the tag.
Note: There may be some residual tracksound for example wheel squeal. See Page 202 for an example.


Return to CCG Index

Content Creator's Guide

Personal tools