View Full Version : Traffic BGL file Help
I would like to learn how to read the Traffic.BGL file structure with VB2008, has somebody already done this? I needs this for my program that is actually is reading the traffic files and recreates them in a datagridview.
Hope somebody will be able to send of the info.
I have never seen data on the structure of that BGL file type. So it might be hard.
Are you interested in all traffic data? Using SimConnect you can get the traffic around you when FSX is running.
No I'm thinking of just getting the data from each traffic BGL file, something like the tool that ACA2005 can do, just doubleclick on a BGL file wich is loaded in a datagridview, this would then need to open a new datagridview showing AC and LEGS that are flown. Since it's a VB2008 written tool, also FS2004 (for the moment) I'm curious how to actual read the binary data. Since tomas molitor could do this with his flightplanner util and also ACA1.2 can do this not mentioning the payware programs I assume that there must be a way. Opening the BGL in HEX only show the airport identifiers, but hence there must be a solution.
02 Apr 2009, 10:05
There may well be but, as Arno says, it seems that no one has published the file format for the community as a whole.
Ok, then I think it's time to dugg into this :)
07 Apr 2009, 19:48
The FS8 traffic file formats are explained very well by Lee Swordy in the TTools source code he released several years ago and presumably still available on Avsim. The format for FS9 was identical save for the addition of the TNG flag, I think. For FSX, the storage format of the DOW/time parameter was expanded to 24 bits and a flag to indicate this was added.
What is it you plan to do with the data once it's displayed. Have you checked out the capabilities of the existing traffic file decompilers, in particular, AI Flight Planner with its numerous display options.
I will definitly lookup this source code for ttools, I just want to create a tool like there once was (creator vanderlei martinelli and combine this with the tool created by garfield (Pvande veen, I tried to contact them but for Vanderlei mails didn't went very well, also Pvandeveen seems to be gone from the FS scene, my latest mail to him bounced back)
thanks for the support.
PS in the mean time I'm able to read the AC info from the BGL but still getting exceptions on the flightplan part.
vBulletin® v3.8.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.