CCG/Example: TrainCar (Electric Engine)
From TrainzOnline
< CCG
Contents |
Traincar (Electric Engine)
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.
tr08car_icon.tga - The icon for for the asset.
tr08_car.im, tr08car_rightdoors.im, tr08car_leftdoors.im - The mesh files for the asset.
tr08car_rightdoors.kin, tr08car_leftdoors.kin - The door animation files.
tr08_car_shadow.im - The mesh file for the shadow model.
various.tga, various.texture.txt - The texture files for the asset. See the section on Texture.txt files on Page 96 for more information.
Config.txt File Listing
kuid <kuid:171456:100027>
trainz-build 2.5
category-class "AE"
username "testTrainCar (Electric)"
kind "traincar"
engine 1
mass 53000
company "Transrapid International"
origin "Germany"
disable-extra-track-sounds 1
enginespec <kuid:37522:2>
enginesound <kuid:-1:42003002>
hornsound <kuid:60723:54000>
category-region "DE"
category-era "2000s"
fonts 0
max-coupler-gap 0
use-coupler-sounds 0
description "Test electric traincar asset. Based on the Maglev."
mesh-table
{
default
{
mesh "TR08_Maglev_body/TR08_Maglev_body.im"
auto-create 1
}
shadow
{
mesh "TR08_Maglev_shadow/Maglev_shadow.im"
}
left-passenger-door
{
mesh "TR08_Maglev_body/TR08Cab_LeftDoors.im"
anim "TR08_Maglev_body/TR08Cab_LeftDoors.kin"
auto-create 1
att "a.doors"
att-parent "default"
}
right-passenger-door
{
mesh "TR08_Maglev_body/TR08Cab_RightDoors.im"
anim "TR08_Maglev_body/TR08Cab_RightDoors.kin"
auto-create 1
att "a.doors"
att-parent "default"
}
}
queues
{
passengers
{
passenger-queue "1"
product-kuid <kuid:-3:10060>
size 92
initial-count 5
}
}
bogeys
{
0
{
reversed 0
bogey <kuid2:171456:149:1>
}
}
thumbnails
{
0
{
image "tr08_icon/tr08_icon.tga"
width 128
height 64
}
1
{
image "thumb.jpg"
width 240
height 180
}
}
kuid-table
{
0 <kuid:-1:100141>
1 <kuid:37522:2>
2 <kuid:-1:42003002>
3 <kuid:60723:54000>
4 <kuid:-10:216>
5 <kuid:-3:10060>
6 <kuid2:171456:149:1>
}
