Multiplayer Traffic (not AI) incorrect values

Version: SU4

Frequency: Consistently

Severity: High

Context: RequestDataOnSimObject for “FAKESIM” / Multiplayer objects return 0 for many variables:

Plane Latitude
Plane Longitude
Plane Altitude
Plane heading Degrees true

and many others. This data is required for TCAS Simulation. I note the limitations on multiplayer vars here: https://docs.flightsimulator.com/html/Programming_Tools/SimConnect/API_Reference/Events_And_Data/#multiplayer

Coherent.call(‘GET_AIR_TRAFFIC’) - JS calls show no multiplayer traffic either.

I have verified I can physically see the multiplayer traffic and he is in the same group as me.

I confirm that only AI aircraft are available via SimConnect or Coherent. This is the SU5 beta. I have not tested it via WASM.

1 Like

Hello @JoshC @DeelLav

I agree regarding the simvars.
However, I just tested the GET_AIR_TRAFFIC call and could get data from other players, both in my group and outside:

Am I missing something?

Regards,
Sylvain

@FlyingRaccoon The last I tried with the same call (previously on SU4) and couldn’t get any traffic in my “group” (which admittedly was only one guy). Is there any logs or etc to collect to help repo? The repro step was simply to add “friend” into group and spawn at the same airport - then i called coherent with GET_AIR_TRAFFIC and didn’t get anything. I did get AI traffic though.

Also is there any plan to expand this to simconnect? After all we can get the simbobject id, we just need a proper return on those vars.

That’s the first scenario I tested and I received the info for his airplane.
So either that’s an issue that was already fixed in a recent update or this occurs in an even more specific context.
There are no logs for this scenario, I thin it would need to be replicated reliably in SU5 so we can investigate further.

Yes that’s the first part of the bug report, I’ll have this investigated.
In the meantime, if this is applicable in your case, you can use the CommBus API to share that data between JS and WASM or SimConnect.

Regards,
Sylvain

Hello,
I no longer have that issue in the latest beta version, 1.7.17.0.
Thank you.