CCG/Example: Fixed Track (Junction): Difference between revisions

From TrainzOnline
< CCG
Jump to navigationJump to search
Pev (talk | contribs)
New page: ==Fixed Track (Junction)== ===Directory Structure=== A typical asset of this kind has the following File\Directory Structure: Image:CCG_fixedtrack_junction_dir1.jpg ===Required Fi...
 
Pev (talk | contribs)
No edit summary
 
Line 26: Line 26:


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

Latest revision as of 04:49, 9 June 2011

Fixed Track (Junction)

Directory Structure

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


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