CCG/Example: MOJunction
From TrainzOnline
Contents |
MOJunction
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.
points.wav - The sound played when the junction is toggled.
grey.bmp, grey.texture.txt, orange.bmp, orange.texture.txt, rust.bmp, rust.texture.txt - The texture files for the Juntion asset. See the section on Texture.txt files on Page 96 for more information.
lever1.im, lever2.im - The indexed mesh files used for the junction levers.
Config.txt File Listing
kuid <kuid:56113:1254> trainz-build 2.5 category-class "WX" category-region "AG" category-era "1830s" username "testMOJunction" kind "mojunction" light 1 trackside 0 description "Test MOJunction. Based on the UK Point Motor by Alan Thomson (snowsignal)." mesh-table { lever1 { mesh "lever1/lever1.im" auto-create 1 } lever2 { mesh "lever2/lever2.im" } } soundscript { toggle { trigger "toggle" distance 5,100 nostartdelay 1 repeat-delay 1,1 sound { 0 "points.wav" } } } thumbnails { 0 { image "thumb.jpg" width 240 height 180 } }
Download this asset
This asset is available for download from the TRS2006 website at:
http://files.auran.com/TRS2006/Downloads/Example_Download.zip