Results 1 to 5 of 5

Thread: Easy way for C gauge to find aircraft using it?

  1. #1

    Default Easy way for C gauge to find aircraft using it?

    Anyone know of an easy way to determine which aircraft's panel your C gauge is being used by?

  2. #2
    Join Date
    Mar 2005
    Location
    Hammond, IN USA
    Posts
    4,796

    Default RE: Easy way for C gauge to find aircraft using it?

    I'm not aware of any way, hard or easy... ;)
    Bill Leaming
    Gauge Programming - 3d Modeling Military Visualizations
    Flightsim.com Panels & Gauges Forum Moderator
    Flightsim Rig: Intel Core i7-2600K - 8GB DDR3 1333 - EVGA GTX770 4GB - 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...

  3. #3

    Default RE: Easy way for C gauge to find aircraft using it?

    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******!

  4. #4

    Default RE: Easy way for C gauge to find aircraft using it?

    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

  5. #5

    Default RE: Easy way for C gauge to find aircraft using it?

    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

Similar Threads

  1. Replies: 0
    Last Post: 10-14-2007, 10:32 PM
  2. Easy, easy.
    By American in forum MSFS Screen Shot Forum
    Replies: 0
    Last Post: 10-10-2007, 09:33 AM
  3. Easy way to find VOR frequencies?
    By ssteiner in forum FS2004
    Replies: 2
    Last Post: 01-25-2006, 10:59 PM
  4. Easy way to add APU to default aircraft?
    By sehender in forum FS2004
    Replies: 6
    Last Post: 12-19-2003, 01:11 AM
  5. Easy question. Easy answer?
    By adingostolemybaby in forum DreamFleet General Discussion Forum
    Replies: 3
    Last Post: 08-23-2002, 07:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •