CCG/Example: TrainCar (Passenger Car)

From TrainzOnline
< CCG
Jump to: navigation, search

Contents

Traincar (Passenger Car)

Directory Structure

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

CCG traincar passenger 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 - The texture graphic files for the various textures used in the asset.

various.bmp - The opacity 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.

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

mk1_rmb_br_bld_custd_body.im, mk1_rmb_br_bld_custd_body_low.im, mk1_rmb_br_bld_custd_body_lowest.im - The Level of Detail (LOD) indexed meshes for the body of this asset.

mk1_rmb_br_bld_custd_body.lm" - The LOD File for the body.

left_door.im, right_door.im - The indexed meshes for the animated doors for the asset.

left_door.kin, right_door.kin - The animations for the animated doors for the asset.

mk1_rmb_br_bld_custd_shadow.im - The shadow indexed mesh for this asset.

Config.txt File Listing

icon0                     <kuid:-3:10164>
origin                    "UK"
description               "Test Pasenger car asset."
engine                    0
mass                      28000
username                  "Test Passenger Car"
kind                      "traincar"
enginespec                <kuid:-1:42004201>
kuid                      <kuid:171456:100026>
trainz-build              2.9
category-class            "PC"
category-region           "00"
category-era              "1970s;1980s"
   
soundscript
{
  door_open
    {
      trigger             "door_open"
      nostartdelay        1
      repeat-delay        1,0
      distance            5,170
      sound
        {
          0               "start.wav"
        }
    }
  door_close
    {
      trigger             "door_close"
      nostartdelay        1
      repeat-delay        1,0
      distance            5,170
      sound
        {
          0               "start.wav"
        }
    }
}
  
mesh-table
{
  default
    {
      mesh                "mk1_rmb_br_bld_custd_body/mk1_rmb_br_bld_custd_body.lm"
      auto-create         1
    }
  shadow
    {
      mesh                "mk1_rmb_br_bld_custd_shadow/mk1_rmb_br_bld_custd_shadow.pm"
    }
  left-passenger-door
    {
      mesh                "mk1_rmb_br_bld_custd_body/left_door/left_door.im"
      anim                "mk1_rmb_br_bld_custd_body/left_door/left_door.kin"
      auto-create         1
      att                 "a.doors"
      att-parent          "default"
    }
  right-passenger-door
    {
      mesh                "mk1_rmb_br_bld_custd_body/right_door/right_door.im"
      anim                "mk1_rmb_br_bld_custd_body/right_door/right_door.kin"
      auto-create         1
      att                 "a.doors"
      att-parent          "default"
    }
}
  
queues
{
  passengers
    {
      size                22
      initial-count       0
      passenger-queue     "1"
      product-kuid        <kuid:-3:10060>
      attachment-points
        {
          0               "a.sitpoint5a"
          1               "a.sitpoint1b"
          2               "a.sitpoint3c"
          3               "a.sitpoint2d"
          4               "a.sitpoint1e"
          5               "a.sitpoint0f"
          6               "a.sitpoint5g"
          7               "a.sitpoint0h"
          8               "a.sitpoint1a"
          9               "a.sitpoint4b"
          10              "a.sitpoint1c"
          11              "a.sitpoint1d"
          12              "a.sitpoint0e"
          13              "a.sitpoint1f"
          14              "a.sitpoint4g"
          15              "a.sitpoint1h"
          16              "a.sitpoint2a"
          17              "a.sitpoint3b"
          18              "a.sitpoint4c"
          19              "a.sitpoint0d"
          20              "a.sitpoint2e"
          21              "a.sitpoint"
  
bogeys
{
  0
    {
      bogey               <kuid:-3:10061>
      reversed            0
    }
}
  
thumbnails
{
  0
    {
      image               "thumb.jpg"
      width               240
      height              180
    }
}


LOD File Listing

version 1.0
offset = 0.0;
calcPoint = center;
multiplier = .0;
animationCutOff = 0.00;
mesh(0.2)
{
   name="mk1_rmb_br_bld_custd_body_lowest.im";
}
mesh(0.4)
{
   name="mk1_rmb_br_bld_custd_body_low.im";
}
mesh(0.8)
{
   name="mk1_rmb_br_bld_custd_body.im";
}


Return to CCG Index

Content Creator's Guide

Kind Examples

Personal tools