plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

In the upcoming flighting, we've changed the behaviour of the content.xml file. If your addon uses this file, please read this article!

Please take a moment to read the platform’s guidelines before you get started!


question

aguther avatar image
aguther asked FlyingRaccoon commented

Detect when in "Ready to Fly" screen

Hello,

As far as I remember pre-SU9 the simulation variable "CAMERA STATE" was still on "11" when in the "READY TO FLY" screen. Since SU9 it is no longer the case and therefore it cannot be used any longer to detect being in the "READY TO FLY" screen. I've also seen that simulation time now beings to increase in this screen as well, so this cannot be used any longer, too.

How can it be detected that a user is on the "READY TO FLY" screen?

The reason this is needed is the following:

I've noticed that some initialization happens when you press the "READY TO FLY" button. We set the Autopilot Speed Slot Index to "1" in our initialization. You clearly see this when watching the variable while being in the "READY TO FLY" screen. Now when you press the "READY TO FLY" button it jumps again to "2" as it is on the entrance of the screen. When you're clicking fast on the "READY TO FLY" this jumping back to "2" does not happen, because our initialization code is not called yet.

The idea would be now to wait to run the initialization code until the user has pressed the "READY TO FLY" button.

aircraftsimconnectsu9
1 comment
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Monitor the Sim Var Camera State..


S.

0 Likes 0 ·
FlyingRaccoon avatar image
FlyingRaccoon answered FlyingRaccoon commented

Hello @aguther

There was a regression on this unfortunately. The list of state was changed in a way that impact existing ids.
We noticed it too late for it to be fixed in the final SU9.

Our apologies for the inconvenience.

Here's the updated list of IDs, READY TO FLY aka In-Game RTC is now 16:
1650546275455.png

Regards,
Sylvain


1650546275455.png (50.2 KiB)
2 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

@Nocturne I suppose,


"Hanger" -> "Hangars"


please!


(an hanger can sounds pretty creepy!)

0 Likes 0 ·
Fixed. Thank you ;)
0 Likes 0 ·
aguther avatar image
aguther answered FlyingRaccoon commented

Hello Sylvain,

Thank you for the answer. The screenshot you posted is the "to-be" state when it's fixed in a later version, i.e. SU10?

Best,
Andreas

6 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

No, it's the current state and will remain as is.
0 Likes 0 ·
aguther avatar image aguther FlyingRaccoon ♦♦ ·

Ok, I should have been clearer. In SU9 it's not showing "16", it's showing "2" when you're in the "READY TO FLY" screen. I would be happy if it would match the list you've provided, but it doesn't:

0 Likes 0 ·
camera-state.mp4 (2.8 MiB)
Andreas,

I believe since you have RTC disabled or are choosing a flight where there will be no RTC (RTC is the little cutscene that loops over ready-to-fly), it is possible there will be no state 16, since no RTC is playing.

Can you try in a scenario with RTC and see if you get state 16, please?

-Matt

0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.