Jump to content
The simFlight Network Forums

Help with Lvar


Adri1

Recommended Posts

Hello John,

I need some support to use lvar in FSUIPC7. I have already use this kind of variable in the past but for now I cannot success to use them.

I have create a profil for my 787-10 aircraft and I would like to use only Lvar. But I don't know why, it doesn't work.

please find my .init file.

it's strange because I can see the events with the good parameters and offset in the logs (so button works well) and well assigneted.

I can set the lvar by the tool "set lvar" (so this is the good offset)

but lvar doesn't work via my button...

My FSUIPC folder is installed in my Simulator folder

 

do you have an idea ? thanks !

Adrien

FSUIPC7.ini

Link to comment
Share on other sites

Can you please also show me your FSUIPC7.log file, generated with  logging for Buttons & Keys and Events activated, as well as WAPI debug logging. Also please list the lvars before pressing the button(s) assigned to update the lvar.

1 hour ago, Adri1 said:

I can set the lvar by the tool "set lvar" (so this is the good offset)

But that doesn't use the offset. Please also try this before exiting FSUIPC7 and attaching your log file.

John 

Link to comment
Share on other sites

John,

I have just restart right now my simulator and now lvar work... 

I don't know by which way it work but it work. I haven't set anything more than what you ask about logs.

thanks a lots for your support !

BR

Adrien

 

Link to comment
Share on other sites

John, 

Finally, this issue is not really closed, sorry.

Lvar seems to work now and well mapped with my button box.

But, even if lvar are well updated, (proof by value change when I list lvar from WASM), in the cockpit nothing happen for some virtuals buttons (ie: BCN STRB NAV etc) and work for some others (anti ice knob). 

This it s not just a fail on virtual button annimation because nothing happen on the virtual lights in the simulator too.

I will transmit you my logs at the end of the day

Thanks !

Adrien

Link to comment
Share on other sites

7 hours ago, Adri1 said:

But, even if lvar are well updated, (proof by value change when I list lvar from WASM), in the cockpit nothing happen for some virtuals buttons (ie: BCN STRB NAV etc) and work for some others (anti ice knob). 

But why are you trying to use lvars for these? For example, for the beacon lights you can use the standard controls: Beacon Lights On/Off/Set.
You should always try standard controls before trying lvars. And some controls require a combination of lvar/hvar/standard controls, and for these it is easier to use presets.
I recommend that you always first try any standard controls. If they don't work, the next port-of-call should be the HubHop preset list (https://hubhop.mobiflight.com/presets/) where you can search for available presets by aircraft and sub-system (amongst other search parameters). All MF presets are available for assignment by checking the Select for preset checkbox,
If the standard controls don't work, and there are no available presets, you can then start looking at available lvars, and even looking at the aircraft xml files to see if any hvars are available, or at the code that implements the UI to see how the switch works...but this can get quite complicated to understand and is recommended for experts only. You can always post a request in the MF discord channel to ask if someone knows the preset code for a particular button or switch if its not currently available.

John

Link to comment
Share on other sites

John,

 

Alright, thanks, i thought wrong with Lvar. For me it was a better way to access to aicraft parameters with more options and work only by writting the goods values, but i didn t see that like a second/third strategy in case of standard control and preset don't work and where is not as simple as "just write the good value" in some case

Ok I have finally used the standard control and it works !

I have some difficulties with some switchs like "landing light left and right ans nose light" where i don't fine the goods controls for indepent switch yet (i can do it via Lvar but I get the bad behaviour on virtual button), Maybe i have to take a look on presets controls and mobiflight preset now. I will take a look in aircraft code too, just for my personnal information

 

Thanks a lot !

 

Br

Adrien

 

Link to comment
Share on other sites

1 hour ago, Adri1 said:

I have some difficulties with some switchs like "landing light left and right ans nose light" where i don't fine the goods controls for indepent switch yet

Have you tried Landing Light Left and Landing Light Right, with a parameter of 1 for on and 0 for off?
To determine what control is used by any button or switch, if any, you can set logging for Events (Log->Events), open the logging console window (Log->Open Console), and then operate the switch in the VC and see what control/event and parameter is/are used, and then assign to that.

Later: I have just taken a look and all the landing lights (left. nose, set) are just using the Landing Lights Set control, with a parameter of 1 for on and 0 for off. However, sending this will turn all the landing lights on/off - it doesn't look possible to control them individually...

John

Link to comment
Share on other sites

1 hour ago, John Dowson said:

I have just taken a look and all the landing lights (left. nose, set) are just using the Landing Lights Set control, with a parameter of 1 for on and 0 for off. However, sending this will turn all the landing lights on/off - it doesn't look possible to control them individually...

Ok - with further testing I have found that you can use Landing Lights On/Off with a parameter of 0 for nose, 1 for left and 2 for right.

 

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.