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

Kaiii3 avatar image
Kaiii3 asked Kaiii3 commented

SimConnect Bug - Spawn outside reality bubble

Using AICreateSimulatedObject I am able to spawn an SimObject outside the current reality bubble. Using AICreateEnrouteATCAircraft this is blocked by the Sim and I get an exception.

I guess the spawn outside the area is a bug?

simconnect
10 |10000

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

1 Answer

·
Boris_ avatar image
Boris_ answered Kaiii3 commented

Hi @Kaiii3 ,

No, this is not a bug.
Regarding AICreateEnrouteATCAircraft , the two possible exceptions returned are SIMCONNECT_EXCEPTION_LOAD_FLIGHTPLAN_FAILED or SIMCONNECT_EXCEPTION_CREATE_OBJECT_FAILED
You have an error in your code that cause this behavior

Regards,
Boris

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

Hey Boris,


so the ability to spawn an object (boat) outside the bubble ()AICreateSimulationObject) is not a bug?

DOC is referring only to ATC stuff, but why not block any other non ATC stuff as well?

SIMCONNECT_EXCEPTION_OBJECT_OUTSIDE_REALITY_BUBBLE = 33,

).

For now we use a workaround by simulating the reality bubble ourself inside the application to check of the boat would spawn outside the bubble and prevent the injection on our side. For airplanes we can fallback on the Code=33 that will tell use that the airplane injected via AICreateEnrouteATCAircraft/AICreateParkedATCAIrcraft is at the moment ouside the bubble.


0 Likes 0 ·

Hi @Kaiii3 ,

In fact, it's not a bug because at the moment we don't really manage the reality bubble. There is some work to do on our side to improve this part.
Unfortunately no ETA yet on this subject.


Regards,
Boris

0 Likes 0 ·
Hey Boris,


rgr. I guess this will be part of the AI rework planed by you guys later on the road-map. We will keep "simulating" the bubble on our end, but would be great if the Exception for ATC airplanes can be "ported over" other objects as well as part of the rework :) So we do not need to simulate the bubble in every tool that is running.


0 Likes 0 ·

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.