CCG/Kind: TurnTable

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

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

Contents

KIND: TURNTABLE

This is a turntable object.

Config.txt:

kuid                <KUID2:####:#####:1>
kind                "turntable"
mesh-table
{
  default
  {
    mesh            "turntablebase/turntablebase.im"
    auto-create     1
  }
  turntable
  {
    mesh            "platform/platform.im"
    auto-create     1
  }
}
light               1
angle               0,165,180,345
track               <KUID:-1:100966>
snapmode            2
dighole             3,3
kuid-table
{
  0                 <KUID:###:#####>
}
username            "my tunnel"
description         "blah blah"
trainz-build        2.7
category-class      "TR"
category-region     "AU"
category-era        "1980s"

Breakdown:

type
Surveyor type.
region
Surveyor region.

default (Previously mode0 for pre-TRS releases)

The name of the main turntable object, now referenced from the mesh-table.

turntable (Previously mode1 for pre-TRS releases)

Name of the rotating turntable part, now referenced from the mesh-table.
light
Sets lighting to be used for object to be ambient or directional. 0 sets ambient lighting and object is lit by general light value (uniform colouring), 1 sets directional light which is affected by the position of the sun (shows shadows on the object surfaces).
angle
Specifies the angles at which the turntable stops. NOT USED IF THE TURNTABLE IS SET UP AS AN ANIMATION SEE BELOW.
track
Kuid for track to be attached to turntable
snapmode
Specifies the alignment of the turntable to the surveyor grid. 1 = origin snaps to grid (use for removing even dighole values), 2 = origin snaps to the center of a grid square (use for odd dighole values).
dighole
Specifies the number of grid segments (length, width) to be removed from the surveyor grid to accommodate the turntable pit.

ANIMATED TURNTABLES

Turntables can now be set up as an animation. Keyframes can be specified as the stopping points much like `angles' above. Use attached-tracks at keyframe points.

keyframes
Specifies where on the animation the turntable is to stop.
frame-rate
Generally make this 30


Example

The example below shows the entries using an animation file for a transfer table model. For a sample model, see: http://www.auran.com/TRS2004/downloads/contentcreation/TransporterTestAsset.zip

kuid               <KUID:44179:60004>
light              1
kind               "turntable"
username           "transporter"
track              <KUID:-1:100966>
snapmode           1
dighole            4,8
keyframes          0,100,201,300,400,601
looping            0
frame-rate         30
nightmode          "home"
mesh-table
{
   default
   {
      mesh         "trans_base/trans_base.im"
      auto-create  1
   }
   turntable
   {
      mesh         "trans_platform/trans_platform.im"
      anim         "trans_platform/anim.kin"
   }
 }
 Etc.


Return to CCG Index

Content Creator's Guide

Personal tools