Newbie, help with first instrument for fs2020 (lvar)

Peer support for Air Manager desktop users

Moderators: russ, Ralph

Post Reply
Message
Author
jm4130
Posts: 9
Joined: Thu Jan 14, 2021 5:53 am

Newbie, help with first instrument for fs2020 (lvar)

#1 Post by jm4130 »

Been spending hours getting familiar with making my first panel for fs2020. what a great program! Running it to my touchscreen.

I'm working on the light and apu panel for the FBW a320 neo - I have all of the normal fs2020 commands except hit my first snag with the LVARs for the seatbelt light.
I know from spad that I need to write a 0 or 1 to:

XMLVAR_SWITCH_OVHD_INTLT_SEATBELT_POSITION

I'm having a bit of a learning curve but it seems from the doc I could find that I should have something like
fs2020_variable_write("L:XMLVAR_SWITCH_OVHD_INTLT_SEATBELT_POSITION", "number", 1)

Any help is appreciated sorry if it's a simple question but I have exhausted my google skills. Thank you.

User avatar
Ralph
Posts: 7878
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: Newbie, help with first instrument for fs2020 (lvar)

#2 Post by Ralph »

No Lvars at the moment. We're waiting for Microsoft/Asobo to supply better documentation/functionality. We don't want to mess around in XML files.
See: viewtopic.php?f=15&t=4100&p=32058#p32058

jm4130
Posts: 9
Joined: Thu Jan 14, 2021 5:53 am

Re: Newbie, help with first instrument for fs2020 (lvar)

#3 Post by jm4130 »

Gotcha - I am realizing most of the products are using workarounds, Spad.next just created a wasm to get Lvars implemented where i now finally have a mostly working MCP-PRO with the a320 as a result of being able to monitor the Lvars on each aircraft.

What a mess FS2020 is! Maybe in 2022 we'll have a full SDK

User avatar
Ralph
Posts: 7878
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: Newbie, help with first instrument for fs2020 (lvar)

#4 Post by Ralph »

We can also make a WASM plugin and access Lvars, we've tested this. But there's still a lot of things missing to make it into a proper plugin.

Post Reply