• 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 Day and time

Messages
1,468
Country
italy
What is the correct variable to trigger an event such as an engine fire?
For example I want x to happen on day 19 of every month at or after midday.
Can you help? many thanks
vololiberista
 
Not really good with making gauges that use time or day of the month. I found that day of month was tough.
day dusk,dawn and night seem to be strange too. But day works fine.

Code:
<code>(E:TIME OF DAY,enum) 2 *</code>

DG:speanut:
 
You have probably thought of P:ABSOLUTE TIME, P:LOCAL TIME, or P:ZULU TIME already? Could be set up to enable something to occur at a regular monthly interval.
 
The sdk said to use E:
So would this work?

Code:
<code>(P:LOCAL DAY OF MONTH, number) 5 *</code>

DG:speanut:
 
E:LOCAL DAY OF MONTH is an even better variable for this. Thanks, DG, you're right. I think either E: or P: will work, but not sure why it would be multiplied by 5... Maybe something more like

(E:LOCAL DAY OF MONTH, enum) 19 == (E:LOCAL TIME, hours) 12 > AND if{ do something

and if you wanted to introduce an element of randomness to the time it will occur, there are XML random number generators out there that could be adopted for your situation, such as

http://forum.avsim.net/topic/238486-another-xml-random-number-generator/page__hl__random__fromsearch__1

Bob
 
Last edited:
Thanks Guys,
The aircraft has a generally good reputation as regards engine reliability. So, a once a month, in the afternoon would suffice!
vololiberista
 
Code:
<Gauge Name="Auto" Version="1.0">
<!--                      Time and day controlled                     -->
<Element>
   <Select>
     <Value>
       (E:LOCAL DAY OF MONTH, number) 12 == if { (>K:ENGINE_AUTO_START) } 
     </Value>
   </Select>
</Element>
</Gauge>

Failed! Just works all the time!

DG:speanut:
 
Code:
<Gauge Name="Auto" Version="1.0">
<!--                      Time and day controlled                     -->
<Element>
   <Select>
     <Value>
       (E:LOCAL DAY OF MONTH, number) 12 == if { (>K:ENGINE_AUTO_START) } 
     </Value>
   </Select>
</Element>
</Gauge>

Failed! Just works all the time!

DG:speanut:

It's 24 September, and if the Flight Sim date is set the same, then E:LOCAL DAY OF THE MONTH will return 24
 
I have completed the modelling thanks to your ideas. Last night at AUW I had a double engine fire warning immediately after rotation!!!!!!!!!!!!!!!!!!!!!!!!!!!!
It's a good thing I'm a real pilot!!! Even so, even in the VC10 the margin for error is minute. Used up all the rwy on landing!!!
I have set up three or four scenarios dependent on date and time.
vololiberista
 
Thanks Guys,
The aircraft has a generally good reputation as regards engine reliability. So, a once a month, in the afternoon would suffice!
vololiberista

Good reputation! Once a month!
The company would have gone bust years ago.
 
Good reputation! Once a month!
The company would have gone bust years ago.

From the Sim user point of view. It depends where you are at local time. And, not every month has 31 days!!!!!!!!!!!!!!
us pilots use "real" simulators to practice just such emergencies!!!!!!!!!
vololiberista
 
Back
Top