FlyingCoder Posted January 5 Report Posted January 5 Hi guys, Am i trying to make my application detect different aircrafts. This is because different aircraft developed by different developers, uses different parking brake variable. Like PMDG, FENIX, and Flybywire, They use their own custom Lvars which i have to detect if i am using PMDG or fenix or FBW. Now, how do i able to detect if i am flying a fenix aircraft or pmdg aircraft or FBW aircraft? Hope to get some help. Thank you.
Paul Henty Posted January 5 Report Posted January 5 You can get the 'title' of the aircraft (as specified in the aircraft.cfg file) from offset 0x3D00 (String of size 256). That will probably give you enough info to differentiate aircraft from different developers. Paul
FlyingCoder Posted January 5 Author Report Posted January 5 Hi Paul, Thanks and noted. Anyway, i looked at the aircraft.cfg, theres one line called ui_createdby. Is there anyway i can get or read the ui_createdby line?
Paul Henty Posted January 5 Report Posted January 5 Quote Is there anyway i can get or read the ui_createdby line? Not from FSUIPC directly. You'll need to open the file in code and read through it until you find that line. You can find the path to the aircraft.cfg file in offset 0x3C00 (Also string * 256). In FSUIPC3 to 6, this contains the full path to the .air file. The aircraft.cfg will be in the same folder you just need to get the folder from the path and substitute the file name. In FSUIPC7 the offset list seems to suggest this will be the aircraft.cfg instead, so you can probably just use it directly. Paul 1
FlyingCoder Posted January 6 Author Report Posted January 6 I see. Since the CFG is not an XML it wont be like searching based on property. Do i have to search based on text? CFG is just text based i supposed?
FlyingCoder Posted January 6 Author Report Posted January 6 Hi Paul, managed to solved by reading the cfg and searching the text based on my requirement. Thanks!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now