Lvar writing anomoly

A Living Legend
new reply
User avatar
Masterius
Senior Airman
Posts: 216
Joined: 30 May 2019, 14:36

Lvar writing anomoly

Post by Masterius »

I've been playing with Lua scripts and, in my experimentation, have discovered something odd. For the magnetos and fuel booster pumps I cannot seem to write to them using their Lvars (Magnetos1, Magnetos2, Magnetos3, and Magnetos4, and Eng1_FuelBoostON, Eng2_FuelBoostON, Eng3_FuelBoostON, and Eng4_FuelBoostON). If I manually use their respective switches in-game I can see their Lvar values change (for instance, Magnetos1=0 thru Magnetos1=3, or toggling Eng1_FuelBoostON between 0 and 1), but nothing I do from outside that interfaces with the sim seems to change them. I've scoured the forums and the web, but haven't found anything.
Image

User avatar
WB_FlashOver
Technical Sergeant
Posts: 947
Joined: 10 Jun 2012, 18:23
Location: (S05) U.S.A.
Contact:

Re: Lvar writing anomoly

Post by WB_FlashOver »

I use FSUIPC and LINDA. All switches/buttons are controlled in LINDA and Axis are controlled in FSUIPC.

For magnetos;

ipc.writeSB("0892", 0) --mag1 0=off, 1=left, 2=right, 3=both
ipc.writeSB("092A", 0) --mag2
ipc.writeSB("09C2", 0) --mag3
ipc.writeSB("0A5A", 0) --mag4

Fuel pumps;
ipc.setbitsUW("3b98", 1) Pumps ON
ipc.setbitsUW("3ad8", 1)
ipc.setbitsUW("3a18", 1)
ipc.setbitsUW("3958", 1)

ipc.clearbitsUW("3b98", 1) Pumps OFF
ipc.clearbitsUW("3ad8", 1)
ipc.clearbitsUW("3a18", 1)
ipc.clearbitsUW("3958", 1)

Hope this gets you where you're going

Roger
-- Fly Well, Be Nice, Have Fun ! ! !

Z390 FTW | i9 9900K @ 5.2 | 32GB 3333 CL14 | 3080 Ti FE
970 Pro 512GB (OS)| 970 Evo 1TB | 850 Evo 500GBx2 Raid0
3TB HDD | Define S2 | EKWB Dual Loop


P51civ - T6 - P40 - B17 - B377 - L049 - Comanche - Spit - Bonanza

User avatar
Masterius
Senior Airman
Posts: 216
Joined: 30 May 2019, 14:36

Re: Lvar writing anomoly

Post by Masterius »

WB_FlashOver wrote: 30 Aug 2019, 07:17 I use FSUIPC and LINDA. All switches/buttons are controlled in LINDA and Axis are controlled in FSUIPC.
Same here. I find the combination to be extremely versatile and comprehensive.
WB_FlashOver wrote: 30 Aug 2019, 07:17 Hope this gets you where you're going
It certainly looks as if it will. Thank you!

I am still curious why using ipc.writeLvar("L:Magnetos1Switch", 0), ipc.writeLvar("L:Magnetos1Switch", 1), ipc.writeLvar("L:Magnetos1Switch", 2), etc, does nothing. :? :|

Thanks again!

~Al
Image

new reply

Return to “B-17 Flying Fortress”

Who is online

Users browsing this forum: Bing [Bot] and 8 guests