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.


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


question

N6722C avatar image
N6722C asked N6722C answered

Can JS get the User's GamerTag

Is there a way to determine Programmatically, in JS,

(1) The current User's GamerTag
(2) The MSFS Product type ( Base / Premium / Deluxe) ?
(3) MSFS Version #


general
10 |10000

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

Yoanito avatar image
Yoanito answered runshotgun commented

Hello @N6722C

I'm sorry but there is no official way of gathering those informations.

Best regards,
Yohan

10 |10000

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

N6722C avatar image
N6722C answered

Thank you for that information,,


10 |10000

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

B21 avatar image
B21 answered

The API call used by the Nameplates (aka InGameMarkers) returns everyone else's Xbox gamertag, so there might be some convoluted scheme where you can get that to return the tag for the in-sim pilot.

The current combo of the map's GET_AIR_TRAFFIC (locations but no info about the planes/users) and the API call used by InGameMarkers (xbox name, altitude, plane type, but no location) is just enough to not be useful and the data can't be joined up. If it is improved with a single API call, my plea would be to add ATC ID to the data (so plane_type, lat/long/alt, atc_id, xbox_id). After that I could use the velocity vectors and maybe an on_ground indication so I could predict where the plane is between samples.


10 |10000

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

N6722C avatar image
N6722C answered

It was Benjamin Franklin who first said, “You can do anything you set your mind to”.

In many cases, this also applies to MSFS -- with a little work and thinking "outside the box".

10 |10000

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

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.