Here is instructions as I have it. As I said I dont use FS2004 anymore so I cannot test this but I write it completely from memory.
EDIT: 12/10/2012 -- steps according to tested data.
Laura I will email the files to you in a while.
----------------------------------------------
Background info
---------------
NB: This example is a very elementary example based from Rob Barendregt VSPEEDS gauge that will trigger 4 sounds to play. All credits to him for using example and playing wave files. The xmls file derived from his original extensive XML file.
-the std 80knots call
-v1 call at 45 knots
-Vr call at 50 knots
-v2 call at 55 knots
NOTE:
The example has been created for the C172 cessna.
(please this is just an example and do not contain the actual correct values and infact V1 and V2 is not even used in single engine planes.)
(this is purely for illustration purposes so that the person can see how it work at the indicated airspeeds)
To make the sound gauge work you need 5 things or things to do
1) You have an XML gauge that consist of the variables you measure against eg speed greater then 55 and the sound indicator (l:variable)
2) You need the sound gauge (the thing that make the sound play)
3) You need the config file that link the XML gauge lvar to the sound WAV file.
4) You need the actual wave file
5) Entry in the panel.cfg file that list the new sound gauge (dougs gauge) as well as the XML gauge.
(for laura - Unzip the file I will send you to a folder of your choice. MOST important read the word document from doug dawson gauge as that give a LOT more info.)
The STEPS
=========
1. the xml gauge
----------------
Create a folder under the "panel" folder of the C172 and call it "C172_Sound" (without the inverted commas).
So under the panel folder you will have another folder called “C172_Sound” and in this folder you will place your XML file called “speeds.xml”
(laura you can just copy the "speeds.xml" file from the extracted file and paste it into the newly created folder called "C172_sound")
You can open the xml file with notepad to see what the xml file look like.
From the gauge file below we have 4 l:vars that will trigger the 4 sounds
- L:SPEEDSnd80
- L:SPEEDSndV1
- L:SPEEDSndVr
- L:SPEEDSndV2
these will be used later also in the config file where we will link up these variables with the sounds.
NOTE this is also the place where you can change the values to whatever you want to change it to
Code:
<Gauge Name="Laura gauge" Version="2.4">
<Update Frequency="4"/>
<!-- Set Vspeeds sounds -->
<Element>
<Select>
<Value>
(A:SIM ON GROUND,bool) 1 ==
if{
(A:AIRSPEED INDICATED,knots) 80 >=
(L:Speedvariable) 80 < &&
if{ 1 (>L:VSPEED_Sound_V80,enum) }
(A:AIRSPEED INDICATED,knots) 90 >=
(L:Speedvariable) 90 < &&
if{ 1 (>L:VSPEED_Sound_V1,enum) }
(A:AIRSPEED INDICATED,knots) 96 >=
(L:Speedvariable) 96 < &&
if{ 1 (>L:VSPEED_Sound_Vr,enum) }
(A:AIRSPEED INDICATED,knots) 102 >=
(L:Speedvariable) 102 < &&
if{ 1 (>L:VSPEED_Sound_V2,enum) }
(A:AIRSPEED INDICATED,knots) (>L:Speedvariable)
}
</Value>
</Select>
</Element>
</Gauge>
The newly added folder under panel folder should look like this
2. the sound gauge.
------------------
This gauge can be downloaded from doug site
http://www.douglassdawson.ca/
download and unzip to a folder of your choice.
You copy and paste the gauge file "dsd_fsx_xml_sound.gau" into the FS2004 "gauges" folder.
No need to add the config file (.ini file) to the gauges folder now. We will be adding it to a specific folder in step3
(Laura In the extracted folder of the zip file find the sound gauge “dsd_fsx_xml_sound.gau” from doug dawson
Copy and paste the gauge file “dsd_fsx_xml_sound.gau” into your fs2004 “gauges” folder.)
3. Create sound folder and ini file
-----------------------------------
The sound files and the ini file (config file) will all be added to a specific folder.
For now we just create the sound folder and the ini file.
Under fs2004 main folder there is a Fs2004 "Sound" folder.
Under this folder create a new folder called "laura_c172VSPD" (without the inverted commas)
Copy the "dsd_fsx_xml_sound.ini" file from doug Dawson download into this newly created "laura_c172VSPD" folder (within main "Sound" folder).
rename the "dsd_fsx_xml_sound.ini" file to "C172_VSPDsound.ini"
(The reason is I just like to name these files to be more specific to the plane I use it for.)
The config file pair the Lvars used in XML file in step 1 and the sound files that need to play, with each other:
The config file consist of the following sections
[Config] <- under this section you can set many things. See doug dawson document that came with the download
[Sounds] <- this section tell the sound gauge which sound to play and corresponds to same number under LVars section below
[LVars] <- this section indicate the lvar that is triggered in the XML gauge and corresponds with same number under sounds above
So “Lvar00” under [LVars] always work together with “Sound00” under [Sounds] section
So “Lvar01” under [LVars] always work together with “Sound01” under [Sounds] section
So “Lvar02” under [LVars] always work together with “Sound02” under [Sounds] section
But
So “Lvar00” under [LVars] never work together with “Sound01” under [Sounds] section
Hope you follow the way this tie up.
In our case the config file will thus look like this
Code:
[Config]
MaxSounds=8
ErrorFlag=0
LvarStop=Vspeed_SoundStop
[Sounds]
Sound00=./Sound/laura_c172VSPD/v80.wav,100
Sound01=./Sound/laura_c172VSPD/v1.wav,100
Sound02=./Sound/laura_c172VSPD/vr.wav,100
Sound03=./Sound/laura_c172VSPD/v2.wav,100
[LVars]
Lvar00=SPEEDSnd80
Lvar01=SPEEDSndV1
Lvar02=SPEEDSndVr
Lvar03=SPEEDSndV2
this means
Lvar00=SPEEDSnd80 will play "v80.wav" because lvar00 tie up with Sound00
Lvar01=SPEEDSndV1 will play "v1.wav" because lvar01 tie up with Sound01 etc etc...
(Laura In the extracted folder from the attached zip file find the sound config file “C172_VSPDsound.ini”
Add this file into the newly created "laura_c172VSPD" folder (within main "Sound" folder).
You can open the file with notepad to see the setup.)
The newly created sound folder now should look like this
NOTE: The ini file can actually be placed anywhere as long as the panel entry reflect that. Some add it to the panel folder. Some add it to the gauges folder etc.. I just like to have the ini file and the sounds together. So this is purely personal preference. if you put it somehwere else just point the panel entry to that location.
4. the wave file
-------------------
Create your 4 wave files and name them
v80.wav
v1.wav
vr.wav
v2.wav
then add them to the folder "laura_c172VSPD"
The newly created sound folder now should look like this
5 panel.cfg file entries.
----------------------------
open the panel folder of the C172 and find the file "panel.cfg"
open the file "panel.cfg" with notepad
Under section [vcockpit01] add the following 2 entries after the last gauge entries
gauge30=dsd_fsx_xml_sound!Sound, 0, 0, 1, 1,./sound/laura_c172VSPD/C172_VSPDsound.ini
gauge31=C172_Sound!speeds, 2,2,2,2
NB: make sure you dont already have a gauge30 and gauge31. most unlickly, but you never now. if you already have a gauge30 and gauge31, then
change it sequencially to the next highest number after the last gauge number
The gauge30 entry bring together the Sound gauge and which config file it must use to play the sounds.
The gauge31 entry make sure the XML gauge will work to read the variables and trigger the sound via the LVAR.
6 START FS9 and test. in this case when the speed is greater then the specified knots in XML, the sounds should be triggered.
Adjust the speed value in the XML gauge to confir with your value that you want it to be