I know there are lost of dsd_fsx_xml_sound threads, but T couldn't find an answer in any of those. Anyway, I downloaded dsd_fsx_xml_sound so that I could hook some sounds up to panel switches on FSX. After reading the readme 5 times, I felt confident that I could install everything and it would work. I decided to make an electric hydraulic pump switch play a sound when switched on. After much trial and error, I got the sound to play, but as a result destroyed any other functionality the switch had. The switch no longer would move and the sound would come on and stay on no matter how many times I would click the switch. I was told that I could find the best help here on this website. Here is the section of the XML that I attempted to modify (for some reason the script I added isn't there anymore):
<Element id="HYD APU">
</Element>
<FloatPosition>85.000,166.000</FloatPosition>
<Select id="Select">
<Expression id="Expression">
<Minimum>0.000</Minimum>
<Maximum>1.000</Maximum>
<Script>(A:Hydraulic Switch:3, bool)</Script>
</Expression>
<Case id="Case">
<ExpressionResult>0.000</ExpressionResult>
<Image id="Image" Name="popup_overhead_switch_hydraulic_apu_off.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
<Case id="Case">
<ExpressionResult>1.000</ExpressionResult>
<Image id="Image" Name="popup_overhead_switch_hydraulic_apu_on.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
</Select>
</Element>
I believe that I was using ContolVar 2. If someone can tell me how to script this so that the switch has its regular functionality and plays the file when the switch is on. I was also wondering if there is any way that I can make the switch play different sound files for turning the pump on and off.
<Element id="HYD APU">
</Element>
<FloatPosition>85.000,166.000</FloatPosition>
<Select id="Select">
<Expression id="Expression">
<Minimum>0.000</Minimum>
<Maximum>1.000</Maximum>
<Script>(A:Hydraulic Switch:3, bool)</Script>
</Expression>
<Case id="Case">
<ExpressionResult>0.000</ExpressionResult>
<Image id="Image" Name="popup_overhead_switch_hydraulic_apu_off.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
<Case id="Case">
<ExpressionResult>1.000</ExpressionResult>
<Image id="Image" Name="popup_overhead_switch_hydraulic_apu_on.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
</Select>
</Element>
I believe that I was using ContolVar 2. If someone can tell me how to script this so that the switch has its regular functionality and plays the file when the switch is on. I was also wondering if there is any way that I can make the switch play different sound files for turning the pump on and off.