• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 .xml gauge-sound problem

Messages
4
Country
us-kentucky
(I have this on FlightSim as well, but so far no luck)...

I´ve been beating my head bloody for the past three days + on this, and I need some help-- I am adding an inertia starter sound to a gauge [which is a simple toggle switch to kick in before hitting the starter-- unless someone has a better idea
wink.png
], and I have a sound to add to it. The switch itself works, but no sound. I have set up the .ini file to the best of my understanding per examples on various forums, but even with those there are variances (notably in underscores, which I don't know if I need or not, and if so, where)... I am sure it is, at the least, a syntax error, so if anyone could take a look at what I have and show me a corrected version, and *then* point out my errors to me, so I have a good working example to go by, I´d appreciate it-- I understand **very basically** what is going on with the commands in it (one thing triggers another, unless this condition exists, etc.), but writing them correctly is beyond me...soooo, if your response is like reading Doug Dawson´s readme files for the sound gauges (great stuff, but only if you already understand how to write the .XML code), I am not going to understand it. I guess I´m just dense that way, but "asi es la vida" :confused:

The .XML (SwitchInertiaStarter)
*****************************
< Gauge Name="Inertia Starter Switch" Version="1.0">
<Element>
<Select>
<Value>(L:Inertia starter switch, bool)</Value>
<Case Value="0">
<Image Name="SwitchToggleL_DN.bmp" ImageSizes="36,59,36,59"/>
</Case>
<Case Value="1">
<Image Name="SwitchToggleL_UP.bmp" ImageSizes="36,59,36,59"/>
</Case>
</Select>
</Element>
<Mouse>
<Tooltip>Inertia Starter Switch (%((L:Inertia starter switch, bool))%{if}%((L:Electrical external power available, bool))%{if}ON%{else}NOT AVAILABLE%{end}%{else}OFF%{end})</Tooltip>
<Cursor Type="Hand"/>
<Click>(L:Inertia starter switch, bool) ! d (>L:Inertia starter switch, bool) if{ 1 (>L:Sound inertia, enum) } els{ 1 (>L:Sound toggle switch off, enum) }</Click>
</Mouse>
< /Gauge>
***********************************
(I would like it better if it were a spring-loaded toggle switch that would play all of the 7-second .wav file even after it springs to the off position, but I have no idea how... also, is the .wav too long??)

The .ini file (dsd_switches_sound):
***********************************
[Config]
MaxSounds=1
LvarStop=dsd_stop_sounds

[Sounds]
Sound00=./Sound/dsd/Inertia.wav

[LVars]
Lvar00=InertiaStarterSwitch //"pretty sure this is wrong somehow as well:scratchch"
*********************************
The panel.cfg entries:
*********************************
gauge66=Inertia_Starter!SwitchInertiaStarter, 156,689,22,53

gauge50=Inertia_Starter!dsd_xml_sound3, 2,2,5,5, .\Gauges\dsd_switches_sound.ini
*********************************
...and the reason I have a separate switch for the inertia starter is because it's supposed to work in the same manner as for a B-17: first you wind up the inertia starter, the you engage(mesh) the engine (if anyone wonders what I'm up to)...

(For the moment I only have the one switch sound, but when I have an idea of the conventions for this, I will be able to add more as needed)

Anyway... if anyone is willing to help me out, I would be greatly appreciative! Thanks...


Scott Anderson
 
Last edited:
Scott,
Sorry I didn't get your e-mail sooner. I have been in the process of rebuilding my system after an SSD failure...
I think you want this:
Lvar00=InertiaStarterSwitch //"pretty sure this is wrong somehow as well
to read as this:
Lvar00=Sound inertia
Also, make sure that the file dsd_switches_sound.ini is in your main gauges folder and that the file Inertia.wav is in a folder called dsd in your main sound folder.
You can put the debugging element of the gauge on a panel window. This will let you scroll through the list of LVars and sounds that the gauge is expecting to work with.
You would use a panel.cfg entry that would look something like:
gauge11=Inertia_Starter!Debugger, 420,550,600,80

Doug
 
Doug,

Thanks for the response-- I´ll try it out and see what I get, and report back...

Also, I honestly was not trying to be disparaging with that remark about your readme for the sound gauges, so please forgive me-- but it gets really confusing (at least for me personally) because I don't have an understanding of how the code is supposed to be written correctly, so I think that for the layman it can be a bit difficult.

Scott
 
No, I have it set up this way now, and still no sound-- any suggestions? Could this be a Windows 7 issue? (ah, for the days of XP when your computer was truly yours :rolleyes:)
 
It might be because you have spaces

[LVars]
Lvar06=Sound_Attend3
etc

Then in the gauge, 1 (>L:Sound_Attend3,number)
In the panel cfg you should have a reference to both the dsd gauge and the ini file
gauge62=dsd_xml_sound3!dsd_xml_sound3, 941,24,5,5,.\Aircraft\DMFS Shared Files\Vickers SVC10 Panel\DM_VC10_sound.ini
The wav files themsleves should be in your main panel directory.
 
Hi,

I fly in FS2004.

I have the following gauge in my MAIN PANEL of each of my own aircraft.

gaugexx=DSD_FSX_XML_Sound!Sound, 1,1,1,1, ./Sound/dsd/Sound.ini

I have all my current 160 sound files in the FS2004\Sound\dsd folder.

Here is a selection:

Before Start Checklist.wav
Before Take Off Checklist.wav
Before Taxi Checklist.wav
bell.wav
Brakes.wav
Brakes1.wav
...
Seats for Departure.wav
Seats for Landing.wav
Shut Down Checklist.wav
Soft Click.wav
Sound.ini
Spoilers Armed.wav
Spoilers Deployed.wav
Stabilised.wav
Stall Warning.wav
Starter Valve Open.wav
Starting APU Now.wav


The above sound.ini file looks like

[Config]
MaxSounds=170
GlobalCommands=StopAllSoundsA
VolumeVarIn=VolumeInA
PanVarIn=PanInA
VolumeVarOut=VolumeOutA
PanVarOut=PanOutA
VolumePlayed=VolumePlayedVarA
PanPlayed=PanPlayedVarA
LoopPlayed=LoopPlayedVarA
LoopOut=LoopOutVarA

[Sounds]
Sound00=.\Sound\dsd\Ding Dong.wav
Sound01=.\Sound\dsd\Loud Click.wav
Sound02=.\Sound\dsd\Large Switch Click.wav
Sound03=.\Sound\dsd\Warning Light.wav
...
Sound154=.\Sound\dsd\ControlsAreFree.wav
Sound155=.\Sound\dsd\CommsCheck.wav
Sound156=.\Sound\dsd\Cessna Noncombustion.wav
Sound157=.\Sound\dsd\caapdis.wav
Sound158=.\Sound\dsd\Cockpit Warning.wav
Sound159=.\Sound\dsd\bell.wav
Sound160=.\Sound\dsd\Triple Bell.wav

[LVars]
Lvar00=DSD_XML_SOUND_00
Lvar01=DSD_XML_SOUND_01
Lvar02=DSD_XML_SOUND_02
Lvar03=DSD_XML_SOUND_03
...
Lvar157=DSD_XML_SOUND_157
Lvar158=DSD_XML_SOUND_158
Lvar159=DSD_XML_SOUND_159
Lvar160=DSD_XML_SOUND_160
Lvar161=DSD_XML_SOUND_161
Lvar162=DSD_XML_SOUND_162
...
Lvar170=DSD_XML_SOUND_170

I call the sound by the following XML in any gauge to ring a bell.

Code:
1 (&gt;L:DSD_XML_SOUND_159, number)

Works fine for me in FS2004 - it looks easier to implement as described by the other contributors.


It is how I interpreted the instructions a long, long time ago, and I have too many gauges operating this way to go changing things now :)


Walter


 
Your panel.cfg entry:
gauge50=Inertia_Starter!dsd_xml_sound3, 2,2,5,5, .\Gauges\dsd_switches_sound.ini
suggests that you renamed the sound gauge. That's OK, but I thought it might not hurt to check that you actually did that.
 
Back
Top