Jump to content
The simFlight Network Forums

Extract User Information


Recommended Posts

Hi Team, 


I have been attempting to extract some aircraft data from the current user but am unable to find any offsets or systems that work. The information I require is:








any ideas on how I can pull this from the sim?

Link to comment
Share on other sites

You need to determine what holds this information. If there is a simulator variable available, check to see if this variable is held in an offset, and if not it can added. If no simvar is available, then you can check the available lvars, but you would have to do this for each aircraft.

AC MAX PASSENGERS: I cannot see anything that holds this. However, it could maybe (roughly) calculated from the weights, e.g.
                                                     ( (max gross weight - empty weight - fuel weight) / 220 lbs) 
                                      (where 220 lbs is the industry standard for the weigth of one passenger + luggage)

AC MTOW: could this be the MAX GROSS WEIGHT held in offset 0x1334?

AC MAXFUEL: this depends on whether the aircraft uses the new fuelsystem or the legacy one (held in offset 0x07A8). For aircrft that use the legacy system, you can use the FUEL TOTAL CAPACITY simvar held in offset 0x1240. For aircraft that use the new fuelsystem it is more complicated. If you know the nymber if tanks, you can sum the indexed simvar FUELSYSTEM TANK CAPACITY. However, I am not sure how to determine the number of tanks available, s you may be better off summing the capacity simvars (e.g. FUEL TANK CENTER CAPACITY, FUEL TANK CENTER2 CAPACITY, FUEL TANK CENTER3 CAPACITY, FUEL TANK EXTERNAL1 CAPACITY, etc). See https://docs.flightsimulator.com/html/Programming_Tools/SimVars/Aircraft_SimVars/Aircraft_Fuel_Variables.htm

AC ZFW: this is again something you would have to calculate from the available weights

AC TAS: that should be in offset 0x02B8 (AIRSPEED TRUE)

AC MAX CRUISING ALT: not sure if this is available - I can only see a Design Cruise Altitude, i.e. optimal rather than max. See https://docs.flightsimulator.com/html/Programming_Tools/SimVars/Aircraft_SimVars/Aircraft_FlightModel_Variables.htm.

Sorry I can't be of more help.


Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.