• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Issue Writing to P3D Lvar

Messages
3
Country
ca-ontario
Hello everyone,
This is my first post on this forum although I have been an active reader for quite some time. I am working on building my own simpit and have gotten to the software stage. My goal is to use A2A's aircraft but since they use their own custom vars I am working on a simple Lua script to write the output of some of their variables to the Lvars that P3D uses (engine rpm, manifold pressure etc). I am using the Mindstar G1000 software and since they don't release their gauge code I cannot change the Lvars their software references.

My issue is that when I write the A2A output to a P3D lvar, the gauge on screen goes wild and erratic. See the snippet of code I am using below:


Code:
while 1 do

-- Store A2A var output
a2a_man_press = ipc.readLvar("L:Eng1_ManifoldPressure")

-- Convert to usable units
a2a_man_press = a2a_man_press / 1024     -- Divide by 1024 inHg

-- Write to P3D Lvar
ipc.writeDBL(0x8C0, a2a_man_press)     --The local offset 0x8C0 is the P3D Lvar for manifold pressure

ipc.sleep(100)    -- Delay 100 ms 
end


If anyone can shed some light on this issue it would be greatly appreciated!
 
Last edited:
Of course we don't release our gauge code, that would kinda eliminate our business. LOL
We also don't do tech support here and neither will anyone else. Contact us via our support email and explain what you're trying to do.
 
Of course we don't release our gauge code, that would kinda eliminate our business. LOL
We also don't do tech support here and neither will anyone else. Contact us via our support email and explain what you're trying to do.

Hi WarpD,

I was absolutely not implying that you should release the gauge code (duh lol) I just mentioned that (in case someone asked) as a reason as to why I am trying to inject the A2A Lvars into the P3D default Lvars as I have no other way of getting the G1000 to display the correct A2A gauge values.
 
Read the 2nd line in my post... we have support, we offer support... you should probably try our support. Which A2A aircraft will be necessary information.
 
Read the 2nd line in my post... we have support, we offer support... you should probably try our support. Which A2A aircraft will be necessary information.

Hi WarpD,

I did email Mindstar support 2 weeks ago and have not received a response.
 
Back
Top