XTraffic

 

 

Up
AlphaTrainer
Command Line
DataRefSee
Flight Data Recorder
Goflight
Intellivibe
Logitech G15 Control
Pilot View
Position Aircraft
Python Interface
Saitek
SBCommands
Sound Manager
Virtual Camera
XOpenATC
XTraffic
XObjTester
XWing

XTraffic and XTrafficRecorder

Send emails to sandybarbour at xpluginsdk dot org

XTrafficRecorder Version 2.31 (18/11/2009)

Fixed bug with buffer overflow when there were lots of files in the XTraffic folder.
Changed Linux build so that it will load properly on Ubuntu 8.10 with XP 8.64 and early V9 versions.
Handled case where a file with a . but no extension is entered, e.g. "Test." instead of "Test" or "Test.xtd"

See the XTrafficRecorderVersionHistory.txt file below for all versions history.

XTrafficRecorderVersionHistory.txt

XTraffic Version 2.62 (18/11/2009)

Fixed bug with buffer overflow when there were lots of files in the XTraffic folder.
Changed Linux build so that it will load properly on Ubuntu 8.10 with XP 8.64 and early V9 versions.
Handled case where a xtd file with a . but no extension is entered, e.g. "Test." instead of "Test" or "Test.xtd"
Handled case where a xts file with a . but no extension is entered, e.g. "Test." instead of "Test" or "Test.xts"
I now write the number of aircraft set in Xplane to the log file which is an aid for me in debugging.

See the XTrafficVersionHistory.txt file below for all versions history.

XTrafficVersionHistory.txt

IMPORTANT NOTE
I have had a few emails about users only seeing the aircraft number and no aircraft.
There are 2 things that will cause this.
1.
You need to set the number of aircraft in Xplane's "Aircraft and Situations"
to one more that the number of XTraffic aircraft that you are using.
2.
Other plugins that use the AI aircraft, XSB for example can stop XTraffic
from working properly.
So you need to disable or in some cases remove these plugins.

I no longer supply demo files for this plugin, the idea is to create your own.

Thanks to Jeff Mueller (joyfulsongster) for suggestions and testing.

Brief description of the new features in V2.50.

Older V2 files will be automatically converted so they can still be used with the new V2.50 XTraffic plugin.
Make sure you are at the airport where the V2 files were created before you load the .xtd file.

Auto loading of sets is now supported.

You would create a set of .xtd files for each airport that you are interested in.

You then add these to the tracks as normal and then save as an .xts file that has the same ID as the airport that they were recorded at.
So for EGPH I would save to the EPGH.xts file.
This is essential as that is what my auto load set code looks for.
Once you have done this for each airport this is how the plugin uses them.
 
It looks for the nearest airport to the user aircraft.
It uses a filter box around the aircraft to reduce the number of airports that are tested.
Once it finds the nearest airport it tries to load a .xts file for that airport.
If it finds a .xts file for that airport it loads it and starts it running.
If it doesn find a .xts file for that it will continue to use the last used .xts file if the UseLastLoadedSet is set to 1.
If UseLastLoadedSet is set to 0 then it clears the tracks so no aircraft will be used

NOTE
You can eliminate delays caused by aircraft loading if each set uses the same track for each type of aircraft.

List of configuration settings for the XTraffic. ini file.
The settings below are using the default settings that I use if the XTraffic.ini file is missing or a setting is not in the file

DebugLogEnabled = 0
Set this to 1 if you want a log file to be created

DebugLoggingLevel = 2
0 = Disable
1 = General Errors
2 = Information
3 = Extended Information
Note that when DebugLoggingLevel is 0, I am still writing essential messages to the log file.
A higher level will include logging from lower levels.

FrameRate = 25
Determines the frame rate that XTraffic will play back at.
If you change this then remember to change the same setting in the XTrafficRecorder.ini file

AutoStart = 0
Set this to 1 if you want XTraffic to automatically start and use the file entered in the DefaultSetFileName setting below.

DefaultSetFileName =
This should be set to the .xts file that you want loaded automatically when the XTraffic plugin starts.

HideControlPanel = 0
Set this to 1 so that the XTraffic Control Panel is hidden after the XTraffic plugin starts.

DisplayAircraftID = 0
Set this to 1 to have the Aircraft ID displayed next to the actual aircraft.

AutoLoadSet = 0
Set this to 1 to have the XTraffic plugin look for a .xts file for the nearest airport.

FindAirportRange = 1.0
This is the range in degrees around the user aircraft that will be tested for airports.

FindAirportUpdateSeconds = 1.0
This is the time in seconds that XTraffic will poll the airports.
I have tested this and I have not seen a hit on the frame rate.
It can be set to a higher value if there is a problem with frame rates.

ConversionOverwritesExistingFile = 1
This will make the plugin overwrite the original file, setting it to zero will create a new file with a _V3 suffix.

Plugin Description

These plugins use the core code from my Flight Data Recorder/Viewer plugins that I wrote in 2003.

XTraffic does the following.

It allows you to play back up to 19 aircraft files (9 in Xplane versions prior to V8.50) that have been recorded with the XTrafficRecorder Plugin.
Playback can also be reversed.

Each aircraft file can be played on its own or stepped through in the forward or backward direction using the VCR type controls.
This is handy for positioning each individual aircraft relative to another.
The step size can be from 1 frame to the size of the clip.
You can speed up the playback by any factor, see the XTraffic01x10.mov and XTraffic01x100.mov files.
You can save a segment of the aircraft file by setting the mark in and mark out points.
This allows you to split a full flight into segments or just clean it up a bit.
You can loop the whole flight so it will repeat.
Aircraft that have shorter flights will loop after they reach the end.
Only aircraft that are enabled will play back.

List of configuration settings for the XTrafficRecorder. ini file
.
The settings below are using the default settings that I use if the XTrafficRecorder.ini file is missing or a setting is not in the file

DebugLogEnabled = 0
Set this to 1 if you want a log file to be created

DebugLoggingLevel = 2
0 = Disable
1 = General Errors
2 = Information
3 = Extended Information
Note that when DebugLoggingLevel is 0, I am still writing essential messages to the log file.
A higher level will include logging from lower levels.

FrameRate = 25
Determines the frame rate that XTrafficRecorder will record at.
If you change this then remember to change the same setting in the XTraffic.ini file

Quick Start Guide (Please Read)

I am updating the pdf files and will upload these when they are ready.

XTrafficPluginQuickStartGuide.pdf    (357 KB)

Plugins

NOTE

The zip files below contain the XTrafficRecorder and XTraffic plugins.
They also contain the XTrafficRecorder.ini and XTraffic.ini files
Copy the XTrafficRecorder and XTraffic plugin files to the plugins folder.
You then need to create a folder under the plugins folder called XTraffic.
Then you copy both the XTrafficRecorder.ini and XTraffic.ini files to the XTraffic folder.


Mac OSX

XTrafficMac.zip

Linux

XTrafficLin.zip

Windows

XTrafficWin.zip

 

Pictures

Use the arrowheads to scroll.

.

 

 
     

Up | AlphaTrainer | Command Line | DataRefSee | Flight Data Recorder | Goflight | Intellivibe | Logitech G15 Control | Pilot View | Position Aircraft | Python Interface | Saitek | SBCommands | Sound Manager | Virtual Camera | XOpenATC | XTraffic | XObjTester | XWing

This page was last updated 11-Dec-2009 14:10:44 -0000