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

SIM PAUSE FLAG

Messages
46
Country
israel
The documentation states:
#define PAUSE_STATE_FLAG_OFF 0 // No Pause
#define PAUSE_STATE_FLAG_PAUSE 1 // "full" Pause (sim + traffic + etc...)
#define PAUSE_STATE_FLAG_PAUSE_WITH_SOUND 2 // FSX Legacy Pause (not used anymore)
#define PAUSE_STATE_FLAG_ACTIVE_PAUSE 4 // Pause was activated using the "Active Pause" Button
#define PAUSE_STATE_FLAG_SIM_PAUSE 8 // Pause the player sim but traffic, multi, etc... will still run

Which action in the simulator really triggers flag 8 pause?
As far as I can say it is only called on flight start/stop.
Also, 2024 added a 9flag, what does it mean? I see it called once when going to main manu from a flight.

I am trying to establish how to detect a flight is started/exited in both 2020 and 2024.
 
Which action in the simulator really triggers flag 8 pause?
I thought that was "Esc" pause while in a flight... the one that brings up the menu. No?
Pretty sure in FS20 it does (or did last time I checked). And I did try it in the first or 2nd released version of FS24 and it seemed the same at the time (haven't gone back into that mess since newer updates).

It should also be triggered/toggled with PAUSE_ON/PAUSE_OFF Key Events (but the menu doesn't show up in that case).

In a flight, "FLAG_PAUSE" (1) can only be triggered from the "Pause" option from the Dev Mode toolbar, as far as I can tell. Or a PAUSE_SET Key Event. (This is the "best" in-flight pause for most situations IMHO.)

2024 added a 9flag, what does it mean?
9? Wouldn't that be combo of PAUSE_STATE_FLAG_SIM_PAUSE | PAUSE_STATE_FLAG_PAUSE ? I'm not sure why they'd be combined since it seems redundant, but not really harmful either.
(Maybe someone (on their dev team) needed that to detect entering the main menu specifically...? In FS20 IIRC one had to look for "MainMenu.FLT" file being loaded in a `FlightLoaded` event.)

Do the `Sim/SimStart/SimStop` system events help? I forget now if they work reliably in FS20. Probably not... that would be too easy... I've seen the issue of detecting when in flight come up before but don't remember any resolutions offhand, sorry.
 
Back
Top