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

Dick, you are wrong

Yes, if you ever opened a bgl file in a hex editor you know how easy the hexadecimal notations are :). It takes some time to get used to, but they are much easier than the decimal notations when trying to understand a file format.
 
I wonder why there ain't some code in C# to do the conversions between QMid and DWORD and back. That would be best way how to show the things working. It's definitely not clear to me why author of the article didn't describe what he does with the b<sub>i</sub>. I miss some clues there. For example not clear the sentence: So we have b3 = 1, b2 = 0, b1 = 4, b0 = 5
but where did he took the numbers 1 0 4 5 from? What kind of conversion he used to get these. Or the sentence: Then for each ai, we compute the corresponding bi: ... but there is not writen how to compute. There is written "where bi are the coefficients of the output value in base-16" but I don't see there the coefficients are used. In the example he uses different numbers no the 0 1 4 5 but 1 0 4 5 (0x1045) which gives 4165. So I don't see any coefficient. For conversion in oposite direction DWORD to QMid same problem. The last table in the article on bottom of the page, 4th row, the numbers v<sub>i</sub> ... 5 5 1 0
they are not showed in the example, so again missing some clue.
 
Last edited:
Yes, if you ever opened a bgl file in a hex editor you know how easy the hexadecimal notations are :). It takes some time to get used to, but they are much easier than the decimal notations when trying to understand a file format.

But for reading binary files I rather use decimal numbers as size. It's more readable for me. Maybe expert programmers have different practice.
 
I think this thread is done - it seems to me that there is nothing left to be said. I will not close it but unless there is something substantive to add please leave it as it is.
 
Back
Top