Extraction of cfg information

All things Military AI that don't fit anywhere else.
Post Reply
User avatar
delbydoo
Colonel
Colonel
Posts: 1889
Joined: 11 Aug 2006, 19:24
Version: FS9

Extraction of cfg information

Post by delbydoo »

Hi y'all
Does anyone know of a way to extract all of the "TITLES" from the aircraft.cfg's in your aircraft folder, to form a potential "aircraft.txt" file, for use in compiling flight plans for FS9?

I have an old FS2002 tool called "AirExTT" which extracts all aircraft titles, but limits itself to 10 aircraft per folder - so if you have 24 repaints of a Hawk in one folder, it will only list the first ten aircraft in the cfg......

Call me lazy but I'm just trying to find an easier way of inserting the information into Rips flightplan maker.....perhaps I may have to bit the bullet and learn some computer programming language.......:(

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

Post by Firebird »

I don't know of any specific tool to do that, Daryl, but surely there must be a freeware text editor that will delete everything except 'title=' from a file.

It may even be possible from a macro is my guess.
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat
_______________________________________________________
User avatar
delbydoo
Colonel
Colonel
Posts: 1889
Joined: 11 Aug 2006, 19:24
Version: FS9

Post by delbydoo »

Thanks Steve, I guess I'll just have to exercise me fingertips for a little longer - or learn C++ :shock:
Cheers
User avatar
SMOC
Captain
Captain
Posts: 364
Joined: 26 May 2007, 12:49

Post by SMOC »

C++ would be far more trouble than Visual Basic for the task at hand. If I had the time I could probably do it in Assembly, Ada, Pascal, Basic, Fortran, COBOL, etc... I just don't have the time.

I would do some searching on line for VB text file manipulation. All you're doing it searching for a specific string and pulling the line associated with that string. Shouldn't be too hard.
--Chris
Image
User avatar
delbydoo
Colonel
Colonel
Posts: 1889
Joined: 11 Aug 2006, 19:24
Version: FS9

Post by delbydoo »

Thanks Chris - I am still hunting and I have downloaded the VB package so perhaps I may find the answer there myself......if at first you don't succeed......
Post Reply