• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Enumerating AIR file sections

Messages
3,371
Country
germany
I want to edit the aircraft type in the air file. I don't know how the records are delimited. Is there a TOC/record header which I can follow?
 
I want to edit the aircraft type in the air file. I don't know how the records are delimited. Is there a TOC/record header which I can follow?

Why not use one of the air file editors like AirEd ?

It sounds like you're trying to read the *.air file with a binary file editor/reader?
 
I am working on an aircraft parameter editor for AI aircraft. The tool already deals with reading and writing the aircraft.cfg and the mdl file.

The only relevant (for my intentions) setting in the air file is the aircraft type (so you can change AI aircraft to hidden which aircraft designers love to forget).
 
Aha!

Now, if your tool, that already deals with the aircraft.cfg file, does it in a graphical interface ....


(Well, I CAN dream that someone, someday, will create an "aircraft container manager" replacement for FS-X, right?)

as to your initial question, unfortunately, I cannot help you there...
 
The only relevant (for my intentions) setting in the air file is the aircraft type (so you can change AI aircraft to hidden which aircraft designers love to forget).
In FSX, just remove the panel folder.
 
I have to deal with both versions, George :)

Felix, a replacement for ACM is way beyond my abilities. With many maybes we will eventually see a model renderer (if I get enough help, that is :rolleyes:) But at least a graphical interface is there.
 

Attachments

  • ScreenShot007.jpg
    ScreenShot007.jpg
    98.9 KB · Views: 552
Hi Martin,

There is no TOC in air files. Each section has a fixed header: section number (long) followed by section length (long). So you need to parse the file so as to locate the wanted section to read/write. In your example header of section 105 is: 05 01 00 00 04 00 00 00 followed by the value 00 00 00 00 (you will probably want to change to 2 for AI). So the only thing you can do is to jump from one section to the next one until you find what you want..section length doesn't include the header, so add 8 ;-)

Hervé
 
Thank you, Hervé :)

The way how to handle air files got clear for me one day ago. You have guessed correctly what I need that functionality for. If you are interested in the result, look here in the ADE forum.
 
Back
Top