CCG/Example: TrainCar (Diesel Engine)

From TrainzOnline
< CCG
Revision as of 13:25, 27 May 2012 by Pev (Talk | contribs)

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

Contents

Traincar (Diesel Engine)

Directory Structure

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

CCG traincar diesel engine dir1.jpg . . CCG traincar diesel alpha numbers dir1.jpg


Required Files

config.txt - The config file for the asset.

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

Various digit_.....bmp and alphanumber....tga files used for the model and Alpha numbers.

gm_angreen_icon.tga - The icon texture files. 128x64 pixels in dimension.

gm_angreen_body.im, gm_angreen_shadow.im - indexed mesh files for the model and shadow

Various texture.txt files for the textures, generated when the model is exported. See the section on Texture.txt files on Page 96 for more information.


Config.txt File Listing

origin                     "AU"
engine                     1
username                   "testDieselLoco"
mass                       85000
interior                   <kuid:-1:101211>
kind                       "traincar"
fonts                      2
smoke_shade                0.18
smoke_random               2.9
smoke_slowlife             6
smoke_fastlife             0.8
smoke_height               1.7
smoke_fastspeed            3
enginespec                 <kuid:-1:42004219>
enginesound                <kuid:-1:42003000>
hornsound                  <kuid:523:54610>
description                "Test Traincar (Diesel)"
kuid                       <kuid:171456:100028>
trainz-build               2.9
category-class             "AA"
category-region            "00"
category-era               "1960s;1970s"
  
mesh-table
{
  default
    {
      mesh                 "gm_angreen_body/gm_angreen_body.im"
      auto-create          1
    }
  shadow
    {
      mesh                 "gm_angreen_shadow/gm_angreen_shadow.im"
      auto-create          0
    }
}
  
bogeys
{
  0
    (
      bogey                <kuid:-1:100009>
      reversed             0
    }
}
 
thumbnails
{
  0
    {
      image                "thumb.jpg"
      width                240
      height               180
    }
  1
    {
      image                "gm_angreen_icon/gm_angreen_icon.tga"
      width                128
      height               64
    }
}


Return to CCG Index

Content Creator's Guide

Kind Examples

Personal tools