CCG/Track
(New page: ==KIND: TRACK== ===Description=== Variable length spline based track, roads, and other scenery items. Tracks may include initiator and terminator segments, and are height adjustable. Oth...) |
|||
Line 1: | Line 1: | ||
+ | <font color=red>'''Note: This page describes obsolete asset formats (trainz-build prior to 2.9) and should be removed. The current equivalent of this format is [[KIND Track]].'''</font> | ||
+ | |||
+ | |||
+ | |||
==KIND: TRACK== | ==KIND: TRACK== | ||
Latest revision as of 17:18, 15 June 2011
Note: This page describes obsolete asset formats (trainz-build prior to 2.9) and should be removed. The current equivalent of this format is KIND Track.
Contents |
[edit] KIND: TRACK
[edit] Description
Variable length spline based track, roads, and other scenery items. Tracks may include initiator and terminator segments, and are height adjustable. Other uses for this kind include fences, power lines and hedges.
[edit] Container Structure
A well formed track kind has the following container structure:
See Chapter 7 for an example asset of this kind.
A TYPICAL ASSET OF THIS KIND MAY HAVE THE FOLLOWING TAGS:
track bendy data carrate data casts_shadows data endlength data grounded data isroad data istrack data length data repeats data rgb data shadows data upright data visible-on-minimap data invisible data width data kuid kuid trainz-build data category-class data category-region data category-era data username data kind data bridgetrack kuid height data trackoffsets data kuid-table 0 kuid thumbnails 0 image file width data height data
[edit] TAGS AND CONTAINERS
The following tags are further defined in Chapter 5:
- kuid
- Generated automatically by Content Manager.
- trainz-build
- Automatically set to 2.7 for TC assets.
- category-class
- Should be "TR – Rails". See the "Track" 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 "track".
- rgb
- This value should be left as default.
[edit] Additional Containers
As well as containing all of the common tags and containers detailed in Chapter 5 , the track kind also contains additional containers and tags that are specialised to the requirements of the kind.
[edit] Additional Tags
- bendy
- Switches how track is bent on corners, set as 1 allows the mesh to be deformed as the spline is bent around corners.
- carrate
- Defines traffic density on road (minimum seconds between each car generated).
- 0 = No traffic.
- Number must be greater than 3, for traffic to flow.
- casts_shadows
- Toggles whether the shadow model is displayed.
- endlength
- Length in metres of the initiator and terminator models.
- grounded
- Height in metres for the road to be offset from terrain.
- isroad
- Specifies track is a road with cars, set to 1 for cars to appear on road.
- istrack
- 0 = This is not rail track.
- 1 = This is rail track. (isroad must be 0 or omitted)
- length
- Length of track segment in metres.
- repeats
- The number of times the mesh is placed between spline points
- shadows
- Leave as default 0 (unticked box).
- upright
- Specifies whether the bridge "legs"
- 0 = perpendicular to the spline.
- 1 = point vertically,
- visible-on-minimap
- Specifies if the object\track is displayed on the minimap.
- width
- Width of track mesh in metres.
- bridgetrack
- Kuid for the type of rail or road used on bridge.
- height
- Height in metres from the track level to the base, should be negative.
- trackoffsets
- Distance in metres the rail/s are attached to the center of the spline. Any number of tracks can be attached to the spline, only splines with the same track offsets can be connected together.
- divider
- Name of the model to use as the middle bridge section. Placed in a subfolder with same name. dont-flip-terminator Terminator model isn't mirrored on one side.
- hidden
- Prevents the spline from being rendered.
- initiator
- Name of model to use at start of bridge, placed in subfolder with same name.
- invisible
- Specifies if the object is invisible in driver or not (invisible track for planes, ships).
- terminator
- Name of model to use at end of bridge, placed in subfolder with same name.
- uncached_alphas
- This is used in certain situations to improve alpha sorting. This should only be set to 1 for tracks that use an alpha texture and are always placed flat near the ground.
[edit] kuid-table
The kuid of the track\road used in the asset should be present here, as should those of any other referenced assets.
[edit] THIS KIND SUPPORTS THE FOLLOWING:
- CONTAINERS
- Track Sound, 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.
- TAGS
- bendy, carrate, casts_shadows, endlength, grounded, isroad, istrack, length, repeats, rgb, shadows, upright, visible-on-minimap, width, kuid, trainz-build, category-class, category-region, category-era, username, kind, alias, author, category-keyword, contact-email, contact-website, description, description-cn, description-cz, description-de, description-es, description-fr, description-it, description-pl, description-nl, description-ru, divider, dont-flip-terminator, hidden, initiator, invisible, license, light, organisation, terminator, uncached_alphas, username-cn, username-cz, username-de, username-es, username-fr, username-it, username-nl, username-pl, username-ru.