September 8, 201510 yr Author I simply don't get it 4th day and no results I put that in actions.lua: function Timer () NGX_AP_SPD_show () NGX_AP_HDG_show () NGX_AP_ALT_show () NGX_AP_VS_show () end but it doesn't work . And there's no any timer function in the 3.4 module for NGX I was earching for some kind of error in the common, handlers and events luas, but got nothing. I do not understand one thing. The radios panel on the bri works fine, it changes, rotates and does some miracles also, since theese 4 values on the mcp stays as sorcerer's stone. I tried many combinations in the actions lua. On the beginning I've got: AutoDisplay = false in the initvars. When I change that one to true - the values change but only one degree/kt/ft on plus and minus. There must be some solution to move this #@$ display Guenter is it possible that You send me some working actions.lua and config-mcp2.lua for [email protected]? I'm just curious what's the heck wrong with that. Thanks for help Czarnecki Dariusz
September 8, 201510 yr Hi, I do not have to send you a working actions.lua via mail as it is the same as you can download. And what do you mean with: And there's no any timer function in the 3.4 module for NGX ??? Guenter Steiner -------------------------------------------------------------------------------------- Betatester for: A2A, LORBY, FSR-Pillow Tester --------------------------------------------------------------------------------------
September 8, 201510 yr Author Seems like the black hole I put these functions in the timer already but they don't seem to update the values. I worked with the init vars yesterday. At the beginning we've got that: ngx_spd = 0 ngx_hdg = 0 ngx_alt = 0 ngx_vvs = 0 When I change values, ex. ngx_spd=200, the init display shows 200 for speed with this function: function NGX_AP_SPD_show () ipc.sleep(50) DspSPD(ngx_spd) end However when I change the ngx_spd to display what's on the ngx mcp with this var: ngx_spd = ipc.readLvar("L:ngx_SPDwindow") it does not even load the value of whatever it is (for default the ngx mcp spd shows 100). By somehow I think the lvar "ipc.readLvar("L:ngx_SPDwindow")" is not working, but I don't know why I checked it with vri software and pmdg and the effect is the same. It works wth the default airplanes, but these values with ngx remains stucked. That's some kind of bull..it for me. Anyway I'm not going to leave this. This one is a must Czarnecki Dariusz
September 9, 201510 yr ok, reset Have you tried the following: remove (backup!) the current actions.lua you use for the NGX and insert there a complete vanilla file and try it again? Maybe simply with this functions: function Timer () NGX_AP_SPD_show () end function NGX_AP_SPD_show () ipc.sleep(50) ngx_spd = ipc.readLvar("L:ngx_SPDwindow") if ngx_spd < 0 then ngx_spd = 0 end DspSPD(ngx_spd) end function NGX_AP_SPD_inc () ipc.control(70016, 16384) NGX_AP_SPD_show () end function NGX_AP_SPD_dec () ipc.control(70016, 8192) NGX_AP_SPD_show () end Assign NGX AP SPD inc/dec to your MCP combo and have a try ... This should work in any case, otherwise there is a bigger problem Guenter Steiner -------------------------------------------------------------------------------------- Betatester for: A2A, LORBY, FSR-Pillow Tester --------------------------------------------------------------------------------------
September 9, 201510 yr Author Hello Guneter I did as You told me and I found some interesting clues. Ok let me start from the very beginning I got his code: function Timer () NGX_AP_SPD_show () NGX_AP_HDG_show () NGX_AP_ALT_show () end function NGX_AP_SPD_show () ipc.sleep(50) ngx_spd = ipc.readLvar("L:ngx_SPDwindow") DspSPD(ngx_spd) end function NGX_AP_SPD_inc () ipc.control(70016, 16384) NGX_AP_SPD_show () end function NGX_AP_SPD_incfast () local i for i = 1, 4 do ipc.control(70016, 16384) end NGX_AP_SPD_show () end function NGX_AP_SPD_dec () ipc.control(70016, 8192) NGX_AP_SPD_show () end function NGX_AP_SPD_decfast () local i for i = 1, 4 do ipc.control(70016, 8192) end NGX_AP_SPD_show () end function NGX_AP_HDG_show () ipc.sleep(50) ngx_hdg = ipc.readLvar("L:ngx_HDGwindow") DspHDG(ngx_hdg) end function NGX_AP_HDG_inc () ipc.control(70022, 16384) NGX_AP_HDG_show () end function NGX_AP_HDG_dec () ipc.control(70022, 8192) NGX_AP_HDG_show () end function NGX_AP_ALT_show () ngx_alt = ipc.readLvar("L:ngx_ALTwindow") DspALT(ngx_alt) end function NGX_AP_ALT_inc () ipc.control(70032, 16384) NGX_AP_ALT_show () end function NGX_AP_ALT_dec () ipc.control(70032, 8192) NGX_AP_ALT_show () end With this code the values start to change on the pmdg mcp and on the vri mcp, but there's some other issue. The values on the vri mcp change as I rotate the knob, but they do always reset to their default state of 000 (the good thing is that they started to change ===================================================================================================== But !!! when I was changing the code I got some funny thing. If I put this code (I change the DspSPD and DspALT to DspHDG as it goes down there - the alt and spd on the vri do change!!!, only the hdg value resets to 000 when I stop rotating the HDG knob): function Timer () NGX_AP_SPD_show () NGX_AP_HDG_show () NGX_AP_ALT_show () end function NGX_AP_SPD_show () ipc.sleep(50) ngx_spd = ipc.readLvar("L:ngx_SPDwindow") DspHDG(ngx_spd) end function NGX_AP_SPD_inc () ipc.control(70016, 16384) NGX_AP_SPD_show () end function NGX_AP_SPD_incfast () local i for i = 1, 4 do ipc.control(70016, 16384) end NGX_AP_SPD_show () end function NGX_AP_SPD_dec () ipc.control(70016, 8192) NGX_AP_SPD_show () end function NGX_AP_SPD_decfast () local i for i = 1, 4 do ipc.control(70016, 8192) end NGX_AP_SPD_show () end function NGX_AP_HDG_show () ipc.sleep(50) ngx_hdg = ipc.readLvar("L:ngx_HDGwindow") DspHDG(ngx_hdg) end function NGX_AP_HDG_inc () ipc.control(70022, 16384) NGX_AP_HDG_show () end function NGX_AP_HDG_dec () ipc.control(70022, 8192) NGX_AP_HDG_show () end function NGX_AP_ALT_show () ngx_alt = ipc.readLvar("L:ngx_ALTwindow") DspHDG(ngx_alt) end function NGX_AP_ALT_inc () ipc.control(70032, 16384) NGX_AP_ALT_show () end function NGX_AP_ALT_dec () ipc.control(70032, 8192) NGX_AP_ALT_show () end As You can see in the NGX_AP_SPD_show, NGX_AP_HDG_show and NGX_AP_ALT_show there's continuously - DspHDG(ngx_spd), DspHDG(ngx_hdg) and DspHDG(ngx_alt). It gave me to thinking that there may be something wrong with the common.lua DspHDG DspSPD and DspALT, because some part of the code is resetting the displays to 000 even when the values start changing. That's my actual code from common.lua for these functions: function DspSPD (i) if dev == 0 then return end local strVal strVal = DspNum(i) if DSP_SPD_PREV ~= strVal then if _MCP2() then --or _MCP2a() then Dsp9("\\\\ \\") end ipc.sleep(20) com.write(dev, "SPD" .. DspNum(i) .. "__", 8) SPD = i DSP_SPD_PREV = strVal DspHideCursor() end end function DspHDG (i) if dev == 0 then return end local strVal strVal = DspNum(i) if DSP_HDG_PREV ~= strVal then if _MCP1() then ipc.sleep(30) com.write(dev, "HDG" .. DspNum(i), 8) DspHideCursor() elseif _MCP2() then DspC(DspNum(i) .. '\\') elseif (_MCP2a() and Airbus) then ipc.sleep(30) com.write(dev, "HDG" .. DspNum(i,3) .. '\\', 8) else -- MCP2a default DspB(DspNum(i) .. '\\') end HDG = i DSP_HDG_PREV = strVal end end function DspALT (i) if dev == 0 then return end local strVal strVal = DspNum(i) if DSP_ALT_PREV ~= strVal then ipc.sleep(30) com.write(dev, "ALT" .. DspNum(i), 8) DspHideCursor() ALT = i DSP_ALT_PREV = strVal end end Thanks again for Your patience and great advices Czarnecki Dariusz
September 9, 201510 yr Author OK topic closed tonight I uninstalled all PMDG prducts I had and made clean install of NGX, VRI SOFTWARE, Linda and ngx mod. The panel with both apps started to work at last. Sth was f..ed by the side of pmdg modules. The Linda software works great and even the responses to knobs are faster and more efficient comparing to vri software. Thanks for Your time and patience Guenter. For sure You are the Man Thanks also that I could learn a lot of another scripting language and I can use it oppose another sim addons. That means a lot for a true flight simmer. I wish You and all the team all the best and a donation for the project is a must Happy flights and throttles on Czarnecki Dariusz
September 14, 201510 yr Great it works now! Thanks for reporting back Guenter Steiner -------------------------------------------------------------------------------------- Betatester for: A2A, LORBY, FSR-Pillow Tester --------------------------------------------------------------------------------------
Create an account or sign in to comment