• 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.

Decompiling FS files

Messages
579
Country
france
Hello
We have a great community that spent time analysing FS files and could after countless time of hard work, reverse engineer those files like BGL MDL....ect
They have provided their work to the community via the FSdev file format wiki which I find really interesting.

I would like to be able to decompile or read a file to be used by my add-ons, for example read a BGL file to extract some essential data like runway position or taxiway point position, but in order to do that I have to open a BGL file using a program that I would have developed according to the file structure wiki that is provided in the website, unfortunately I have never learned how to do that even with years of programming experience.

Would you guys please show me a course or a website that would teach how to read a certain file format knowing it's binary structure using any language form C++ to C#? I don't know what to look for I spent hours on Google trying with no success

It would be much appreciated so thnx in advance
Redouane.
 
Bgl formats differ by version so the format for FS9, FSX. P3D (all versions) and MSFS can be different. What version(s) are you working with? In the FS world the file formats are proprietary MS/LM and so on do not publish the format and, in theory, reverse engineering them is breaking copyright. To my knowledge no one has ever been charged with such an offense. So much of the work is reverse engineering the bytes of the file to reflect what you expect to be in it.

There are some tools already created which will decompile the bgl files to say XML which you can then use in your code. Also some that will read the format into a viewer. There are also some documents describing the formats but not much updated since FSX.

So I guess a question is - do you actually need to write your own decompiler or can you use one that already exists?
 
I would like to read those files on run time so I can use some information about the sceneries for some add-ons, for example: reading coordinates of a specific parking position and render it in an external window.
I just want to learn how to read binary files knowing their structure, there seem to be no decent tutorial on the internet so I figured I would ask the community that did it the best
 
Back
Top