Anyone know of an easy way to determine which aircraft's panel your C gauge is being used by?
Anyone know of an easy way to determine which aircraft's panel your C gauge is being used by?
I'm not aware of any way, hard or easy... ;)
Bill Leaming
Gauge Programming - 3d Modeling Eaglesoft & Military Visualizations
Flightsim.com Panels & Gauges Forum Moderator
Flightsim Rig: Intel Core i7-2600K - 8GB DDR3 1333 - GeForce GTX550Ti 1GB - Win7 64bit Home Premium
Development Rig1: Intel Core i7-3770k - 16GB DDR3 - Dual Radeon HD7770 SLI 1GB - Win7 64bit Professional
Development Rig2: Intel Core i7-860 - 8GB DDR3 Corsair - GeForce GTS240 1GB - Win7 64bit Home Premium
NOTE: Unless explicitly stated in the post, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined...
Hmmm that's what I was afraid of... but luckily I have an idea.
I'm thinking of getting the info through an XML variable that gives me something from the aircraft.cfg, and then I can parse those till I find the one.
If not, plan B is to use the dreaded 5th parameter to tell me.
Plan C is to just hard code the b******!
Have a look at FSUIPC offsets 0x3C00 and 0x3D00. Pete's notes in his beta SDK seem to indicate that these guys will be available in FSX, so it might be worth pursuing.
Doug
I made a C-function that looks up the aircraft.cfg by reading the aircraft info via xml and then searches the first matching aircraft.cfg entry for FS9.
Add findcfg.c to the workspace include findcfg.h and then call BOOL FindAircraft(...). You need to provide to CHAR arrays and their lenght where the information is written too. If the entry is found, the return value is TRUE.
Arne Bartels
Bookmarks