CCG/Example: TurnTable (Animated)

From TrainzOnline
< CCG
Jump to: navigation, search

Contents

Turntable (Animated)

Directory Structure

A typical asset of this kind has the following File\Directory Structure:

CCG turntable animated dir1.jpg


This is a transfer turntable, that has a moveable platform.


Required Files

config.txt - The config file for the asset.

thumb.jpg - The thumbnail image for this asset. A 240x180 jpeg.

various.tga - The texture graphic files for the various textures used in the asset.

various.texture.txt - The texture.txt files for the various textures used in the asset, usually generated when the model is exported. See the section on Texture.txt files on Page 96 for more information.

idle.wav - The sound file used in the asset.

trans_base.im, trans_base_night.im, trans_turntable.im, trans_platform_night.im - The indexed meshes used for the asset.

anim.kin - The animation file used for the asset.


Config.txt File Listing

kuid                          <kuid2:171456:60019:1>
light                         1
kind                          "turntable"
username                      "Test Transfer Table"
category-class                "TR"
height-range                  -10,30
snapmode                      1
dighole                       6,6
keyframes                     0,80,160,240,320,400,480,560,640,720
looping                       0
frame-rate                    30
nightmode                     "home"
description                   "A test model for a locomotive transfer table with 10 tracks, track spacing 5 metres. 
                              The table has catenary wire placed on the moving bridge. This is a basic model, with
                              night lighting. The table may be rotated in 90 degree increments only, in order to 
                              cover the blue hole created in the scenery for the pit.  
                              The model is for use in TRS only. "
category-era                  "1990s;2000s"
trainz-build                  2.9
category-region               "AU"
attached-track
{
  in_track0
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.itrack0a"
          1                   "a.itrack0b"
        }
    }
  out_track0
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack0a"
          1                   "a.otrack0b"
        }
    }
  out_track1
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack1a"
          1                   "a.otrack1b"
        }
    }
  out_track2
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack2a"
          1                   "a.otrack2b"
        }
    }
  out_track3
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack3a"
          1                   "a.otrack3b"
        }
    }
  out_track4
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack4a"
          1                   "a.otrack4b"
        }
    }
  out_track5
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack5a"
          1                   "a.otrack5b"
        }
    }
  out_track6
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack6a"
          1                   "a.otrack6b"
        }
    }
  out_track7
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack7a"
          1                   "a.otrack7b"
        }
    }
  out_track8
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack8a"
          1                   "a.otrack8b"
        }
    }
  out_track9
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack9a"
          1                   "a.otrack9b"
        }
    }
  out_track10
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack10a"
          1                   "a.otrack10b"
        }
    }
  out_track11
    }
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack11a"
          1                   "a.otrack11b"
        }
    }
  out_track12
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack12a"
          1                   "a.otrack12b"
        }
    }
  out_track13
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack13a"
          1                   "a.otrack13b"
        }
    }
  out_track14
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack14a"
          1                   "a.otrack14b"
        }
    }
  out_track15
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack15a"
          1                   "a.otrack15b"
        }
    }
  out_track16
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack16a"
          1                   "a.otrack16b"
        }
    }
  out_track17
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack17a"
          1                   "a.otrack17b"
        }
    }
  out_track18
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack18a"
          1                   "a.otrack18b"
        }
    }
  out_track19
    {
      useadjoiningtracktype   0
      track                   <kuid:-3:10122>
      vertices
        {
          0                   "a.otrack19a"
          1                   "a.otrack19b"
        }
    }
}
  
mesh-table
{
  default
    {
      mesh                    "trans_base/trans_base.im"
      auto-create             1
    }
  default-night
    {
      mesh                    "trans_base_night/trans_base_night.im"
      night-mesh-base         "default"
    }
  turntable
    {
      mesh                    "trans_platform/trans_platform.im"
      anim                    "trans_platform/anim.kin"
    }
  turntable-night
    {
      mesh                    "trans_platform_night/trans_platform_night.im"
      att                     "a.platform_origin"
      att-parent              "turntable"
      night-mesh-base         "turntable"
    }
}
  
soundscript
{
  dayloop
    {
      repeat-delay            0,0
      distance                20,100
      attachment              "a.platform_origin"
      sound
        {
          0                   "idle.wav"
        }
    }
}
  
kuid-table
{
  0                           <kuid:-3:10122>
}
  
thumbnails
{
  0
    {
      image                   "thumb.jpg"
      width                   240
      height                  180
    }
}


Download this asset

This asset is available for download from the TRS2006 website at:

http://files.auran.com/TRS2006/Downloads/Example_Download.zip


Return to CCG Index

Content Creator's Guide

Kind Examples

Personal tools