CCG/Example: Fixed Track (Junction)

From TrainzOnline
< CCG
Revision as of 14:41, 9 June 2011 by Pev (Talk | contribs)

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

Contents

Fixed Track (Junction)

Directory Structure

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

CCG fixedtrack junction dir1.jpg


Required Files

config.txt - The config file for the asset.

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

rail_oz.texture.txt, rail-oz.tga, railsection_ger_sleepersa.tga, railsection-sleepersa.texture.txt, arrows.tga, arrows-arrows.texture.txt, switch_lever.texture.txt, switch_lever.tga - The texture files used in the indexed meshes of this asset.

See the section on Texture.txt files on Page 96 for more information.

turnout8.iml, blades.im, lever.im - The indexed meshes used to build this asset.

anim.kin - The animation files used for both the moving track blades, and the animating lever.


Config.txt File Listing

kuid                        <kuid:56113:1018>
trainz-build                2.5
category-class              "TF"
category-region             "AU"
category-era                "1980s;1990s;2000s;2010s"
username                    "testFixedTrack (Junction)"
kind                        "fixedtrack"
description                 "Test fixed track asset (Junction)."
height-range                -50,50
preview-mesh-kuid           <kuid:171456:60563>
use-gradient-track          1
mesh-table
{
  default
    {
      mesh                  "turnout8l.im"
      auto-create           1
      effects
       {
        arrow0
         {
          kind              "attachment"
          att               "a.track0a"
          default-mesh      <kuid:-3:10092>
          surveyor-only     1
         }
        arrow1
         {
          kind              "attachment"
          att               "a.track0e"
          default-mesh      <kuid:-3:10092>
          surveyor-only     1
         }
        arrow2
         {
          kind              "attachment"
          att               "a.track1b"
          default-mesh      <kuid:-3:10092>
          surveyor-only     1
         }
       }
    }
  blades
    {
      mesh                  "Blades/blades.im"
      anim                  "Blades/anim.kin"
      auto-create           1
    }
  lever1
    {
      mesh                  "Lever/lever.im"
      anim                  "Lever/anim.kin"
      auto-create           1
      att-parent            "default"
      att                   "a.lever1"
    }
}
attached-track
{
  track0
    {
      track                 <kuid:67598:38001>
      useadjoiningtracktype 0
      vertices
        {
          0                 "a.track0a"
          1                 "a.track0b"
          2                 "a.track0c"
          3                 "a.track0d"
          4                 "a.track0e"
        }
    }
  track1
    {
      track                 <kuid:67598:38001>
      useadjoiningtracktype 0
      vertices
        {
          0                 "a.track0b"
          1                 "a.track1a"
          2                 "a.track1b"
        }
      junction-vertices     0 
      junction-lever-mesh   "lever0"
      junction-vertex       "a.track0b"
    }
  1
    {
      junction-lever-mesh   "lever1"
      junction-vertex       "a.track0b"
    }
  2
    {
      junction-lever-mesh   "blades"
      junction-vertex       "a.track0b"
    }
}
kuid-table
{
  0                         <kuid:-3:10092>
  1                         <kuid:67598:38001>
  2                         <kuid:171456:60563>
}
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