It may have been turned off, I can read but not write lvars. Nothing about it in docs, and I tried using a bunch of different syntax, no dice.
Well I can safely say that writing LVARās with Air Manager is working just fine. I use them in existing and new projects almost every day and they work. If you are having issues it could be that you are using them incorrectly or that the aircraft in question is not allowing it to change. It you can provide a specific issue with a default sim aircraft that does not work Iād be happy to take a look. I saw this same question on the AM forum so I am assuming that was also from you. The answer will be the same.
Hmm, would you mind sharing syntax of some working examples? Maybe you could reply on the AM forum.
I got the impression it was not working due to some discussions I saw on the forum, also in the documentation wiki it references reading but not writing them.
Itās nothing special or complicated just fs2020_variable_write(āL:VAR_TO_WRITEā, āTypeā, data).
You have to get the type correct. This almost always āEnumā or āNumberā. If the type is listed by the sim or aircraft dev as a āBoolā use the āEnumā type. Nothing else to it.
See my latest post in:
https://siminnovations.com/forums/viewtopic.php?p=55168
Includes video and code to demo the issue.
Still not sure if AM issue or just flight.
I canāt seem to get any LVAR working.
Do you have an example lvar I can use to test?
LVARās tend to be used on add-on aircraft so Iād need to know what you have aircraft wise for any example to be useful. Unfortunately I donāt have any of the JF PA-28 models yet else Iād look at this specific issue directly.
Please note that sometimes writing to the LVAR changes the state of the actual item but will not trigger the vc animation because of the way the aircraft has been coded. So the animation not following suit in the virtual cockpit us not a reliable indication of a good write. This behaviour is tied into the use of inaccessible B, I & O vars. BVARS particularly are heavily used by aircraft devs and a royal pain for anyone wishing for non mouse control. There is a big topic on the matter on these forums that has a lot of votes asking for them to be accessible but as yet weāve had very little response from Microsoft or Asobo on the matter.