• 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.

xml sound gauge help

Messages
35
Country
southafrica
Hello

I've been trying to insert a dsd sound gauge (dsd_xml_sound3)into the default crj700 pop-up panel - namely the apu start/stop button. I have searched many forums and have come up with some L:variables such as;
1 (>L:dsd_xml_id_00,number)(ground, bool) if { 1 (L:playMySound,number) } els{ 0
(L:playMySound,number) }

and
1 (>L:"your sound", number)
(G:Var1, bool) ! (>G:Var1, bool)

I have three sounds (two if I loop one of them)-
switch on;run(a loop) and switch off.

This is my sound ini:
[Config]
MaxSounds=3
Lvar=dsd_xml_sound_id
LvarStop=APU_SoundStop

[Sounds]
Sound00=./Sound/APUS_Sounds/APU01_start.wav,95
Sound01=./Sound/APUS_Sounds/APU02_run.wav,90
Sound02=./Sound/APUS_Sounds/APU03_stop.wav,95

[LVars]
Lvar00=APU_Switch_on
Lvar01=APU_Switch_run
Lvar02=APU_Switch_off

and this is the xml part of the crj overhead panel:

- <Element id="APU">
<FloatPosition>92.000,52.000</FloatPosition>
- <Select id="Select">
- <Expression id="Expression">
<Minimum>0.000</Minimum>
<Maximum>1.000</Maximum>
<Script>(A:APU Generator Switch, bool)</Script>
</Expression>
- <Case id="Case">
<ExpressionResult>0.000</ExpressionResult>
- <Image id="Image" Name="popup_overhead_switch_electrical_power_apu_off.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
- <Case id="Case">
<ExpressionResult>1.000</ExpressionResult>
- <Image id="Image" Name="popup_overhead_switch_electrical_power_apu_on.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
</Select>
</Element>

and this is my callout for the gauge:

[Window09]
gauge00=APUS_Sound!dsd_xml_sound3, 0,0,0,0
./gauges/APUS_Sound.ini


I would think that the L:variable should go into the section <script>?

My problem is that I don't know where to insert the triggers and if they are the correct ones. Would someone please help me?

Kindest Regards
Paul
 
Back
Top