AFDLink 1.2

AfdLink is a small command line tool for modifying FS2002 *AFD.BGL files.
To avoid copyright problems it is not recommended to distribute modified original AFD files with FS sceneries. Scenery authors should only distribute their own AFD files. The modification should be done on the target computer. The scenery author should provide his scenery users with an installation procedure (including a backup). To enable scenery authors to follow above advice, I decided AfdLink to be freeware. I explicitely allow AfdLink.exe to be distributed with every scenery which needs it.

My knowledge about AFD files is mainly based on the FS98 scenery SDK. Unfortunately information about AFD file formats are not longer included in SDK's. For this reason there are a lot of "unknowns" and there is no guarantee that this program will work correctly under all conditions. It is not recommended to use it with future FS versions. This program was tested with the US version of FS2002.

The commands:

replace
-r  Original_AFD_file    My_AFD_file    New_AFD_file
   
  The file "My_AFD_file" is scanned for airport data The ICAO ID for every found airport is compared with "Original_AFD_file". If a match was found, the specific airport data is exchanged. You don't need to worry about different length of data.

statistics:
-s  AFD_file_name
   
  Outputs a few data about this file to the console window (DOS box)

copy
-c  AFD_file_name   ICAO_ID_1 ... ICAO_ID_n
   
  Searches the AFD file for ICAO ID's. Every found Airport is copied into the new file named "afdtmp.bgl". Maybe it is possible to use this feature for a backup funktion in later versions of AfdLink.

delete
  not implemented

insert
  not implemented

error codes
memory allocation error
file not found
cannot read/find BGL Header
copy error (no data, opening output file)
error scanning input file for ICAO ID
(no input file or ID not found)
cannot open output file
15  internal name stack overflow


©Manfred Moldenhauer
M_Moldenhauer@compuserve.com
Manfred.Moldenhauer@t-online.de