1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Detecting flight load completed

Discussion in 'SimConnect' started by JP744, 10 Nov 2017.

  1. JP744

    JP744

    Joined:
    20 Nov 2015
    Messages:
    17
    Country:
    france
    Hello,

    When loading a new flight, or changing time in P3D there is a black screen with progress bar during the load of textures, traffic, etc...

    I would like to detect when this loading occurs, and when it is completed through SimConnect. I don't find any reference about such a variable or event. May somebody point me in the right direction please ?

    Best regards,
    JP
     
  2. JB3DG

    JB3DG Resource contributor

    Joined:
    24 Jun 2010
    Messages:
    1,104
    Country:
    southafrica
    Unfortunately the only thing I can suggest is monitoring the GetSimTime function (see C++ timers in the wiki) to see if it has been increasing for 10-15 seconds or so after you get a Sim start event (use SubscribeToSystemEvent).
     
  3. WarpD

    WarpD

    Joined:
    9 Dec 2007
    Messages:
    949
    Country:
    us-ohio
    Look into SimConnect_SubscribeToSystemEvent and it's FlightLoaded System Event Name.
     
  4. JP744

    JP744

    Joined:
    20 Nov 2015
    Messages:
    17
    Country:
    france
    Thank you for the help. SimStart and SimStop évents looks like more what I am looking for, thanks for pointing me in this direction.

    Regards,
    JP
     
  5. WarpD

    WarpD

    Joined:
    9 Dec 2007
    Messages:
    949
    Country:
    us-ohio
    I agree... was just pointing you in the right direction. :)