Cleaning out traffic bgl files

All things Military AI that don't fit anywhere else.
Post Reply
User avatar
jimrodger
Colonel
Colonel
Posts: 1537
Joined: 22 Apr 2008, 13:34
Version: FS9
Location: EGQK (RIP)

Cleaning out traffic bgl files

Post by jimrodger »

I noticed that some of the traffic files I've installed seem to be far bigger than others.
On decompiling I discovered that some of them use the complete airports.txt as a template, consequently they are making the files much bigger than necessary.

Is there a way to automatically get rid of the unused airports in this file, as going manually through each traffic file to get rid of these unused airports would definitely do my head in.

Many thanks in advance.

Jim
"When all else fails, and your AI doesn't show up...... check the AI slider.......DOH!!!!"
User avatar
kungfuman
Lieutenant Colonel
Lieutenant Colonel
Posts: 845
Joined: 01 Jun 2008, 18:21
Version: FS9
Location: EGGD

Re: Cleaning out traffic bgl files

Post by kungfuman »

AITMv2 is what I use to strip out unused airports from the airports txt file.

You'll still need to use TTools to decompile your largest flightplan bgls into txt files. Then you load the flightplan into AITM, go to the "Tools" menu and click on "Create Airport file from Flightplan", before saving. Now recompile your text files in TTools :D

It's still a bit of a process, but at least it makes it easier...

EDIT:

Give Stew's recommendation a go first, it looks a bit more straightforward (I'll have to check it out myself) :wink:
Last edited by kungfuman on 12 Oct 2010, 19:18, edited 1 time in total.
Dan
Stewart Pearson
MAIW Veteran
MAIW Veteran
Posts: 3179
Joined: 11 Aug 2006, 22:11
Version: FS9
Location: Rhynd, Perthshire, Scotland
Contact:

Re: Cleaning out traffic bgl files

Post by Stewart Pearson »

Jim,

Pop onto the tools page and download "genair"

http://www.militaryaiworks.com/tools.html

Run that and select the flightplans you're working on. It'll generate only the airports needed which you can save/overwrite the existing airports file.
Stew

"There is an art … to flying. The knack lies in learning how to throw yourself at the ground and miss."
User avatar
jimrodger
Colonel
Colonel
Posts: 1537
Joined: 22 Apr 2008, 13:34
Version: FS9
Location: EGQK (RIP)

Re: Cleaning out traffic bgl files

Post by jimrodger »

Thanks for that guys, got something to do at work!! now...


Jim
"When all else fails, and your AI doesn't show up...... check the AI slider.......DOH!!!!"
User avatar
hawk_sh
Lieutenant Colonel
Lieutenant Colonel
Posts: 881
Joined: 16 Nov 2008, 22:26
Version: FS9
Location: near EDDF

Re: Cleaning out traffic bgl files

Post by hawk_sh »

Is there any advantage in cleaning out the unused airports other than a smaller file size - performance, load times?
Hartwig
_______________________________________________________________

Image
User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 12400
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Re: Cleaning out traffic bgl files

Post by Firebird »

hawk_sh wrote:Is there any advantage in cleaning out the unused airports other than a smaller file size - performance, load times?
As far as I know there is no tool to determine this definitely. Logic, however, would seem to say that a smaller bgl would load quicker. It may not be obvious on its own, but if you have 10-20 like this my guess you would notice it.

I once went through all my bgls looking at size and recompiled using cut down bgls. I believe that it cut minutes off my load time, but I have not scientific proof of this.
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat

Chelsea FC - World Champions
_______________________________________________________
Stewart Pearson
MAIW Veteran
MAIW Veteran
Posts: 3179
Joined: 11 Aug 2006, 22:11
Version: FS9
Location: Rhynd, Perthshire, Scotland
Contact:

Re: Cleaning out traffic bgl files

Post by Stewart Pearson »

jimrodger wrote:Thanks for that guys, got something to do at work!! now...


Jim
Why break the habit of a life-time?

(wanders off singing We cannot shoot, we cannot march, what *&^%ing use are we)

:lol:
Stew

"There is an art … to flying. The knack lies in learning how to throw yourself at the ground and miss."
Post Reply