CCG/Example: EngineSound (Steam)

From TrainzOnline
< CCG
Revision as of 13:01, 9 June 2011 by Pev (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Enginesound (Steam)

Trainz now supports two steam sound systems:

Loop Based where a single "loop" sound is varied in speed in proportion to loco's velocity,

Speed Based where a number of sound files are slighly varied in speed over a loco velocity range determined by the file name.

Steam EngineSound - Loop Based

Directory Structure

A typical asset of this kind has the following File\Directory Structure:

CCG enginesound steam dir.jpg


Required Files

config.txt - The config file for the asset.

thumb.jpg - The thumbnail image for this asset. A 240x180 jpeg.

loco_stationary_fast.wav, loco_stationary_med.wav, loco_stationary_slow.wav - These file are the steam engine idling sounds played after the steam engine is stationary for 1, 2 and 3 minutes.

piston_stroke1.wav, piston_stroke2.wav, piston_stroke3.wav, piston_stroke4.wav - Piston stoke sounds, played every 180 degrees revolution of the piston wheel played in sequence and repeated up to about 40 kph.

smoke_stack_hiss.wav - The general hiss from the smoke stack.

steam_loop.wav - From 40 kph upwards, the following sound loop is cross-faded as the piston sounds die off. The loop is pitched shifted (through code) relative to the locomotive's velocity.

Refer to the use of the tag direct-drive used on animated steam bogeys to synchronise the sounds with the animation, Page 33.


Config.txt File Listing

kuid                 <kuid:171456:100015>
trainz-build         2.5
category-class       "ZS"
category-region      "US"
category-era         "1960s;1970s;1980s;1990s;2000s"
username             "testEngineSound (Steam)"
kind                 "enginesound"
description          "Test Steam Engine Sounds. Based on the PB15."
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


Steam EngineSound - Speed Based

Directory Structure

A typical asset of this kind has the following File\Directory Structure:

CCG enginesound2 steam dir.jpg


Required Files

config.txt - The config file for the asset.

enginesound.jpg - The thumbnail image for this asset, 240x180 pixels

loco_stationary_fast.wav, loco_stationary_med.wav, loco_stationary_slow.wav - These file are the steam engine idling sounds played after the steam engine is stationary for 1, 2 and 3 minutes.

piston_stroke1.wav, piston_stroke2.wav, piston_stroke3.wav, piston_stroke4.wav - Piston stoke sounds, played every 180 degrees revolution of the piston wheel played in sequence and repeated up to about 15 kph.

smoke_stack_hiss.wav - The general hiss from the smoke stack.

steam_loop_30rpm.wav, steam_loop_35rpm.wav, steam_loop_40rpm.wav, steam_loop_50rpm.wav, steam_loop_60rpm.wav, steam_loop_75rpm.wav, steam_loop_90rpm.wav, steam_loop_100rpm.wav, steam_loop_125rpm.wav, steam_loop_150rpm.wav, steam_loop_175rpm.wav, steam_loop_200rpm.wav, steam_loop_250rpm.wav, steam_loop_300rpm.wav - each of these file is played (and speed shifted) as the engine driving wheels rotational speed (rpm) is within the range of the rpm specified inm the file name.

Note: This EngineSound file set is for a two cylinder steam lcocmotive with 4 "chuffs" per revolution of the driving wheels. 3 and 4 cylinder sounds will require different files.

Refer to the use of the tag direct-drive used on animated steam bogeys to synchronise the sounds with the animation, Page 33.


Config.txt File Listing

kind                 "enginesound"
kuid                 <kuid2:126323:53050:1>
trainz-build         2.8
category-class       "ZS"
category-region      "GB;UK"
category-era         "1920s;1930s;1940s;1950s;1960s"
username             "Steam Engine Sound - 2 cylinder"
description          "2 Cylinder simple expansion steam sound"
thumbnails
{
  0
    {
      image          "enginesound.jpg"
      width          240
      height         180
    }
}


Return to CCG Index

Content Creator's Guide

Kind Examples

Personal tools