Jump to content
The simFlight Network Forums

Emile B.

  • Content Count

  • Joined

  • Last visited

Everything posted by Emile B.

  1. Yes, that worked a treat ! Many thanks indeed ! Regards, Emile.
  2. Hi Pete & John, A Lua plug-in I set up for the A2A C172 contains the following function : function C172_Door_Open_If_Closed() local doors doors = ipc.readUB(0x3367) if logic.And(doors,1) == 0 -- pilot door closed and ipc.readUB(0x0366) == 1 -- aircraft on ground then ipc.setbitsUB(0x3367, 1) end -- doors = ipc.ask("Which door?\n1=Pilot\n2=Pax\n3=Both") -- 1 = pilot, 2 = passenger, 3 = both -- if doors = 1 or doors = 2 or doors = 3 then -- check input is valid -- if ipc.readUB(0x0366) == 1 -- airc
  3. I just ran into the same issue - great to find a solution with a single search - thanks !
  4. Yayyy ! I edited the DASH8.MCRO file : changed the mouse click code for the Baro_STD action from 3 into 2 and PRESTO, that's done it ! THANK YOU SO MUCH ! As I use mouse macros a bit for the Dash-8 (and there is no middle button on the mouse I use), knowing this may come in handy for other functions as well - learnt something again 👍 Cheers, Emile.
  5. Thanks for your quick reply. I have since updated to V6.0.8 before doing anything else. I have since also assigned the BAROMETRIC_STD_PRESSURE control to a spare button on my programmable button box. I can confirm that this control does work with the default P3D AC11 Commander 114. In the Dash-8, a knob adjusting the barometer setting is operated by left or right clicking nearer the perimeter of the knob, and the barometer is set to STD pressure by left or right clicking in the centre of the knob. Done with the mouse, this works fine. I captured those three mouse clicks in a mouse m
  6. I have assigned a number of controls to key presses using the drop-down box in FSUIPC V6-0-3, for the Majestic Q400 Dash-8, in P3DV4.5 HF3. One of those - the BAROMETRIC_STD_PRESSURE control (66846) - does not work : when the command is executed with a barometric pressure other than 1013, the barometer does not change to 1013, which is what I would have expected. I must have done something wrong, but what ? All other controls assigned through drop-down box selection are working fine. Any help much appreciated.
  7. Is it possible to refresh a lua plug-in without having to reload the aircraft that uses it ? I am editing a lua plug-in that I wrote for the PMDG NGX to use it with the PMDG NGXu. Testing modifications currently requires me to restart P3DV4.5 as PMDG aircraft can't be loaded over the top of one another, which is rather time-consuming. Sorry if this has already been asked, but I did search the forum to begin with, to no avail. Any help much appreciated. Thanks, Emile Bax.
  8. Hi Peter, I have just established that the two Lvar writes do indeed work when I put them in a function and call that via a flag event. So I will put an ipc.sleep in front of the two lines to delay their execution and see if they still work when inside the auto loaded lua plug-in but not inside a function. Cheers, Emile.
  9. Hi Peter, that's a good point. Yes they are existing LVars and I know that they worked in the FSX version of the PMDG 737NG. Therefore I just assumed - possibly erroneously - that this would also apply in the P3D version. I will first of all use your suggestion of a keypress to verify if the Lvar writes do indeed work but may be sent too soon, in which case a delay would fix the problem. I would have to check if there is a control that lowers the yokes, as previously writing the Lvars did the trick. Sure, a mouse click will lower them but that's a bit easy ! All in all, many thanks for
  10. Using P3DV4.3 with FSUIPC V5.14 (UseProfiles=Files) I am trying to set two Local Gauge Variables when the PMDG 737NG is loaded so that both pilots' yokes are lowered automatically on startup. To this effect I added the following two lines to a lua plug-in, stored in the \Modules folder and called in the [Auto] section of the file 737NG.ini in the \Modules\Profiles folder : ipc.writeLvar("L:yoke_left_hide", 1) ipc.writeLvar("L:yoke_right_hide", 1) Unfortunately it does not work and the yokes stubbornly remain up unless I lower them myself. I'm obviously leaving something out. How
  11. Peter, This is my first post here though I've been using your invaluable FSUIPC for a number of years now. Reading the above, I'm just wondering if some users could look at using FSX controls through FSUIPC via a Lua plug-in ? No need to worry about mouse co-ordinates that way. For me it's been like a gift from heaven (OK, perhaps this should read "from somewhere near Stoke-on-Trent" :grin:). With some help I managed to track down the FSX controls that activate the CDU buttons in the PMDG NGX. From there, after reading your FSUIPC docs, I managed to create a simple Lua plugin that depend
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.