Jump to content
Sign in to follow this  
Damlimey

Lvars and add ons

Recommended Posts

Hi all,

I'm not sure this is the right place for this question but it does involve the tracer and editor so I'm here for now.

Is it true that the Lvars listed in the lefthand column of the 'hunting' console, are the only outputs from FSX that can have a value in LINDA?

I ask this because in calling an event.Lvar, in this case "fuel total quantity" the editor returns a 'nil value' error. Sure enough, in the hunter Lvars list, there is no sign of any fuel related Lvars.

This is curious because I can examine the fuel total quantity with an event.offset (0x1264, "UD") etc but I would prefer to use an event.Lvar because of the timer.

I am using an add on aircraft here but am I really chasing a ghost or is there another way of interogating FSX that is so far, a mystery to me?

Is it something I need FSUIPC to do for me?

Thanks in advance,

G

Share this post


Link to post
Share on other sites

Yes the left hand pane displays those Lvars exposed by the add-on developer for use. Click on the Reload button to see the latest Lvar definitions. The Lvars vary between aircraft add-ons. Using any other in LUA code will produce a nil result. Remember all LUA Lvars and variables are case sensitive.

The FSUIPC Offsets tend to apply to most add-ons but some developers do not comply with or use these offsets.

 


Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

Share this post


Link to post
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
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...