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

Fire extinguisher doesn't work

With much experimentation this afternoon for about 4 hours I have been able to make the fire extinguisher gauges for both engines for the ERJ I have been trying to make. Only one problem...I would like the bright handle to appear and the "fireloop.wav" which is in FSX sounds folder to sound when the fire is detected but have not been able to do that. Thanks for your gauge so that I had something to work with and didn't have to start from scratch. Can you give me any suggestions? Here is the code as I have modified it:

Code:
<!-- Engine Fire Handle -->
<Gauge Name="Fire Handle Gauge" Version="1.0">
    <Element>
      <Position X="0" Y="0"/>
      <Select>
         <Value>(L:ENG1 FIRE EXT,bool)</Value>
         <Case Value="1">
            <Image Name="Fire_handles_1_on_light.bmp" Bright="Yes"/>
         </Case>
      </Select>
   </Element>

   <Element>
      <Select>
         <Value>(L:ENG 1 FIRE TEST,number) (L:ENG FIRE TEST,number) |</Value>
         <Case Value="1">
            <Image Name="Fire_handles_1_on_test_light.bmp" Bright="Yes"/>
         </Case>
<Case Value="0">
            <Image Name="SWAP.bmp"/>
         </Case>
      </Select>
   </Element>

   <Element>
      <Select>
         <Value>(L:FIRE HANDLE 1 PULLED,number)</Value>
         <Case Value="1">
            <Image Name="Fire_handles_1_pulled.bmp" Bright="Yes"/>
         </Case>
<Case Value="0">
            <Image Name="SWAP.bmp"/>
         </Case>
      </Select>
   </Element>

   <Element>
      <Select>
         <Value>(L:EF_1,number)</Value>
         <Case Value="1">
            <Image Name="Fire_handles_1_pulled.bmp" Bright="Yes"/>
         </Case>
         <Case Value="0">
            <Image Name="SWAP.bmp"/>
         </Case>
      </Select>
   </Element>

   <Mouse>
      <Area Top="61" Bottom="106" Left="20" Right="126">
         <Tooltip>Eng.1 Fire Control Handle</Tooltip>
         <Cursor Type="Hand"/>
         <Click>(L:ENG1 FIRE EXT,bool) 0 != if{ 0 (&gt;L:ENG1 FIRE EXT,bool) (>K:EXTINGUISH_ENGINE_FIRE) 0 (>L:Sound_Fireloop,enum) 1 (>L:FIRE HANDLE 1 PULLED,number) } els{ 1 (&gt;L:ENG1 FIRE EXT,bool) 0 (>L:EF_1,number) (>K:ENTINGUISH_ENGINE_FIRE) 2 (>L:Sound_Fireloop,enum) }

</Click>
      </Area>
   </Mouse>
</Gauge>
 
I am totally aware of that, two bmps = a switch off/on. I have made quite a few of these gauges. I have even with help here had a rotary switch and a rotary handle. This is quite different. I could totally understand Fire handles 1 on and Fire handle 1 off for an on and off. That is if the handle were a click spot or a switch. Now what...??? PLEASE
Your bmps can either be triggered by a switch or a remote variable. You don't have to have a click spot to make a bmp visible.
 
Thank you for taking the time to try and help. I have the gauge working on both engines AND extinguishing the fire when it starts. What it DOESN't (caps not angry, emphasizing) do and I don't know why is turn "bright" when the fire starts. I have to click it to change from "off" to "fire handles 1 on light" Also I thought that your L:sound fire enum was the fire bell which is fireloop.wav in FSX but it doesn't go off. Doug Dawson's sound gauge is in the aircraft.
 
Thank you for taking the time to try and help. I have the gauge working on both engines AND extinguishing the fire when it starts. What it DOESN't (caps not angry, emphasizing) do and I don't know why is turn "bright" when the fire starts. I have to click it to change from "off" to "fire handles 1 on light" Also I thought that your L:sound fire enum was the fire bell which is fireloop.wav in FSX but it doesn't go off. Doug Dawson's sound gauge is in the aircraft.
You need to create your own sound for the fire warning and create an Lvar to brighten the light when the fire warning goes off.
 
Ok, now that I spent the last 2 hours trying to find out and failing how to do this, I am not ashamed to say I just don't understand this. Can you PLEASE write me the lines I need to add to the gauge to make the bright bmp show when the fire starts and make the bell sound. You have the code of my working gauge above. I don't have a clue how to do this. The extent of my successful XML is on/off switches. I just don't understand it no matter how had I study and try. My grey cells are just worn out at 68 I guess. I would really appreciate the help and thanks for your patience with this thread.
 
Code:
   <Element>
      <Position X="0" Y="0"/>
      <Select>
         <Value>(L:ENG1 FIRE EXT,bool)</Value>
         <Case Value="1">
            <Image Name="Fire_handles_1_on_light.bmp" Bright="Yes"/>
         </Case>
      </Select>
   </Element>

   <Element>
      <Select>
         <Value>(L:ENG 1 FIRE TEST,number) (L:ENG FIRE TEST,number) |</Value>
         <Case Value="1">
            <Image Name="Fire_handles_1_on_test_light.bmp" Bright="Yes"/>
         </Case>
<Case Value="0">
            <Image Name="SWAP.bmp"/>
         </Case>
      </Select>
   </Element>

It's as simple as the above. The first element is the bmp for the fire handle light in the discharged position. The second doubles as the test light and if the handles has been returned to the normal position after discharge. SWAP.bmp is a black square therefore invisible.
 
Here's a more complex gauge for you to study. It is the steward's light on the OH panel above the Captain. The light fitting is typical of that era of British aircraft in the the light fitting itself can be pressed to test and will illuminate. So there are two bmps to show the different positions of the light fitting and two for the obviously different positions of the light.
If the steward calls then the light illuminates. If the captain calls the cabin then the light fitting changes position and the light illuminates (obviously now from a slightly different position). Also the Captain can call the cabin in two ways. Left click and hold will produce three dings ie. "Cabin Crew take your seats for take-off." Or right click hold for two dings ie. "Cabin crew do the safety briefing" and that also starts the wav file of the safety briefing.
Code:
<Gauge Name="Cabin Call" Version="1.0">

<Element>
      <Select>
         <Value>(L:CABIN CALL,number)</Value>
         <Case Value="0">
            <Image Name="ccallout.bmp"/>
         </Case>
         <Case Value="1">
            <Image Name="ccallin.bmp"/>
         </Case>
      </Select>
   </Element>

<Element>
      <Select>
         <Value>(L:CABIN CALL,number)</Value>        
         <Case Value="1">
            <Image Name="AMBER_ON_ON.bmp" Bright="Yes"/>
         </Case>
      </Select>
   </Element>

<Element>
      <Select>
        <Value>
     (L:CAB LIGHT 2,number) (P:local time, seconds) &gt; |
   </Value>        
         <Case Value="1">
            <Image Name="AMBER_STEW_ON_ON.bmp" Bright="Yes"/>
         </Case>
      </Select>
   </Element>

<Mouse>
         <Tooltip>Cabin Call</Tooltip>
         <Cursor Type="Hand"/>
    <Click Kind="LeftSingle+LeftRelease+RightSingle+RightRelease">
            (M:Event) 'LeftSingle' scmp 0 == if{ (L:CABIN CALL,number) ! (&gt;L:CABIN CALL,number)    
2 (>L:Sound_attend2a,enum)
1 (>L:CAB LIGHT ON,number) }
            (M:Event) 'LeftRelease' scmp 0 == if{ (L:CABIN CALL,number) ! (&gt;L:CABIN CALL,number)   
0 (>L:Sound_attend2a,enum)
0 (>L:CAB LIGHT ON,number) }
(M:Event) 'RightSingle' scmp 0 ==  if{ (L:CABIN CALL,number) ! (&gt;L:CABIN CALL,number)   
2 (>L:Sound_attend2a,enum)
1 (>L:CAB LIGHT ON,number) }
(M:Event) 'RightRelease' scmp 0 == if{ (L:CABIN CALL,number) ! (&gt;L:CABIN CALL,number)  
0 (>L:Sound_attend2a,enum)
0 (>L:CAB LIGHT ON,number) 1 (>L:Sound_BAsafety,enum)
1 (>L:Monitor_Sound, bool) }
        </Click>   
   </Mouse>
</Gauge>
 
Thank you. I am trying to learn by studying the gauge after one of you helps me here. I will test these two.
 
I have these working. Thanks. There are three other fire extinguishers I would like to model, much simpler switches: Cargo Bay 1, Cargo Bay 2 and APU. Have you ever done these in any of your aircraft? They are guarded switches which I have the artwork for no problem. Open the guard, push button to activate.
 
I have these working. Thanks. There are three other fire extinguishers I would like to model, much simpler switches: Cargo Bay 1, Cargo Bay 2 and APU. Have you ever done these in any of your aircraft? They are guarded switches which I have the artwork for no problem. Open the guard, push button to activate.
no I haven't done that though I have done guarded switches. For example right clcik to open close the guard and left for the switch.
 
Someone else found an xml gauge in the Lear45.cab which I unpacked and uploaded but it almost looks like it is automatic. I found the APU fire in the failures and activated it but you never see any fire in the tail so I don't know what is happening. Here is the gauge. Can you take a look and let me know what you think. I really appreciate your input and your help. I did not find ANYWHERE about a Cargo fire or smoke in the cargo bay. I may just put these in as open/click dummy switches to test.
Code:
<?xml version="1.0" encoding="UTF-8"?>

<SimBase.Document Type="AceXML" version="1,0">
    <Descr>AceXML Document</Descr>
    <Filename>popup_apu.xml</Filename>
    <SimGauge.Gauge id="popup_apu" ArtDirectory=".">
        <FloatPosition>0.000,0.000</FloatPosition>
        <Size>231,85</Size>
        <Image id="Image" Name="popup_apu_background.bmp">
            <Transparent>True</Transparent>
        </Image>
       
       
       
        <Element id="APU DC VOLTS">
            <FloatPosition>35.000,11.000</FloatPosition>
            <Visibility>(A:CIRCUIT GENERAL PANEL ON, bool)</Visibility>
            <GaugeText id="APU DC VOLTS Readout">
                <Bright>True</Bright>
                <FontFace>Quartz</FontFace>
                <FontColor>red</FontColor>
                <FontHeight>15</FontHeight>
                <Bold>True</Bold>
                <GaugeString>
                    %(
                    (A:APU PCT RPM, percent over 100) 0.6 &gt;
                    if{ (A:APU Volts, volts) } els{ 0 }
                    )%!4.1f!
                </GaugeString>
                <Length>8</Length>
                <Size>49,16</Size>
                <Transparent>True</Transparent>
                <VerticalAlign>CENTER</VerticalAlign>
                <HorizontalAlign>CENTER</HorizontalAlign>
            </GaugeText>
        </Element>
        <Element id="APU Fire">
            <FloatPosition>160.000,21.000</FloatPosition>
             <Select id="Select">
                <Expression id="Expression">
                    <Minimum>0.000</Minimum>
                    <Maximum>1.000</Maximum>
                     <Script>(A:CIRCUIT GENERAL PANEL ON, bool) 1 == if{ (A:APU on fire detected,bool) (A:Fire Bottle Discharged:3,bool) or } els{ 0 }</Script>
                </Expression>
                <Case id="Case">
                    <ExpressionResult>0</ExpressionResult>
            <Image id="Image" Name="popup_apu_fire_off.bmp">
            <Transparent>True</Transparent>
            </Image>
        </Case>
                <Case id="Case">
                    <ExpressionResult>1</ExpressionResult>
            <Image id="Image" Name="popup_apu_fire_on.bmp">
            <Transparent>True</Transparent>
                        <Bright>True</Bright>
            </Image>
          </Case>
        </Select>        
        </Element>
       
        <Element id="APU Stop / Run / Start">
            <FloatPosition>111.000,6.000</FloatPosition>
             <Select id="Select">
                <Expression id="Expression">
                    <Minimum>0.000</Minimum>
                    <Maximum>2.000</Maximum>
                    <Script>
                        (L:APU Run,number)
                        (A:APU PCT STARTER, percent over 100) near +
                    </Script>
                </Expression>
                <Case id="Case">
                    <ExpressionResult>0</ExpressionResult>
            <Image id="Image" Name="popup_apu_switch_stop.bmp">
            <Transparent>True</Transparent>
            </Image>
                </Case>
                <Case id="Case">
                    <ExpressionResult>1</ExpressionResult>
                    <Image id="Image" Name="popup_apu_switch_run.bmp">
                    <Transparent>True</Transparent>
                    </Image>
                </Case>
                <Case id="Case">
                    <ExpressionResult>2</ExpressionResult>
                    <Image id="Image" Name="popup_apu_switch_start.bmp">
                        <Transparent>True</Transparent>
                    </Image>
                </Case>
            </Select>        
        </Element>
       
        <Element id="APU Fault">
            <FloatPosition>67.000,44.000</FloatPosition>
             <Select id="Select">
                <Expression id="Expression">
                    <Minimum>0.000</Minimum>
                    <Maximum>1.000</Maximum>
                    <Script>0</Script>
                </Expression>
                <Case id="Case">
                    <ExpressionResult>0</ExpressionResult>
            <Image id="Image" Name="popup_apu_annunciator_apu_fault_off.bmp">
            <Transparent>True</Transparent>
            </Image>
                </Case>
                <Case id="Case">
                    <ExpressionResult>1</ExpressionResult>
            <Image id="Image" Name="popup_apu_annunciator_apu_fault_on.bmp">
            <Transparent>True</Transparent>
                        <Bright>True</Bright>
            </Image>
          </Case>
        </Select>        
        </Element>
       
        <Element id="APU ON/OFF">
            <FloatPosition>28.000,45.000</FloatPosition>
             <Select id="Select">
                <Expression id="Expression">
                    <Minimum>0.000</Minimum>
                    <Maximum>1.000</Maximum>
                    <Script>
                        (A:CIRCUIT GENERAL PANEL ON, bool) 1 ==
                        if{ (A:APU PCT RPM, percent over 100) near } els{ 0 }
                    </Script>
                </Expression>
                <Case id="Case">
                    <ExpressionResult>0</ExpressionResult>
            <Image id="Image" Name="popup_apu_annunciator_apu_on_off.bmp">
            <Transparent>True</Transparent>
            </Image>
                </Case>
                <Case id="Case">
                    <ExpressionResult>1</ExpressionResult>
            <Image id="Image" Name="popup_apu_annunciator_apu_on_on.bmp">
            <Transparent>True</Transparent>
                        <Bright>True</Bright>
            </Image>
          </Case>
        </Select>        
        </Element>
        <MouseArea id="MouseArea">
            <FloatPosition>0.000,0.000</FloatPosition>
            <Size>231,85</Size>
             <MouseArea id="APU Volts">
                 <FloatPosition>35.000,8.000</FloatPosition>
                 <Size>50,25</Size>
                 <CursorType>None</CursorType>
                 <MouseClick id="MouseClick">
                     <Script></Script>
                     <ClickType>LeftSingle</ClickType>
                 </MouseClick>
                <Tooltip id="Tooltip">
                    <DefaultId>TOOLTIPTEXT_APU_VOLTS</DefaultId>
                </Tooltip>
             </MouseArea>
             <MouseArea id="APU Fault">
                 <FloatPosition>67.000,44.000</FloatPosition>
                 <Size>26,22</Size>
                 <CursorType>None</CursorType>
                 <MouseClick id="MouseClick">
                     <Script></Script>
                     <ClickType>LeftSingle</ClickType>
                 </MouseClick>
                <Tooltip id="Tooltip">
                    <DefaultId>TOOLTIPTEXT_APU_FAULT_LIGHT</DefaultId>
                </Tooltip>
             </MouseArea>
             <MouseArea id="APU ON/OFF">
                 <FloatPosition>28.000,45.000</FloatPosition>
                 <Size>22,21</Size>
                 <CursorType>None</CursorType>
                 <MouseClick id="MouseClick">
                     <Script></Script>
                     <ClickType>LeftSingle</ClickType>
                 </MouseClick>
                <Tooltip id="Tooltip">
                    <DefaultId>TOOLTIPTEXT_APU_ONOFF_LIGHT</DefaultId>
                </Tooltip>
             </MouseArea>
            <MouseArea id="APU Start">
                <FloatPosition>111.000,6.000</FloatPosition>
                <Size>49,37</Size>
                <CursorType>Hand</CursorType>
                <MouseClick id="MouseClick">
                    <Script>
                        1 (&gt;L:APU Run,number)
                        1 (&gt;K:APU_STARTER)
                        1 (&gt;K:APU_GENERATOR_SWITCH_SET)
                    </Script>
                    <ClickType>LeftSingle</ClickType>
                </MouseClick>
                <Tooltip id="Tooltip">
                    <DefaultId>TOOLTIPTEXT_APU_SWITCH</DefaultId>
                </Tooltip>
            </MouseArea>
            <MouseArea id="APU Stop">
                <FloatPosition>111.000,43.000</FloatPosition>
                <Size>49,37</Size>
                <CursorType>Hand</CursorType>
                <MouseClick id="MouseClick">
                    <Script>
                        0 (&gt;K:APU_GENERATOR_SWITCH_SET)
                        0 (&gt;L:APU Run,number)
                        0 (&gt;K:APU_OFF_SWITCH)
                    </Script>
                    <ClickType>LeftSingle</ClickType>
                </MouseClick>
                <Tooltip id="Tooltip">
                    <DefaultId>TOOLTIPTEXT_APU_SWITCH</DefaultId>
                </Tooltip>
            </MouseArea>
             <MouseArea id="APU Fire">
                 <FloatPosition>165.000,23.000</FloatPosition>
                 <Size>43,43</Size>
                 <CursorType>Hand</CursorType>
                 <MouseClick id="MouseClick">
            <Script>3 (&gt;K:APU_EXTINGUISH_FIRE)</Script>
                 </MouseClick>
                <Tooltip id="Tooltip">
                    <DefaultId>TOOLTIPTEXT_APU_FIRE_SWITCH</DefaultId>
                </Tooltip>
             </MouseArea>
        </MouseArea>
    </SimGauge.Gauge>
</SimBase.Document>

I just extracted the APU fire element and made a new gauge of this but I am giving you the entire gauge so that you can put together what part of this i need for an APU fire because i obviously missed something. Thanks
 
I don't think you will see a fire unless it has been animated in the model. The gauge shows bmps that are activated by
Code:
<Script>(A:CIRCUIT GENERAL PANEL ON, bool) 1 ==
if{ (A:APU on fire detected,bool) (A:Fire Bottle Discharged:3,bool) or } els{ 0 }</Script>
                </Expression>
                <Case id="Case">
                    <ExpressionResult>0</ExpressionResult>
            <Image id="Image" Name="popup_apu_fire_off.bmp">

And here is the code activated by the switches. There's no evidence of any fire effect. That would be activated by th A var but unless the modeller has coded it you won't see anything.

Code:
<MouseArea id="APU Fire">
                 <FloatPosition>165.000,23.000</FloatPosition>
                 <Size>43,43</Size>
                 <CursorType>Hand</CursorType>
                 <MouseClick id="MouseClick">
            <Script>3 (&gt;K:APU_EXTINGUISH_FIRE)</Script>
                 </MouseClick>
                <Tooltip id="Tooltip">
                    <DefaultId>TOOLTIPTEXT_APU_FIRE_SWITCH</DefaultId>
 
The engine fire effect is displayed at the corrdinates of the engines, as defined in the aircraft.cfg. As there is no way to define where the APU is located on the aircraft in the aircraft.cfg, FSX won't display any kind of fire effect for it whatsoever.
 
Back
Top