• 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 Depressurisation Question

Messages
1,468
Country
italy
What I want to do is to create an emergency depressurisation scenario. Is the only way I can do that by using (K:TOGGLE_AIRCRAFT_EXIT)?
I don't actually want the doors to open. My cabin pressurisation system (courtesy of Willem!) contains (A:EXIT OPEN:0,percent) which is I presume affected by the K: variable. Could I change that, thus triggering the warnings?
vololiberista
 
My cabin pressurisation system (courtesy of Willem!) contains (A:EXIT OPEN:0,percent) which is I presume affected by the K: variable. Could I change that, thus triggering the warnings?
vololiberista

Is that written in XML?

Bob
 
Hey Volloliberista,

I have a similar effect in my new plane. I use altitude at 9,000 feet to sound a mini 'tune' sound (ding) when auto pressurization occurs (self managed system) and I have a 'Pressurize/Depressurize' button that makes a sound like decompressing air (sound effect from SoundRangers.com)


I whipped up this little code which will activate when the door is open, and then require altitude and airspeed to sound off an alarm, sound, etc.

Code:
   <Element>
            <Select>
            <Value>
                (A:EXIT OPEN:0,percent) 1 &gt;
                   if{
                      (A:VELOCITY BODY Z,knot) 100 &gt;
                      (A:PLANE ALTITUDE, feet) 9005 &gt;
                      and and
                          if{
                            1 (&gt;L:Play Scary Alarm Sound,bool) 
                            }
                     }
            </Value>
            </Select>
   </Element>


<Element>
<Select>
<Value>
(A:EXIT OPEN:0,percent) 1 &gt;
if{
(A:VELOCITY BODY Z,knot) 100 &gt;
(A:PLANE ALTITUDE, feet) 9005 &gt;
and and
if{
1 (&gt;L:Play Scary Alarm Sound,bool)
}
}
</Value>
</Select>
</Element>


EDIT: Not tested.


Bill
 
Last edited:
Yes, I've already done the code for the alarm and also for an alarm cancel button. The first snippet sets up the alarm and tests the status of the alarm cancel button. The second snippet "resets" the cancel button :-
Code:
<Element>
    <Select>
<Value>(L:Cabin_Alt_ind,number) 10000 &gt; (L:ALT_PRESSED,bool) 0 ==  and
if{ 2 (>L:DM SOUND BEEP,number) } els{ 0 (>L:DM SOUND BEEP,number) } </Value>
    </Select>
   </Element>

<Element>
    <Select>
<Value>(L:Cabin_Alt_ind,number) 10000 &lt; if{ 0 (>L:ALT_PRESSED,bool) } </Value>
    </Select>
   </Element>

What I'm thinking of doing/trying is to set up an actual depressurisation emergency at altitude. One way is to "open" the door. It seems the only way. Is it possible to "open" the door without opening it if you get my drift?
vololiberista
 
Last edited:
Is that written in XML?

Bob

Yes it is! It's pretty extensive and complicated. He wrote it for a cabin height gauge, cabin altitude selector, cabin differential pressure and cabin vertical speed. It was written for an Antonov I believe.
vololiberista
 
Is it possible to "open" the door without opening it if you get my drift?

VolloLiberista


How about opening door 4. :cool:

If you have it in the config file, but not in the model, no animation will appear, but the code will exist in XML land.

And... If you did need to have a door animate, just take a cube, name it the door4 and animate it in a hidden cell in the plane.
 
Hi,
actually in the code there is a functionality for dumping cabin pressure.

You see, in this gauge i needed to implement pressure dumping when a door was open (the large cargo ramp door can be opened in flight) and there is no other possible way that this gauge would know that an open door means a big hole in the aircraft and hence no pressurisation... :D

There are a few conditions in which the press gets dumped:
-a door is open
-aircraft on ground
-using the emergency dump switch

The dump switch is not implemented i believe, but it is very easy to add the switch, because all pressure dumping is controlled by L:Cabin_Press_Dump, number which is inside the Cabin Altitude Selector gauge.
I believe that for L:Cabin_Press_Dump, number=0, there is no dump (cabin pressurisation is possible) and with any other value the pressure gets dumped. The dump switch would simply toggle the value of L:Cabin_Press_Dump, number.

So it is not necessary to open a door, just make a controlling logic for L:Cabin_Press_Dump, number as per your desired conditions.

Hope this helps!

grt
Willem.
 
Last edited:
Hi,
actually in the code there is a functionality for dumping cabin pressure.

You see, in this gauge i needed to implement pressure dumping when a door was open (the large cargo ramp door can be opened in flight) and there is no other possible way that this gauge would know that an open door means a big hole in the aircraft and hence no pressurisation... :D

There are a few conditions in which the press gets dumped:
-a door is open
-aircraft on ground
-using the emergency dump switch

The dump switch is not implemented i believe, but it is very easy to add the switch, because all pressure dumping is controlled by L:Cabin_Press_Dump, number which is inside the Cabin Altitude Selector gauge.
I believe that for L:Cabin_Press_Dump, number=0, there is no dump (cabin pressurisation is possible) and with any other value the pressure gets dumped. The dump switch would simply toggle the value of L:Cabin_Press_Dump, number.

So it is not necessary to open a door, just make a controlling logic for L:Cabin_Press_Dump, number as per your desired conditions.

Hope this helps!

grt
Willem.

Thanks Willem,
I did wonder if L:Cabin_Press_Dump was a significant factor. So, I'll set something up to see if it works!
vololiberista

PS It does seem to!! :-) So now I can set about creating dump valves as per the manual. Many thanks
vololiberista
 
Last edited:
Back
Top