FlyingDutchman77 Posted July 10, 2022 Report Posted July 10, 2022 Hi, It seems that with SU10 Beta, I can't get the LVARs set anymore. Using the MSFSVariableServices v1.3. Tried reload, stop, start, etc, but still not working anymore. Reading works fine btw. The LVAR is in the list for Writing to an LVar but it seems the write event does not arrive?! Interested to know if others experience the same issue.
CTo Posted August 21, 2022 Report Posted August 21, 2022 (edited) Same here. I read somewhere that they use a "Wasm Legacy Approach" via Offset 0x0D70 which seems to work with the Beta. I guess you would need to read/write to this directly i.ex. FSUIPCConnection.Process(); ... so far, I have not seen a working example ... Any hints welcome 🙂 Edited August 21, 2022 by CTo
Paul Henty Posted August 21, 2022 Report Posted August 21, 2022 The helper function called FSUIPCConnection.WriteLVAR() uses offset 0x0D70 in the background. It's much easier than trying to use that offset directly with FSUIPCConnection.Process(). However, in FSUIPC7 this just uses the WASM module when it gets to FSUIPC. So I don't think this will work if it doesn't work with the MSFSVariableServices. It's worth trying though. Paul
CTo Posted August 21, 2022 Report Posted August 21, 2022 Thanks for that hint, Paul! And good news: With FSUIPCConnection.WriteLVAR() I can finally write again the LVARS with Beta 10 SU (in my case Fenix A320 LVARS) ... cool! For the time after Beta: It would ofc be nice if this would work again with MSFSVariableServices ... 🙂 Greetings 1
FlyingDutchman77 Posted August 21, 2022 Author Report Posted August 21, 2022 Great news. Could you share some code how you managed to do this? I'm using the MSFSVariableServices at the moment, but not sure how to use the FSUIPCConnection.WriteLVAR() function.
CTo Posted August 21, 2022 Report Posted August 21, 2022 (edited) try { FSUIPCConnection.Open(); } catch (FSUIPCException ex) { // Error occured so alert the user MessageBox.Show("Connection Failed. " + ex.Message); } if (FSUIPCConnection.IsOpen) { // connection opened okay FSUIPCConnection.WriteLVar("S_OH_EXT_LT_BEACON", 1); } That is C# and would turn on the Fenix A320' Beacon Light. Of course it's requiring a reference to Paul Henty's DLL ("using FSUIPC;") Cheers Edited August 21, 2022 by CTo
FlyingDutchman77 Posted August 22, 2022 Author Report Posted August 22, 2022 Thx! I struggled initially until I discovered in the FSUIPC console that the WAPI version was not matching. Now it is working again! Thanks again!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now