Loading "Prepar3D Scenario" screen signal available in SDK?

voss1917
Posts: 15
Joined: Sat Sep 23, 2017 10:56 am

Loading "Prepar3D Scenario" screen signal available in SDK?

Postby voss1917 » Wed May 23, 2018 9:21 pm

I am a addon developer and wonder if the SimConnect SDK has any variable that tells when the "Prepar3D Scenario" screen has finished loading? I want to load a complex addon airplane scenario ASAP after P3D has finished the scenario screen loading. Hopefully so fast after P3D has finished the loading of the "Prepar3D Scenario" screen that the user do not see it before the new loading scenario take place.

User avatar
Rob McCarthy
Lockheed Martin
Posts: 1591
Joined: Wed Aug 24, 2011 1:37 pm

Re: Loading "Prepar3D Scenario" screen signal available in SDK?

Postby Rob McCarthy » Thu May 24, 2018 9:00 pm

Hello,

Can you clarify what you're trying to do here? Prepar3D cannot load two scenarios at once. If you want your scenario to be the first one that loads you can set it to be the default.

Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead

voss1917
Posts: 15
Joined: Sat Sep 23, 2017 10:56 am

Re: Loading "Prepar3D Scenario" screen signal available in SDK?

Postby voss1917 » Tue May 29, 2018 3:13 pm

Due to the existing problem in Prepar3D that one can not load a scenario file that has been created with an advance airplane(i.e. PMDG jetliners) as the default, I want to start Prepar3D with the "Prepar3D Scenario" screen open.
I then want my app to detect that Prepar3D has open the "Prepar3D Scenario" screen and as soon as possible (with no delay) load the "advance scenario file"

Here is the planned actions in the app:
1. Receive the "Prepar3D Scenario" open
2. On receiving 1. above, Send a "Load" command to open the "Load Scenario" screen
3. Insert the text line of the "advance scenario file" into the "Search" field" of the "Load Scenario" screen
4. Send a "OK" command to initiate the loading of the " advance scenario file"
5. Load the scenario file with the advance airplane

All the steps above can be done manually, but I want it to be done in my app, so it looks like the "advance scenario file" is loaded directly wit as little delay as possible so the "Scenario" screens" are not seen.

User avatar
Rob McCarthy
Lockheed Martin
Posts: 1591
Joined: Wed Aug 24, 2011 1:37 pm

Re: Loading "Prepar3D Scenario" screen signal available in SDK?

Postby Rob McCarthy » Thu May 31, 2018 11:59 am

The SimConnect SystemEvent sample is a good place to start. There is also a SimConnect function that will load a scenario: SimConnect_FlightLoad. You won't need to inject anything into the UI.

Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead

voss1917
Posts: 15
Joined: Sat Sep 23, 2017 10:56 am

Re: Loading "Prepar3D Scenario" screen signal available in SDK?

Postby voss1917 » Thu May 31, 2018 5:03 pm

Thanks for your fast replay.

But, using SimConnect_FlightLoad do not solve what I want to accomplish. SimConnect_FlightLoad will only work when you have an active flight loaded and the sim is running, not when the sim is in UI screen "mode". This means you first have to load a default plane + scenery and then the SImConnect_FlightLoad which load another plane + another scenery. This means 2 loadings of plane + scenery. I wants to just have 1 loading. which should be how it should work IMHO.

There also seems to not be any SImConnect Event to tell when the UI "Scenario Startup" screen has been loaded.:(


Return to “SimConnect Interface Questions”

Who is online

Users browsing this forum: No registered users and 1 guest