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

Save the date ! On February the 9th, at 10:30am, we will be happy to meet you again for a live SDK Q&A ! You can already ask all your questions here on the forum.

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.

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


question

thealx avatar image
thealx asked FlyingRaccoon commented

SimConnect does not return scenery simobjects whith radius parameter less than 20km

Tested with WASM and .NET

Way to reproduce:

any airfield, park near to windsock

Example code:

SimConnect_RequestDataOnSimObjectType(_hSimConnect, REQUEST_ID, DEFINITION_ID, 20000, SIMCONNECT_SIMOBJECT_TYPE_ALL);

does not return windsock or any scenery objects

SimConnect_RequestDataOnSimObjectType(_hSimConnect, REQUEST_ID, DEFINITION_ID, 20001, SIMCONNECT_SIMOBJECT_TYPE_ALL);

return windsock and many objects around

Exceptions:

Objects inserted by SimConnect_AICreateSimulatedObject returned with low radius value properly


edit:

Interesting coincidence - in P3D SimConnect_RequestMobileSceneryInRadius (not available in MSFS) is for:

used to retrieve mobile scenery objects that are within a specified radius of the user's vehicle. Any request over 20,000 meters will return all mobile scenery objects.

seems like similar rule works here - distance filter is broken and only way to retreive these objects is query all of them by setting 20001m

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

0 Answers

· Write an Answer

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.