CCG/Example: TrainCar (Steam Engine): Difference between revisions
New page: 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. th... |
broken download link removed |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
Traincar (Steam Locomotive) | ==Traincar (Steam Locomotive)== | ||
===Directory Structure=== | |||
A typical asset of this kind has the following File\Directory Structure: | A typical asset of this kind has the following File\Directory Structure: | ||
[[Image:CCG_traincar_steam_engine_dir1.jpg]] | |||
===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. '''Obsolete''' | |||
UP_Bigboy_art_icon.texture.txt, UP_Bigboy_art_icon.tga - The icon texture files. 128x64 pixels in dimension. | '''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. | '''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. | 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.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. | '''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. | ||
===Config.txt File Listing=== | |||
kuid <kuid:56113:1002> | kuid <kuid:56113:1002> | ||
trainz-build 2.5 | trainz-build 2.5 | ||
category-class "AS" | category-class "AS" | ||
username "testTraincar (Steam)" | username "testTraincar (Steam)" | ||
kind "traincar" | kind "traincar" | ||
engine 1 | engine 1 | ||
mass 544310 | mass 544310 | ||
category-region "US" | category-region "US" | ||
category-era "1930s;1940s;1950s;1960s;1970s;1980s" | category-era "1930s;1940s;1950s;1960s;1970s;1980s" | ||
enginespec <kuid:523:51469> | enginespec <kuid:523:51469> | ||
enginesound <kuid:-3:10105> | enginesound <kuid:-3:10105> | ||
hornsound <kuid:523:54745> | hornsound <kuid:523:54745> | ||
smoke_fastlife 6 | smoke_fastlife 6 | ||
smoke_fastspeed 2 | smoke_fastspeed 2 | ||
smoke_height 0 | smoke_height 0 | ||
smoke_random 2 | smoke_random 2 | ||
smoke_shade 0.3 | smoke_shade 0.3 | ||
smoke_slowlife 1 | smoke_slowlife 1 | ||
description "Test steam traincar asset. Based on the UP BigBoy." | description "Test steam traincar asset. Based on the UP BigBoy." | ||
mesh-table | mesh-table | ||
default | { | ||
mesh | default | ||
auto-create | { | ||
shadow | mesh "UP_Bigboy_body/UP_Bigboy_body.lm" | ||
mesh | auto-create 1 | ||
smoke0 | } | ||
attachment | shadow | ||
mode | { | ||
color | mesh "UP_Bigboy_shadow/UP_Bigboy_shadow.im" | ||
start | } | ||
period | } | ||
rate | |||
velocity | smoke0 | ||
lifetime | { | ||
minsize | attachment "a.steam_cyl_drainL" | ||
maxsize | mode "anim" | ||
smoke1 | color 255,255,255,225 | ||
attachment | start 0.6 | ||
mode | period 0 | ||
color | rate 1 | ||
start | velocity 0.8 | ||
period | lifetime 0.4 | ||
rate | minsize 0.5 | ||
velocity | maxsize 1.5 | ||
lifetime | } | ||
minsize | smoke1 | ||
maxsize | { | ||
smoke2 | attachment "a.steam_cyl_drainR" | ||
attachment | mode "anim" | ||
mode | color 255,255,255,225 | ||
color | start 0.1 | ||
start | period 0 | ||
period | rate 1 | ||
rate | velocity 0.8 | ||
velocity | lifetime 0.4 | ||
lifetime | minsize 0.5 | ||
minsize | maxsize 1.5 | ||
maxsize | } | ||
smoke3 | smoke2 | ||
attachment | { | ||
mode | attachment "a.steam_L0" | ||
color | mode "anim" | ||
start | color 255,255,255,225 | ||
period | start 0.61 | ||
rate | period 0 | ||
velocity | rate 1 | ||
lifetime | velocity 0.8 | ||
minsize | lifetime 0.4 | ||
maxsize | minsize 0.5 | ||
smoke4 | maxsize 1.5 | ||
attachment | } | ||
mode | smoke3 | ||
color | { | ||
rate | attachment "a.steam_R0" | ||
velocity | mode "anim" | ||
lifetime | color 255,255,255,225 | ||
minsize | start 0.11 | ||
maxsize | period 0 | ||
smoke5 | rate 1 | ||
attachment | velocity 0.8 | ||
mode | lifetime 0.4 | ||
color | minsize 0.5 | ||
rate | maxsize 1.5 | ||
velocity | } | ||
lifetime | smoke4 | ||
minsize | { | ||
maxsize | attachment "a.safety01" | ||
smoke6 | mode "time" | ||
attachment | color 255,255,255,150 | ||
mode | rate 45 | ||
color | velocity 0.5 | ||
accel | lifetime 0.4 | ||
start | minsize 0.05 | ||
rate | maxsize 0.5 | ||
velocity | } | ||
lifetime | smoke5 | ||
minsize | { | ||
maxsize | attachment "a.safety02" | ||
smoke7 | mode "time" | ||
attachment | color 255,255,255,150 | ||
mode | rate 45 | ||
color | velocity 0.5 | ||
accel | lifetime 0.4 | ||
start | minsize 0.05 | ||
rate | maxsize 0.5 | ||
velocity | } | ||
lifetime | smoke6 | ||
minsize | { | ||
maxsize | attachment "a.smoke0" | ||
bogeys | mode "speed" | ||
0 | color 50,50,50,255 | ||
bogey | accel 0,0,-1.5 | ||
reversed | start 0,5,10,20 | ||
1 | rate 5,12,15,20 | ||
bogey | velocity 2.5,3.5,4.5,5.5 | ||
reversed | lifetime 2,3,4,4 | ||
thumbnails | minsize 0.4 | ||
0 | maxsize 2,3,4,5 | ||
image | } | ||
width | smoke7 | ||
height | { | ||
1 | attachment "a.smoke1" | ||
image | mode "speed" | ||
width | color 50,50,50,255 | ||
height | 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 | |||
} | |||
} | |||
===LOD File Listing=== | |||
UP_Bigboy_body.lm.txt | '''UP_Bigboy_body.lm.txt''' | ||
version .0 | version 1.0 | ||
offset = 0.0; | offset = 0.0; | ||
calcPoint = center; | calcPoint = center; | ||
multiplier = .0; | multiplier = .0; | ||
animationCutOff = 0.00; | animationCutOff = 0.00; | ||
renderCutOff = 0.00; | renderCutOff = 0.00; | ||
attachmentCutOff = 0.0; | attachmentCutOff = 0.0; | ||
mesh("0.2") | mesh("0.2") | ||
{ | |||
name="UP_Bigboy_body_low.im"; | name="UP_Bigboy_body_low.im"; | ||
} | |||
mesh("0.2") | mesh("0.2") | ||
{ | |||
name="UP_Bigboy_body_med.im"; | name="UP_Bigboy_body_med.im"; | ||
} | |||
mesh(".0") | mesh(".0") | ||
{ | |||
name="UP_Bigboy_body.im"; | name="UP_Bigboy_body.im"; | ||
} | |||
==Return to CCG Index== | |||
[[Content Creator's Guide]] | |||
[[CCG/Kind_Examples|Kind Examples]] | |||
Latest revision as of 03:30, 27 May 2012
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. Obsolete
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.
Config.txt File Listing
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
}
}
LOD File Listing
UP_Bigboy_body.lm.txt
version 1.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";
}
