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

Reading aircraft.cfg files

Thanks Arno, this is a great tool for contactpoints. Though I cannot edit them directly atleast I can now see where tgey are if they aren't where I want them to be.
 
Hi Arno,

A user of SODE has reported a problem with jetway alignment. This has mostly to do with misconfigured aircraft.cfg exit points, so I wanted to have a look at them with MCX. During loading of the model (after selecting the aircraft.cfg of course), MCX throws some warnings "Failed to process CFG Point with name exit.0" and also for exit.1.

So I had a look into my SODE aircraft.cfg parser code and indeed, also SODE was not able to read them properly!
I found out that the minus used in this particular aircraft.cfg file is not the "regular" hypen minus sign, but a soft hyphen (didn't even know such thing existed...). My parser returned "\255" instead of "-". Now I am replacing all occurences of that soft hyphen and replace them with the correct minus sign.
Also, when I exchanged the minus sign in the aircraft.cfg manually, MCX is able to read the exits points again.

This seems really odd and I don't know how the soft hyphen gets into the aircraft.cfg in the first place...Windows locale settings?


By the way, it was a Project Airbus A318 aircraft.cfg, and yes, the exit is completely off ;)

I attached the aircraft.cfg for you to test.

Best regards
 

Attachments

Interesting find, I'll have a look at it. I'm surprised how many weird lines I have already found in cfg files.
 
Could it be related to the French characters I see in the file as well?
 
I don't know. Perhaps, I think in France they use a AZERTY keyboard layout, and maybe the hypens are mapped differently, but that's a wild guess.

While playing with the new editor, I found another bug: I used the Aerosoft Airbus and was not able to get the light and exit points to show up in MCX.
After inspecting the aircraft.cfg, I figured that they used multiple tab stops after the section title to add a comment:
Code:
[EXITS]            // A321
Well, the official comment sign for config files is ';' and you shouldn't write comments at the same line as the section title anyways, but after removing the comment, or even just removing the tabstops, MCX was able to read the data.
 
I could modify the parser for that, since FS also understands it.
 
I sent you 2 error reports of MCX while importing aircraft.cfg files (large AI cfgs with many textures)
did you receive them?
 
That was last week not? Those have been fixed by now.
 
There is no more a program (crash) error, but I dont know if it works like designed.
The aircraft folder is a little complex with several models and about 60 textures...
It looks like MCX reads all the models and displays finally the first model of aircraft.cfg and the corresponding liveries.
I try to attach a picture of the folder structure...
folder Structure.jpg
 
Correct it will load all models and display the first one. With the arrow buttons you can cycle through the available models.
 
Back
Top