CCG/Example: TrainCar (Steam Engine): Difference between revisions

From TrainzOnline
< CCG
Jump to navigationJump to search
Pev (talk | contribs)
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...
 
Pev (talk | contribs)
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


===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.
===Required Files===


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.
'''config.txt''' - The config file for the asset.


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.
'''thumb.jpg''' - The thumbnail image for this asset. A 240x180 jpeg.


This is valid for 2004 assets, but in TRS2006 this functionality has been replaced with the 240x180 thumbnail image referenced in the thumbnails container.
'''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.


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_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.




File Listings


config.txt
===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                   "UP_Bigboy_body/UP_Bigboy_body.lm"
  default
auto-create           1
    {
shadow
      mesh           "UP_Bigboy_body/UP_Bigboy_body.lm"
mesh                   "UP_Bigboy_shadow/UP_Bigboy_shadow.im"
      auto-create     1
smoke0
    }
attachment             "a.steam_cyl_drainL"
  shadow
mode                   "anim"
    {
color                 255,255,255,225
      mesh           "UP_Bigboy_shadow/UP_Bigboy_shadow.im"
start                 0.6
    }
period                 0
}
rate                   1
 
velocity               0.8
smoke0
lifetime               0.4
{
minsize               0.5
  attachment         "a.steam_cyl_drainL"
maxsize               1.5
  mode               "anim"
smoke1
  color               255,255,255,225
attachment             "a.steam_cyl_drainR"
  start               0.6
mode                   "anim"
  period             0
color                 255,255,255,225
  rate               1
start                 0.1
  velocity           0.8
period                 0
  lifetime           0.4
rate                   1
  minsize             0.5
velocity               0.8
  maxsize             1.5
lifetime               0.4
}
minsize               0.5
smoke1
maxsize               1.5
{
smoke2
  attachment         "a.steam_cyl_drainR"
attachment             "a.steam_L0"
  mode               "anim"
mode                   "anim"
  color               255,255,255,225
color                 255,255,255,225
  start               0.1
start                 0.61
  period             0
period                 0
  rate               1
rate                   1
  velocity           0.8
velocity               0.8
  lifetime           0.4
lifetime               0.4
  minsize             0.5
minsize               0.5
  maxsize             1.5
maxsize               1.5
}
smoke3
smoke2
attachment             "a.steam_R0"
{
mode                   "anim"
  attachment         "a.steam_L0"
color                 255,255,255,225
  mode               "anim"
start                 0.11
  color               255,255,255,225
period                 0
  start               0.61
rate                   1
  period             0
velocity               0.8
  rate               1
lifetime               0.4
  velocity           0.8
minsize               0.5
  lifetime           0.4
maxsize               1.5
  minsize             0.5
smoke4
  maxsize             1.5
attachment             "a.safety01"
}
mode                   "time"
smoke3
color                 255,255,255,150
{
rate                   45
  attachment         "a.steam_R0"
velocity               0.5
  mode               "anim"
lifetime               0.4
  color               255,255,255,225
minsize               0.05
  start               0.11
maxsize               0.5
  period             0
smoke5
  rate               1
attachment             "a.safety02"
  velocity           0.8
mode                   "time"
  lifetime           0.4
color                 255,255,255,150
  minsize             0.5
rate                   45
  maxsize             1.5
velocity               0.5
}
lifetime               0.4
smoke4
minsize               0.05
{
maxsize               0.5
  attachment         "a.safety01"
smoke6
  mode               "time"
attachment             "a.smoke0"
  color               255,255,255,150
mode                   "speed"
  rate               45
color                 50,50,50,255
  velocity           0.5
accel                 0,0,-1.5
  lifetime           0.4
start                 0,5,10,20
  minsize             0.05
rate                   5,12,15,20
  maxsize             0.5
velocity               2.5,3.5,4.5,5.5
}
lifetime               2,3,4,4
smoke5
minsize               0.4
{
maxsize               2,3,4,5
  attachment         "a.safety02"
smoke7
  mode               "time"
attachment             "a.smoke1"
  color               255,255,255,150
mode                   "speed"
  rate               45
color                 50,50,50,255
  velocity           0.5
accel                 0,0,-1.5
  lifetime           0.4
start                 0,5,10,20
  minsize             0.05
rate                   5,12,15,20
  maxsize             0.5
velocity               2.5,3.5,4.5,5.5
}
lifetime               2,3,4,4
smoke6
minsize               0.4
{
maxsize               2,3,4,5
  attachment         "a.smoke0"
bogeys
  mode               "speed"
0
  color               50,50,50,255
bogey                 <kuid:523:10071>
  accel               0,0,-1.5
reversed               0
  start               0,5,10,20
1
  rate               5,12,15,20
bogey                 <kuid:523:10072>
  velocity           2.5,3.5,4.5,5.5
reversed               0
  lifetime           2,3,4,4
thumbnails
  minsize             0.4
0
  maxsize             2,3,4,5
image                 "thumb.jpg"
}
width                 240
smoke7
height                 180
{
1
  attachment         "a.smoke1"
image                 "up_bigboy_icon/up_bigboy_icon.tga"
  mode               "speed"
width                 128
  color               50,50,50,255
height                 64
  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";
}
  }
 
 






Download this asset
==Return to CCG Index==
[[Content Creator's Guide]]


This asset is available for download from the TRS2006 website at:
[[CCG/Kind_Examples|Kind Examples]]
http://files.auran.com/TRS2006/Downloads/Example_Download.zip

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";
 }


Return to CCG Index

Content Creator's Guide

Kind Examples