- Messages
- 4
- Country

(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
], 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" 
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
"
*********************************
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
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
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
"*********************************
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:


