CCG/Example: TrainCar (Steam Engine)
Traincar (Steam Locomotive)
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.
bigboy-cyl-steam.tfx, bigboy-smoke.tfx, bigboy-smoke-idle.tfx, bigboy-steam-relief.tfx - The Twinkle files used for the smoke effects. More information on Twinkles can be found on Page 394.
UP_Bigboy_art_512.texture.txt, UP_Bigboy_art_512. tga - These image files are used to show a 512x512 preview texture when the image is available on the download station.
This is valid for 2004 assets, but in TRS2006 this functionality has been replaced with the 240x180 thumbnail image referenced in the thumbnails container.
If your asset has a trainz-version of 2.5+, you should use an image from a thumbnail container instead, at which time these files may be deleted if you wish to decrease the filesize of your asset.
UP_Bigboy_art_icon.texture.txt, UP_Bigboy_art_icon.tga - The icon texture files. 128x64 pixels in dimension.
bb_alpha.bmp, bb_alpha.texture.txt, bb_alpha.tga, bb_alpha-bb_alpha.texture.txt, BB_Bolts.texture.txt, BB_Bolts.tga, BB_Bolts_bump.texture.txt, B_Bolts_bump.tga, BB_Bolts_LOW.texture.txt, BB_Bolts_LOW.tga, BB_Bolts_med.texture.txt, BB_Bolts_med.tga, bb_main01.texture.txt, bb_main01.tga, bb_main. texture.txt, bb_main.tga, bb_main_bump.texture.txt, bb_main_bump.tga, bb_main_LOW.texture.txt, bb_main_LOW.tga, bb_main_MED.texture.txt, b_main_MED.tga, Env_glass.bmp, Env_glass.texture.txt, Env_metal.bmp, Env_metal.texture.txt, generic.texture.txt, generic.tga, generic_LOW.texture.txt, generic_LOW.tga, generic_med.texture.txt, generic_med.tga, window+interior.texture.txt, window+interior.tga, black.texture.txt, black.tga - The texture files used by the indexed meshes.
See the section on Texture.txt files on Page 96 for more information.
UP_Bigboy_body.lm.txt - Level of Detail (or `LOD') file. See the section on LOD meshes on Page 378 for more information.
UP_Bigboy_body.im, UP_Bigboy_body_low.im, UP_Bigboy_body_med.im, UP_Bigboy_shadow.im - The indexed mesh files used by the traincar asset.
File Listings
config.txt kuid <kuid:56113:1002> trainz-build 2.5 category-class "AS" username "testTraincar (Steam)" kind "traincar" engine 1 mass 544310 category-region "US" category-era "1930s;1940s;1950s;1960s;1970s;1980s" enginespec <kuid:523:51469> enginesound <kuid:-3:10105> hornsound <kuid:523:54745> smoke_fastlife 6 smoke_fastspeed 2 smoke_height 0 smoke_random 2 smoke_shade 0.3 smoke_slowlife 1 description "Test steam traincar asset. Based on the UP BigBoy." mesh-table default mesh "UP_Bigboy_body/UP_Bigboy_body.lm" auto-create 1 shadow mesh "UP_Bigboy_shadow/UP_Bigboy_shadow.im" smoke0 attachment "a.steam_cyl_drainL" mode "anim" color 255,255,255,225 start 0.6 period 0 rate 1 velocity 0.8 lifetime 0.4 minsize 0.5 maxsize 1.5 smoke1 attachment "a.steam_cyl_drainR" mode "anim" color 255,255,255,225 start 0.1 period 0 rate 1 velocity 0.8 lifetime 0.4 minsize 0.5 maxsize 1.5 smoke2 attachment "a.steam_L0" mode "anim" color 255,255,255,225 start 0.61 period 0 rate 1 velocity 0.8 lifetime 0.4 minsize 0.5 maxsize 1.5 smoke3 attachment "a.steam_R0" mode "anim" color 255,255,255,225 start 0.11 period 0 rate 1 velocity 0.8 lifetime 0.4 minsize 0.5 maxsize 1.5 smoke4 attachment "a.safety01" mode "time" color 255,255,255,150 rate 45 velocity 0.5 lifetime 0.4 minsize 0.05 maxsize 0.5 smoke5 attachment "a.safety02" mode "time" color 255,255,255,150 rate 45 velocity 0.5 lifetime 0.4 minsize 0.05 maxsize 0.5 smoke6 attachment "a.smoke0" mode "speed" color 50,50,50,255 accel 0,0,-1.5 start 0,5,10,20 rate 5,12,15,20 velocity 2.5,3.5,4.5,5.5 lifetime 2,3,4,4 minsize 0.4 maxsize 2,3,4,5 smoke7 attachment "a.smoke1" mode "speed" color 50,50,50,255 accel 0,0,-1.5 start 0,5,10,20 rate 5,12,15,20 velocity 2.5,3.5,4.5,5.5 lifetime 2,3,4,4 minsize 0.4 maxsize 2,3,4,5 bogeys 0 bogey <kuid:523:10071> reversed 0 1 bogey <kuid:523:10072> reversed 0 thumbnails 0 image "thumb.jpg" width 240 height 180 1 image "up_bigboy_icon/up_bigboy_icon.tga" width 128 height 64
UP_Bigboy_body.lm.txt
version .0
offset = 0.0;
calcPoint = center;
multiplier = .0;
animationCutOff = 0.00;
renderCutOff = 0.00;
attachmentCutOff = 0.0;
mesh("0.2")
{ name="UP_Bigboy_body_low.im"; } mesh("0.2") { name="UP_Bigboy_body_med.im"; } mesh(".0") { name="UP_Bigboy_body.im"; }
Download this asset
This asset is available for download from the TRS2006 website at: http://files.auran.com/TRS2006/Downloads/Example_Download.zip