TwinFan / LiveTraffic

LiveTraffic is an X-Plane multiplayer plugin, which fills your sky with live air traffic based on public flight tracking data.
https://twinfan.gitbook.io/livetraffic/
Other
99 stars 24 forks source link

Windows: Multiplayer location initialized to zeroes instead of "far away" #170

Closed TwinFan closed 4 years ago

TwinFan commented 4 years ago

Describe the bug When LiveTraffic initializes multiplayer positions (after being activated, before the first planes are actually drawn at live positions) it incorrectly assigns x/y/z=0 instead of expected value 10000000.

To Reproduce Steps to reproduce the behavior:

  1. Use any application displaying multiplayer AI aircraft (XP's internal map, FSTramp, Little NavMap)
  2. Activate LiveTraffic
  3. Before the first planes appear (force planes not to appear by deactivating channels after activating LiveTraffic) check display in map apps: planes appear at a single nearby spot, or
  4. Look with DataRefTool at sim/multiplayer/position/plane##_x/y/z, value is 0

Expected behavior x/y/z should be 10000000, in map apps this is so far away the planes will not display.

Screenshots image image

Technical Info:

See also Reported first by FSTramp in a support forum post.

TwinFan commented 4 years ago

Stupid code management bug...in my Windows install a temporary change was still active setting the initial value to zero instead of large. So there's nothing to check-in, quite the contrary: Just had to revert back to checked-in code and build again.