gr8guitar Posted September 13, 2020 Report Posted September 13, 2020 Okay, Attached is a picture of my situation. I had to change the offset from 66CD to 66CF as, for some strange reason, was affecting 66CB. 66CB is used to be able to send alphanumeric characters to an FMC (actually its FS's default GPS500 with an CDU keypad). It worked fine until I added this lvar-to-offset logic - then things went badly. I separated the logic and restored the original FSUIPCShow.lua and added spokes2112.lua. FSUIPCShow.lua now works as intended - whew. I copied the above example from spokes2112's lua, with the exception of using 66CF as the offset. As can be seen by the attached screenshot, 66CF is not receiving, thus not displaying the data - ugh! Okay, figured it out. I guess I had an old version of FSUIPC (4.84) installed and it seems to not have the event.lvar option. I haven't had the need to update - until now. But shouldn't still there be a way to do this without the event.lvar option? If so, how? Okay! Final update: I was looking at Lvar_vasFMC.lua and where is what I got working without the event.lvar (good because I primarily use FS9): I suppose the "while 1 do" was required. Now I can "ipc.sleep" :) while 1 do FDValue = ipc.readLvar("L:CpitCmdrSetValue") ipc.writeDBL(0x66CF,FDValue) ipc.sleep(50) end
gr8guitar Posted September 15, 2020 Report Posted September 15, 2020 Well... sad to say, the above works great with FSX, but NOT with FS9. Hm... what could be the reason (the ipc.readLvar) not available in FS9's FSUIPC (v3.999z9)? Well, don't I feel a bit silly. I had forgotten that I had assigned the throttle axis to 66D0. I did this so I could use the throttle axis to control up to 4 engine throttles, either together or separately as well as prop pitch, mixture, cowl flaps, flaps and spoiler. Re-assigned to 0x66E0 and all it well.
buick552 Posted September 4, 2021 Report Posted September 4, 2021 Hey folks.. where can we get the full LVARs list of PMDG's B738? .. or .. maybe I should ask first.. is there any legal problems if I ask my first question? I am a fully licenced PMDG B738 owner.
John Dowson Posted September 4, 2021 Report Posted September 4, 2021 16 minutes ago, buick552 said: where can we get the full LVARs list of PMDG's B738? .. or .. maybe I should ask first.. is there any legal problems if I ask my first question? I am a fully licenced PMDG B738 owner. You can either: - assign a button or key to the List Local Panel Vars control and use that - use the lua script log lvars.lua, included in the lua examples zip (in your FSUIPC documents folder).
buick552 Posted September 4, 2021 Report Posted September 4, 2021 Ahh.. that easy? I have been looking for on the net for the last 2 hours. Sir, thanks a lot..
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