CCG/Example: Interior (Electric)
Contents |
Interior (Electric)
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.
cabin.txt - A text file mapping sounds to their respective interior elements.
air_horn_3.wav, lever_2.wav, lever_4.wav, lever_5.wav, notch_1.wav, reverser.wav, switch_6.wav, throttle.wav - The sound files associated with the interior elements.
various.tga, various.bmp, various texture.txt - Various graphic files used by the asset - The texture files used by the indexed meshes of this interior.
See the section on Texture.txt files on Page 96 for more information.
bar_meter_needle.im, brake.im, gen_tgv_cab.im, lever_handle.im, light_switch.im, pantograph_lever.im, pressure_needle_lge.im, pressure_needle_lge_red.im, pressure_needle_sml.im, reverser.im, speedo_needle1.im, speedo_needle2.im, switch. im, traction.im, wheelslip.im, windows.im - The indexed mesh components used to create the interior asset. More information on modelling interior assets can be found on Page 58 of this document.
Config.txt File Listing
kuid <kuid:171456:100043> trainz-build 2.9 category-class "ZI" category-region "00" category-era "1990s;2000s;2010s" username "testElectricInterior" kind "interior" cameradefault 2 description "Test electric interior. Based on the TGV interior." cameralist { camera0 0.773,0.671,0.2,1.566,-0.096 camera1 0.583,0.35,0.247,0,-0.352 camera2 0.479,0,0.148,0,0 camera3 -0.69,-0.017,0.17,0.242,-0.185 camera4 -0.773,0.671,0.2,-1.566,-0.096 camera5 0.6,0.35,0.17,0,0 } mesh-table { default { mesh "gen_tgv_cab.im" auto-create 1 } pantograph_lever { kind "lever" mesh "pantograph_lever.im" att "a.pantograph_lever" limits 0,1 angles 0,1 notches 0,1 notchheight 3,3 radius 0.16 att-parent "default" } horn { kind "lever" mesh "lever_handle.im" att "a.horn" limits 0,1 angles 0,-0.45 notches 0,1 notchheight 3,3 radius 0.16 mousespeed -1 att-parent "default" } independantbrake_lever { kind "lever" mesh "lever_handle.im" att "a.ind_brake_lever" limits 0,32 angles 0,-0.45 notches 0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8, 0.9,1 notchheight 1,2,2,2,2,2,2,2,2,2,1 radius 0.15 mousespeed -1 att-parent "default" } reverser_lever { kind "lever" mesh "reverser.im" att "a.reverser" limits 0,2 angles 0,-0.471239 notches 0,0.5,1 notchheight 1,1,1 att-parent "default" } throttle_lever { kind "lever" mesh "traction.im" att "a.traction" limits 0,32 angles -0.75,0.75 notches 0,0.0303,0.060,6,0.0909,0.1212,0.1515,0.1818,0.2121,0.2424, 0.2727,0.303,0.3333,0.3636,0.3939,0.4242,0.4545,0.4848,0.5151,0.5454,0.5757,0.606, 0.6363,0.6666,0.6969,0.7272,0.7575,0.7878,0.8181,0.8484,0.8787,0.909,0.9393,1 notchheight 1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1 radius 0.35 att-parent "default" } voltmeter_line { kind "needle" mesh "bar_meter_needle.im" att "a.voltmeter_line" limits 0,125 value 75 angles 0,0.6 att-parent "default" } ampmeter_needle { kind "needle" mesh "bar_meter_needle.im" att "a.ampmeter_motor1" limits 0,1500 angles 0,0.6 att-parent "default" } ampmeter2_needle { kind "needle" mesh "bar_meter_needle.im" att "a.ampmeter_motor2" limits 0,1500 angles 0,0.6 att-parent "default" } ampmeter_brake { kind "needle" mesh "bar_meter_needle.im" att "a.ampmeter_brake" limits 0,1000 value 200 angles 0,0.6 att-parent "default" } voltmeter_battery { kind "needle" mesh "bar_meter_needle.im" att "a.voltmeter_battery" limits 0,125 value 72 angles 0,0.6 att-parent "default" } trainbrake_lever { kind "lever" mesh "brake.im" att "a.train_brake_lever" limits 0,4 angles -0.75,0.35 notches 0,0.25,0.27,0.29,0.31,0.33,0.35, 0.37,0.39,0.41,0.43,0.45,0.47,0.49,0.5,0.75,1 notchheight 1,1,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1 radius 0.15 mousespeed -1 att-parent "default" } bplocomain_needle { kind "needle" mesh "pressure_needle_lge.im" att "a.res_pressure_needle" limits 0,1000 att-parent "default" } bploco_equaliser { kind "needle" mesh "pressure_needle_lge_red.im" att "a.res_pressure_needle" limits 0,1000 att-parent "default" } bptrainbrakepipe_needle { kind "needle" mesh "pressure_needle_sml.im" att "a.brake_cyl_pressure" limits 0,1000 att-parent "default" } no3pipe_needle { kind "needle" mesh "pressure_needle_sml.im" att "a.ind_brake_pressure" limits 0,1000 att-parent "default" } speedo_needle2 { kind "needle" mesh "speedo_needle1.im" att "a.speedo_needle1" limits 0,50 att-parent "default" } speedo_needle { kind "needle" mesh "speedo_needle2.im" att "a.speedo_needle2" limits 0,186 att-parent "default" } wheelslip_light { kind "light" mesh "wheelslip.im" att "none" att-parent "default" } switch0 { kind "lever" mesh "switch.im" att "a.switch0" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } switch1 { kind "lever" mesh "switch.im" att "a.switch1" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } switch2 { kind "lever" mesh "switch.im" att "a.switch2" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } switch3 { kind "lever" mesh "switch.im" att "a.switch3" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } switch4 { kind "lever" mesh "switch.im" att "a.switch4" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" { switch5 { kind "lever" mesh "switch.im" att "a.switch5" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } switch6 { kind "lever" mesh "switch.im" att "a.switch6" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } switch7 { kind "lever" mesh "switch.im" att "a.switch7" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } switch8 { kind "lever" mesh "switch.im" att "a.switch8" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } switch9 { kind "lever" mesh "switch.im" att "a.switch9" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } switch10 { kind "lever" mesh "switch.im" att "a.switch10" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } switch11 { kind "lever" mesh "switch.im" att "a.switch11" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } switch12 { kind "lever" mesh "switch.im" att "a.switch12" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } switch13 { kind "lever" mesh "switch.im" att "a.switch13" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } switch14 { kind "lever" mesh "switch.im" att "a.switch14" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } switch15 { kind "lever" mesh "switch.im" att "a.switch15" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } switch16 { kind "lever" mesh "switch.im" att "a.switch16" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } switch17 { kind "lever" mesh "switch.im" att "a.switch17" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } switch18 { kind "lever" mesh "switch.im" att "a.switch18" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } switch19 { kind "lever" mesh "switch.im" att "a.switch19" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } switch20 { kind "lever" mesh "switch.im" att "a.switch20" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } light_switch { kind "lever" att "a.switch21" mesh "light_switch.im" limits 0,1 angles 0,1 notches 0,1 notchheight 0,0 att-parent "default" } windows { mesh "windows.im" opacity 0 check this } } thumbnails { 0 { image "thumb.jpg" width 240 height 180 } }
Cabin.txt File Listing
switch switch_.wav dynamicbrake_lever change-notch notch_.wav independantbrake_lever change-notch notch_.wav reverser_lever change-notch lever_2.wav throttle_lever change-notch lever_.wav trainbrakelap_lever change-notch notch_.wav pantograph_lever change-notch lever_.wav trainbrake_lever change-notch notch_.wav
Download this asset
This asset is available for download from the TRS2006 website at:
http://files.auran.com/TRS2006/Downloads/Example_Download.zip