CCG/Example: Scenery

From TrainzOnline
< CCG
Jump to: navigation, search

Note: This page describes describes only a small subset of the possible tags for a Scenery asset. The up-to-date documentation of this format is KIND Scenery. Discussion of LOD, seasons and other important topics is missing from this example.


Contents

Scenery

Directory Structure

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

CCG scenery dir1.jpg


Required Files

config.txt - The config file for the asset.

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

various.tga, various.texture.txt - The texture files used for this scenery object. See the section on Texture.txt files on Page 96 for more information.

factory_3.wav - The sound file.

ger_warehouse.im - The mesh file for the main model.

ger_warehouse_nightwindows.im - The nightwindows mesh file, in a subdirectory.


Config.txt File Listing

kind                   "scenery"
username               "testScenery"
light                  1
nightmode              "lamp"
kuid                   <kuid:171456:100068>
trainz-build           2.5
description            "Test Scenery object based on the inbuilt German Factory."
category-class         "BI"
category-region        "00"
category-era           "1970s;1980s;1990s;2000s"
smoke0
{
  attachment           "a.smoke0"
  mode                 "timeofday"
  color                100,100,100,250
  accel                1,0.3,0
  start                0.25,0.5
  period               0
  rate                 4
  velocity             1.25
  lifetime             2
  minsize              0.5
  maxsize              1
}
  
soundscript
{
  daysingle
    {
      repeat-delay     0,0
      distance         2,150
      sound
       {
        0              "factory_3.wav"
       }
    }
}
  
mesh-table
{
  default
    {
      auto-create      1
      mesh             "ger_warehouse.im"
      effects
      {
       0
        {
          kind         "name"
          att          "a.name0"
          fontcolor    0,0,0
          fontsize     0.28
          name         "name"
        }
      }
    }
  night
    {
      mesh             "ger_warehouse_nightwindows/ger_warehouse_nightwindows.im"
      night-mesh-base  "default"
    }
}
  
thumbnails
{
  0
    {
      image            "thumb.jpg"
      width            240
      height           180
    }
}


If animation were to be included, the animation file anim.kin would be placed in the directory, and the mesh table entries would be as below, with the animation playing immediately the asset is placed in Surveyor.

mesh-table
{
  default
    {
      auto-create       1
      mesh              "ger_warehouse.im"
      anim              "anim.kin"
      animation-loop-speed  1
    }
}
etc


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