CCG/TrainCar

From TrainzOnline
< CCG
Revision as of 13:51, 8 June 2011 by Pev (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

KIND: TRAINCAR

Description

A locomotive or rolling stock item. A traincar specifies the dependant assets (bogey, engine sound, engine specification, pantograph and interior), to make a complete asset.


Container Structure

A well formed traincar kind has the following container structure:

CCG traincar dir.jpg


A TYPICAL TRAINCAR KIND MAY HAVE THE FOLLOWING TAGS:

traincar
  
kuid                    kuid
trainz-build            data
category-class          data
category-region         data
category-era            data
username                data
kind                    data
engine                  kuid
mass                    data
description             data
enginesound             kuid
hornsound               kuid
enginespec              kuid
pantograph              kuid
company                 data
interior                kuid
mesh-table
default
mesh                    file
auto-create             data
shadow
mesh                    file
bogeys
0
bogey                   kuid
reversed                data
0
bogey                   kuid
thumbnails
0
image                   file
width                   data
height                  data


TAGS AND CONTAINERS

The following tags are further defined in Chapter 5:

kuid
Generated automatically by Content Manager.
trainz-build
Automatically set to 2.9 for 2009 assets.
category-class
See the "Motive Power" section of Category Class.
category-region
See Category Region for a list of valid category-region values.
category-era
See Category Era for a list of valid category-era values.
username
Asset username. This will be the name that appears in the surveyor menu.
kind
Must be "Traincar".
engine
Specifies whether the traincar is a locomotive or rollingstock item. A loco or B-unit will have the engine tag set to true.
mass
Mass in kilograms, ie "7000" (roughly 7 ton).
description
Description of model which is used for the `Railyard' information.
enginesound
References the kuid number for the traincar's sound asset.
hornsound
References the kuid number for the traincar horn sound asset.
enginespec
References the engine kuid number. This specifies the driver physics boundaries for the traincar.
pantograph
The pantograph kuid number inserted at a.pant0, a.pant1, etc. Use this tag only when needed.
company
The Locomotive or car owner, eg "QR".
interior
Kuid number of the interior, inserted at a.cabfront. This tag should only be used when required (an interior is needed when the traincar is a locomotive).


"mesh-table" Container

default

The main traincar mesh.

auto-create
Specifies that this mesh is automatically created (visible without needing to resort to a script).
shadow

The mesh model to be used as a shadow.


"bogeys" Container

The bogeys container stores the bogeys used for the loco\rollingstock item.

Sub-container 0' fixes a bogey to attachment a.bog0, sub-container 1 fixes a bogey to attachment a.bog1 and so on.

Bogey Sub-Containers

Each bogey is specified as:

bogey

The bogey kuid number

reversed
Ticking this box in CCP will make the bogey have a reversed orientation. Note: This will cause bogey animation to play in reverse, unless attachment points are rotated 180 degrees. Affects the direction of the bogey, relative to the traincar.

See Chapter 7 for an example asset of this kind.


Additional Tags

cabinsway
Cabin sway multiplier eg. -2.
disable-extra-track-sounds
Disables the "click-clack" tracksounds. (0, 1)
ditch_color
RGB ditch light colour. Eg. 255,255,255.
fonts
Indicates how many types of numbering fonts used eg.
0 = no fonts used
1 = one font Digit textures (digit_1.tga to digit_6.tga) replaced automatically with alphanumber textures (alphanumber_0 to alphanumber_9) as numbers are changed via the Surveyor Trains tab - `Edit Properties' icon (the `?' icon).
2 = two fonts Digit textures (digit_1a.tga to digit_6a.tga and digit_1b.tga to digit_6b.tga) replaced automatically with alphanumber textures (alphanumber_0a to alphanumber_9a and alphanumber_0b to alphanumber_9b) as numbers are changed via the Surveyor Trains tab - `Edit Properties' icon (the `?' icon).


fonts-path
Replaces asset-filename usage for `fonts'.
light_color
RGB headlight colour. Eg. 255,255,255.
max-coupler-gap
Maximum gap expected between couplers of this type (meters).
paintshed-skin-used
Kuid of the paintshed skin used, (if applicable).
paintshed-template-used
Kuid of the paintshed template used, (if applicable).
product-id
For paintshed support.
product-type
For paintshed support.
product-version
For paintshed support.
smoke_fastlife
Longevity of smoke particles at normal speed.
smoke_height
How hard particles are pushed out of the stack.
smoke_random
Level of particle excitation.
smoke_shade
Smoke opacity. (0 - 1)
smoke_slowlife
Longevity of smoke particles at low speed.
tender
Specifies that the traincar is a tender.


THIS KIND SUPPORTS THE FOLLOWING:

CONTAINERS
queues Container, Smoke Container, SoundScript Container, Mesh Table, String Table, Chinese String Table, Czech String Table, Dutch String Table, French String Table, German String Table, Italian String Table, Polish String Table, Russian String Table, Spanish String Table, KUID Table, Obsolete Table, Thumbnails, Privileges, Extensions, Bogeys.


TAGS
kuid, trainz-build, category-class, category-region, category-era, username, kind, engine, mass, alias, author, autoname, backlength, backpivot, buffer-speed, cabinsway, category-keyword, class, company, contact- email, contact-website, description, description-cn, description-cz, description-de, description-es, description-fr, description-it, description-pl, description-nl, description-ru, dighole, disable-extra-track-sounds, ditch_color, enginesound, enginespec, floating, fonts, fonts-path, frontlength, frontpivot, height-range, hornsound, icon- texture, icon0, icon1, icon2, icon3, interior, license, light, light_color, max-coupler-gap, nightmode, organisation, origin, paintshed-skin-used, paintshed-template-used, pantograph, preview-mesh-kuid, preview-scale, product-id, product-type, product-version, rgb, rollstep, rotate, rotate-yz-range, rotstep, script, search-limit, smoke_fastlife, smoke_fastspeed, smoke_height, smoke_random, smoke_shade, smoke_slowlife, snapgrid, snapmode, speedlimit, surveyor-name-label, surveyor-only, tender, trackmark, trackside, trigger, username-cn, username-cz, username-de, username-es, username-fr, username-it, username-nl, username-pl, username-ru.


Return to CCG Index

Content Creator's Guide

All Other Containers and Tags

Personal tools