Skip to content

LiveTraffic is an X-Plane multiplayer plugin, which fills your sky with live air traffic based on public flight tracking data.

License

Notifications You must be signed in to change notification settings

motoacs/LiveTraffic

 
 

Repository files navigation

Changes from original (TwinFan/LiveTraffic)

Small changes to support multiplayerXP

  • Changed output frequency of debug csv to 5 seconds.
  • Changed output csv file name to "LTExportFD.csv".
  • Enable debug csv output by default.

LiveTraffic

Build all Platforms

LiveTraffic is a plugin for the flight simulator X-Plane to show real life traffic, based on publicly available live flight data, as additional planes within X-Plane.

It came into being when I was looking at plugins simulating additional traffic in X-Plane and thinking at that time: Why do they try to simulate traffic and invent flight models when there is flight data available online which brings yet another piece of reality into the simulation? Why can't one just read the data and display the aircraft?

Well...turned out it's not that easy ;-)

Please see GitBook for further documentation on Features, Limitations, Requirements, Installation, Configuration...

Download

Available on x-plane.org.

License

MIT License, essentially freeware.

For license information on included code and libraries see docs/LICENSE_*.txt files.

Credits

LiveTraffic is based on a number of other great libraries and APIs, most notably:

Thanks go to

  • Sparker for providing imgui4xp as a testbed for ImGui integration and for accepting my additions to it.
  • Crbascott for compiling and providing the model_typecode.txt file.
  • Dimitri van Heesch for Doxygen, with which more and more parts of LiveTraffic's (and all of XPMP2's) code documentation have been created.
  • FontAwesome for the icon font fa-solid-900.ttf

Build

Github Actions

LiveTraffic builds on Github, see .github/workflows/build.yml.

Docker Cross Compile Environment

Locally, LiveTraffic can be build for all platforms using the Docker cross compile environment twinfan/focal-win-mac-lin-compile-env. Tested on Mac as a host, should work the same way on Linux.

In the first run only, it will download the necessary Docker image. The actual build takes only a few seconds. Results are written to build-*/*_x64 folders.

For more background info also see docker/README.md.

The Makefile also builds the doc target, ie. the Doxygen documentation. That will only work on a Mac. Otherwise, you may want to remove doc from all.

IDE

Mac OS / Xcode

MacOS is the primary development platform. Open LiveTraffic.xcodeproject with Xcode. In the project's "Build Settings" you find one User-Defined setting at the very end, that will require changing: XPLANE11_ROOT defines the root path to your X-Plane installation. The build process will install the plugin also into $(XPLANE11_ROOT)/Resources/plugins/$(PROJECT), so that it is right away available in your installation after build.

Windows / Visual Studio

  • Install Visual Studio
  • Open the solution LifeTraffic.sln
  • Build from within Visual Studio

Results are in build/x64.

XPMP2 Library

LiveTraffic builds on the XPMP2 library, also available on GitHub. Binaries of the XPMP2 library are included in this LiveTraffic repository in the Lib/XPMP2 folder.

Please note that those binaries are built by GitHub actions, ie. using GitHub's toolchain. This way, also LiveTraffic can be built by GitHub actions. However, the library may or may not be processable by the toolchain you choose to use.

If you run into a linker error while linking XPMP2 library, you may either choose to use similar compilers as current GitHub toolchain, or you also build XPMP2 yourself and replace the inlcuded version of it with your own build.

Doxygen Documentation

Newer files come with Doxygen-style documentation. All file headers are updated already so that the file listing in the resulting Doxygen documentation should be appropriate. But many older, while having many explanatory comment, are yet missing proper Doygen-style format.

To build the Doxygen documentation

  • install Doxgen
  • cd into the project's main directory
  • run doxygen docs/LiveTraffic.doxygen, e.g. on a Mac run /Applications/Doxygen.app/Contents/Resources/doxygen docs/LiveTraffic.doxygen

The resulting documentation is written to docs/html, open docs/html/index.html.

About

LiveTraffic is an X-Plane multiplayer plugin, which fills your sky with live air traffic based on public flight tracking data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 62.4%
  • C 35.4%
  • JavaScript 1.2%
  • CMake 0.4%
  • Python 0.3%
  • PowerShell 0.2%
  • Other 0.1%