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

Getting correct a/c data

Messages
46
Country
israel
I am trying to get the aircraft's metadata - title, airline, type, model, etc.
I was using ATC Model and ATC Type in addition to other parameters, but the results are sub optimal.
While for a certain PMDG 737 I get BOEING and B738 as type and model, for the Just flight PA28, I get Just Flight and arrow.
I can have some translation map somewhere and account for what I know, but is there a more elegant way to handling this? I assume I am not the first one who ran into this problem...
 
There's TITLE that is easy to miss, which usually is the full model name with livery style, but otherwise I don't know of anything more than the ATC vars. Ultimately what shows up for the ATC* and TITLE vars is up to the model developer.

A model's aircraft.cfg file has various "icao_" properties which look good (or should at least provide some standard), but I don't know how to get to those besides reading the actual file (or how reliably those are populated by developers). Which is an option, I suppose (the file could be found from an "AircraftLoaded" system event for example), but obviously that needs to be done on the actual computer with the sim installed (which also excludes XBox I suppose).

I'd also like to know if there's some better runtime source of such meta data.

-Max
 
Yeah, I figured it so. I am using the title, but its too free to use. It would be Boeing 737-800 or Just Boeing 737 or Boeing B738 or PMDG B737...
I will look for sources to match against, maybe even create a repo and start maintaining one.
 
- A model's aircraft.cfg file has various "icao_" properties which look good

This actually looks better than any other variable for most planes. However, using it means my app has to run on the computer running the sim - which I can live with.
I can live with opening files and reading this line, as my app will do this only once per airplane, afterwards, it'll be in my db.
But I noticed that planes acquired through the marketplace indicate an aircraft.cfg file that doesn't really exist in the reported location.
So I'll have to try opening the file, but then if unable, use the reported data from the atc simvars on simconnect. Or the other way around - use the simvars, and check if there are better candidates in the files before persisting.

A question - maybe someone knows - is there a chance that the files are located in a location a non-admin user application can't reach?
To my knowledge in msfs it will be under appdata/roaming or local, which is fine, or in a user-configured location, which should mostly be okay as well.
Do you think its reasonable that it might not be there?
 
Back
Top