Jump to content
The simFlight Network Forums

Jackson5

Members
  • Posts

    62
  • Joined

  • Last visited

About Jackson5

  • Birthday 01/01/1970

Profile Information

  • Gender
    Male
  • Location
    Delft, between The Hague and Rotterdam, NL

Jackson5's Achievements

Newbie

Newbie (1/14)

  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done Rare
  • One Month Later Rare

Recent Badges

0

Reputation

  1. Ah, ok. So nothing to worry about really. Thanks for your answer. I (try to) fly a freeware version of the Boeing 737-800 MAX fom Rikoooo, together with the complete Project Magenta suite. Still tweaking.... BR Jaap
  2. Hello Everyone, Ik keep have these errors in my FSUIPC6 (p3Dv5.3) log and I don't know what they are and if they are a problem. FSUIPC seems to work ok for as far as I notice. Anyone know what they are and how to maybe solve it? 551047 Exception 20 "DATA_ERROR", Ref 4083, Index param 1 on write SetData for "GENERAL ENG OIL LEAKED PERCENT:1" 551047 Exception 20 "DATA_ERROR", Ref 4084, Index param 1 on write SetData for "GENERAL ENG OIL LEAKED PERCENT:2" Curious.... Regards, Jaap
  3. Great, I got it. Thanks John! I was looking at it in the wrong order, and that was never going to work My Regards to Pete. Thanks, Jaap
  4. Dear Pete and John, I have something that I can't figure out for a while and could use a little help. I am trying to assign a hardware switch with Project Magenta's PMSystems (737) to turn APU generator 1 on and off. This switch is connected to the PC via USB via a (simplified) FlightsimPM 737 overhead panel. The other normal on/off switches in this panel work fine. In PMSystems ,running on another PC, I see that APUGen1 has 3 positions. The Offset is said to be 5624 with values 0, 1 and 2 (by hovering over the switch). My hardware switch has 3 positions and always jumps back to the middle after operating. However, FSUIPC only sees the two extreme positions and not the middle one. Now in FSUIPC Buttons and Switches, if I assign my switch position “On” to Offset 5624 with value 4 (2^2), I can see the switch move in PMSystems but the generator will not turn on. When I operate the switch on the PMSystems screen, the generator does turn on. How do I assign it so that it will work and turns on APUGen1? And to turn it off again since I only have 1 switch position discovered by FSUIPC left? I've tried everything with the other values, but I can't get it to work. (I do this with Offset Byte Togglebits btw. or is that wrong?) I'm probably in a twist of my mind and approaching it from the wrong side, and maybe this won't work at all. Anyway, I need some fresh eyes and some help. Greetings from Delft Jaap
  5. Hello Pete, I needed to wait on the weekend before I could startup the sim and do some testing again... I am trying to determine why my lua does not work when started from within ipc.ready.lua, but does work when started from a via FSUIPC assigned button. When the lua is started from ipc.ready it does some checking but finally jumps right to line 29, which is the end of the first function. After that nothing happens when opening and closing the doors. When I start the lua by hand (ipc.ready disabled), it works perfectly and starts playing the sounds beginning at line 14 as soon as the door is closed. I check the logfiles after every try, and during testing I always have the console log opened, so I can see what is going on. Lear45.lua is now the only used one. It does not run, and I did the trace but all it tells my untrained eye, is that somehow it skips the lines where it should check when the doors are opened or closed, starting at line 7. It just jumps to line 29. Ok, I have changed my ipc.ready.lua as you suggested (attached as .txt). It is correct that the Lear45.lua was commented out. I did that to test how the lua would run when started by hand. I should have changed that back before posting. I understand what you're saying, it does look inefficient, but I just don't see how to improve that. I've been at it almost all weekend, and tried various combinations but I only made things worse or not working at all. I did simplify the Lear45.lua as much as I could (attached as .txt), and it runs fine when started by hand. But if you could help me simplify it even more I would be much obliged. The first ipc.sleep in line 15 is done because of another sound (door closing) being generated by the sim would not be drowned by the pax sign sound in line 16. The other ipc.sleep commands are done for more or less the same reasons: not to drown other sounds. I have done the monitoring of offsets 0366 ( ground), 0BDC (flapsetting), 3367(doors) and 04FE(seatbeltsign from ProjectMagenta) Logfiles attached as .txt This line is no longer relevant, because the whole lua has been changed. The seatbelt.wav was playing however, but it only works when my other PC's running PM RJ, PM MCP and PM CDU are connected with WideFS. I added the above lines to my FSUIPC General section in the .ini. The log files are attached and their names should be self explanatory. I hope you have enough information to see what I am overlooking. Thanks for your patience and best regards, Jaap FSUIPC4log with LUA Autostart.txt FSUIPC4log with LUA Manual start.txt ipcready.txt Lear45.txt FSUIPC4log with LUA Autostart.txt FSUIPC4log with LUA Manual start.txt ipcready.txt Lear45.txt
  6. Ok, I understand. In that case, here is the complete log and all the lua's I use: I stopped the simulator when I saw that the Lear45.lua did not play the soundfiles. Thanks for helping, Jaap GoFlightleds.txt ipcready.txt Lear45.txt GFpower.txt FSUIPC4.txt
  7. Hello Pete, Thanks for jumping in.... Yes I did, I even had the Console log opened so that I could see what was going on. On some occasions I had a Lua Error: Attempt to calll a number value , which made it kind of clear what I did wrong, but on other occasions the LUA just ended without doing anything I expected, and without any errors. So I tried the solution you gave me and of course that works flawlessly, (GRRR) Then I looked back to the things I tried before an came across this one: -- Seatbelt announcement function seatbelt(offset,seatbelt) Landed=ipc.readUW("0366") if Logic.And(seatbelt, 128) == 0 and (ipc.readUW("0366") == 0) then ipc.sleep(3000) sound.play("E:\\Prepar3D\\sound\\CA_seatbelts off.wav") end end Apart from a little addition, this looks almost the same, but I bet that you'll spot the fault in the wink of an eye.... I took me a while, but then I spotted it too: ​​ Logic.And instead of logic.And. Oh my....... (bad words come to mind..)!. So that is solved now. Which brings me to my next question, the actual reason I started this topic: Why does the completed LUA not run correctly when started from within ipc.ready.lua? Are there limitations to the amount of LUA's that can be started from there, and can they interfere with each other when the same functions or offsets are used? And why did it run before updating from FSUIPC 4.939n (I'm not quite sure about that version) to 4.945a? When all LUA's are started automatically the LUA in question runs also but does this: 185673 LUA.1: E:\Prepar3D\Modules\Lear45.lua:10 185673 LUA.1: E:\Prepar3D\Modules\Lear45.lua:11 185673 LUA.1: E:\Prepar3D\Modules\Lear45.lua:12 185673 LUA.1: E:\Prepar3D\Modules\Lear45.lua:13 191679 LUA.1: E:\Prepar3D\Modules\Lear45.lua:11 191679 LUA.1: E:\Prepar3D\Modules\Lear45.lua:12 191679 LUA.1: E:\Prepar3D\Modules\Lear45.lua:13 197685 LUA.1: E:\Prepar3D\Modules\Lear45.lua:11 197685 LUA.1: E:\Prepar3D\Modules\Lear45.lua:12 197685 LUA.1: E:\Prepar3D\Modules\Lear45.lua:13 200820 LUA.2: Offset Change event: calling "Doors" in "E:\Prepar3D\Modules\GoFlightleds.lua" 200820 LUA.2: E:\Prepar3D\Modules\GoFlightleds.lua:44 200820 LUA.2: Local: val = 0 200820 LUA.2: E:\Prepar3D\Modules\GoFlightleds.lua:47 200836 LUA.2: E:\Prepar3D\Modules\GoFlightleds.lua:49 200836 LUA.2: Waiting for an event in "E:\Prepar3D\Modules\GoFlightleds.lua" 203691 LUA.1: E:\Prepar3D\Modules\Lear45.lua:11 203691 LUA.1: E:\Prepar3D\Modules\Lear45.lua:15 203691 LUA.1: E:\Prepar3D\Modules\Lear45.lua:29 203691 LUA.1: Waiting for an event in "E:\Prepar3D\Modules\Lear45.lua" In steps 11, 12 and 13 it's waiting for the door to be closed. Then when it is, it steps from 11 to 15 to 29 which is the end of the first part, but no sounds are played. (the LUA in use is the one from Post #3). When I remove the Lear45.lua from ipc.ready.lua and assign this LUA via FSUIPC buttons&switches to a switch, it runs perfectly together with the two LUA's that were started from within ipc.ready.lua (GFPower.lua and GoFlightleds.lua). I find that very strange. Maybe you can tell what is going wrong? In any case, thanks for helping and your patience. And sorry for the lenghty topic... Regards, Jaap
  8. I removed the Quotes and also tried the other form of notation Paul, but none of it was succesfull. I have been trying and trying for almost two days now and can't get it to work. Tried a lot off combinations and conditions, but it will not work. It should be so simple: All I want is a message being played when the seatbelt switch is set to off. That's all. How hard can it be? Am I so stupid that I can't figure it out? I know there would be easier ways to do it, but to operate the seatbeltsign in Project Magenta's RJ Glass displays, I already assigned that switch via FSUIPC Buttons&Switches. Otherwise I could assign a small lua, that just plays a message, to that switch..... I have tried to keep it as simple as I could think off: -- Seatbelt announcement function seatbelt(offset,value) seatbelt=ipc.readUW(0x04FE) if (logic.And(seatbelt, 128) == 0) then sound.play("E:\\Prepar3D\\sound\\CA_seatbelts off.wav") end end event.offset(0x04FE,"UW","seatbelt") I tried 0x080 instead of 128, and ~=128 or ==0 or ~=0 etc. But the closest I got was when the seatbelt switch was already off when I started the script, and the message was played! So I tried moving things around a bit, but it didn't get better. My holidays are now over and I'm quite fed up with it. The rest of my script is working OK, only not when started from within ipc.ready.lua. Thanks for helping Paul. Maybe when Pete is back he can solve it for me. I'm done for now! Regards, Jaap Any other suggestions: Welcome!
  9. Paul, Yes, you are absolutely right about the SW that should have been an UW! Not that I figured it out myself but shortly after my last post I came across a LUA somewhere that used the same offset and that said UW, so I already changed that. If I understand your explanation right a Signed Word is capable of using negative numbers and an Unsigned Word is not? I have some LUA documents opened here, but there's so much to absorb....... To make testing easier i have narrowed my lua down to this, as the rest works ok: -- Seatbelt announcement function seatbelt(offset,value) seatbelt=ipc.readUW("0x04FE") landing=ipc.readUW("0x0366") if (logic.And(seatbelt, 128) == 128) and (landing == 0) then sound.play("E:\\Prepar3D\\sound\\CA_seatbelts off.wav") end end event.offset(0x04FE,"UW","seatbelt") --global variables --end script-- And I have tried a number of variations, but still get the same error. I am baffled, cause usually I can get things working by asking for advice and looking around how others have solved things, but I can't put my finger on this one. It's probably something stupid we're overlooking.... @Jorge: In now have LUAEdit and that does the same thing. Also trying the debug function seems buggy. It finds errors in perfectly working lua's even the ones from the FSUIPC bundle. But in any case I don't have to count the lines anymore! Thanks for helping! Jaap
  10. Hi Paul, Thanks! Have the editor now, that's a little bit easier to work with. I already tried those two offsets you suggest, but it seems Project Magenta handles it in a different way, so they did nothing. However I found an Offset in the Project Magenta part of the offset lists: Offset Size Use 04FE 2 PFD Various (Read Only) Bit 0 Windshear 1 Below G/S 2 Caution 3 Warning 4 Stab Out Of Trim (Boeing only and TrimMax/TrimMin have to be set) 6 Eight Mode ND Active 7 Seatbelt Sign 8 No Smoking Sign 9 Weather Radar (Captain) 10 EGPWS/Terrain (Captain) 11 TCAS Active (Captain) 13 TCAS WARNING 14 TCAS ALERT and I tried this in between what I already had: -- Seatbelt announcementseatbeltflag=0function seatbelt(offset,value)seatbelt=ipc.readSW("04FE")landing=ipc.readUW("0366") if (ipc.readSW ("04FE") == 128) and (landing == 0) then sound.play("E:\\Prepar3D\\sound\\CA_paxsign.wav") ipc.sleep(3000) sound.play("E:\\Prepar3D\\sound\\CA_seatbelts off.wav") seatbeltflag=1 end end--LUA calls for events FSUIPCevent.offset(0x281C,"UD","welcome")event.offset(0x0842,"SW","climb")event.offset(0x0842,"SW","descent")event.offset(0x0842,"SW","final")event.offset(0x0BDC,"UD","landing")event.offset(0x04FE,"SW","seatbelt")--global variables--end script-- But all I get is an Error: Attempt to calll a number value.... I must admit that all that bit and byte Word and DWord stuff puzzles me very much, so I probably did something horribly wrong, but I just don't see it. Ideas? Thanks, Jaap
  11. Hello Paul, Thanks for looking at my LUA. I was puzzled about the colors in code window too, but had no Idea what it was for. So you can see by the colors when there is something faulty? You say you use a "Lua editor"? I write them in notepad, and that has no colors... What editor do you use? Maybe it can make my life a bit easier. Indeed if I run the script manually, it starts, but only the two first messages play, and sometimes, out of the blue, a descent or final message plays?! I run the FSUIPC console window next to my flightsim, and no errors appear but it sort of "hangs" in lines 8,9 and 10. I have fiddled around with the file and came up with a new one, and that seems to run fine so far, but only when I start it manually.... I did change the division operations from 3.28084 /256 to ​3.28084/256 without space. Maybe you or someone else can check this file, and see if I did something wrong or too complicated..... -- Welcome Announcement, will start when door is closed. Door must be open first!-- wcflag=0 function welcome(offset,value) Battery=ipc.readUD("281C") if (ipc.readUD("281C") == 1) then repeat ipc.readUB("3367") ipc.sleep(6000) until (ipc.readUB("3367") > 0 ) while (ipc.readUB("3367") > 0) do ipc.readUB("3367") ipc.sleep(6000) end if (value > 0) and (wcflag == 0) then ipc.sleep(3000) sound.play("E:\\Prepar3D\\sound\\CA_paxsign.wav") ipc.sleep(3000) sound.play("E:\\Prepar3D\\sound\\CA_Welcome.wav") --Welcome Message ipc.sleep(60000) sound.play("E:\\Prepar3D\\sound\\CA_paxsign.wav") ipc.sleep(3000) sound.play("E:\\Prepar3D\\sound\\CA_SafetyMessage.wav") --Safety Message wcflag=1 --don`t repeat sound end else wcflag=1 end end -- Climb Announcements climbflag=0 function climb(offset,value) vspeed=ipc.readSW("0842") * -3.28084 groundalt=ipc.readUD("0020") * 3.28084/256 alt=ipc.readUD("0574") * 3.28084 if (ipc.readUB("0609") == 1) and (climbflag == 0) then if (alt > 8000) and (vspeed > 1500) then sound.play("E:\\Prepar3D\\sound\\CA_paxsign.wav") ipc.sleep(3000) sound.play("E:\\Prepar3D\\sound\\CA_CapClimb.wav") -- climb announcement climbflag=1 end end end --Descent announcements descendflag=0 function descent(offset,value) vspeed=ipc.readSW("0842") * 3.28084 groundalt=ipc.readUD("0020") * 3.28084/256 alt=ipc.readUD("0574") * 3.28084 if (ipc.readUB("0609") == 1) and (descendflag == 0) then if (alt < 15000) and (vspeed > 1200) then sound.play("E:\\Prepar3D\\sound\\CA_paxsign.wav") ipc.sleep(3000) sound.play("E:\\Prepar3D\\sound\\CA_CapDescent.wav") -- descent announcement descendflag=1 end end end -- Final announcement finalflag=0 function final(offset,value) vspeed=ipc.readSW("0842") * 3.28084 groundalt=ipc.readUD("0020") * 3.28084/256 alt=ipc.readUD("0574") * 3.28084 if (ipc.readUB("0609") == 1) and (finalflag == 0) then if (alt < 6000 ) and (vspeed > 1000) and (descendflag == 1) then sound.play("E:\\Prepar3D\\sound\\CA_paxsign.wav") ipc.sleep(3000) sound.play("E:\\Prepar3D\\sound\\CA_BeforeLanding.wav") -- descent announcement finalflag=1 end end end -- After Landing Announcement landingflag=0 function landing(offset,value) flaps=ipc.readUD("0BDC") Landed=ipc.readUW("0366") if (ipc.readUW("0366") == 1) and (landingflag == 0) and (finalflag == 1 ) then if (flaps == 16383) then sound.play("E:\\Prepar3D\\sound\\CA_paxsign.wav") ipc.sleep(3000) sound.play("E:\\Prepar3D\\sound\\CA_AfterLanding.wav") -- After Landing announcement landingflag=1 end end end --LUA calls for events FSUIPC event.offset(0x281C,"UD","welcome") event.offset(0x0842,"SW","climb") event.offset(0x0842,"SW","descent") event.offset(0x0842,"SW","final") event.offset(0x0BDC,"UD","landing") --global variables --end script-- I'm also trying to add a seatbelt announcement that should play when the seatbelt sign has been turned off, but I can't seem to find the right offset for that. I also use Project Magenta RJ Glass cockpit, and that shows when the signs are on or off. Maybe someone can help me with that too? Thanks in advance, Jaap
  12. Hello all, I hope someone with extensive LUA knowledge here, is prepared to take a look at my Lua. It is used to play announcements in the various stages of flight. I found it somewhere on the net, so I did not write it myself and frankly I'm not very smart with LUA programming. The strange thing is that before I updated my FSUIPC version to 4.945a it used to work without problems but now it does not anymore. The Lua is started with the Sim (prepar3d) via ipcready. Sadly I have not updated FSUIPC for a long time and can't trace which version I used before, otherwise I might be able to go back to that version.... I also have the log attached, but it shows no errors though. By looking at the log, the LUA seems to run, but it doesn't. Only when I stop the LUA through some FSUIPC programmed buttons and then restart it, it runs (for a while).... Anyway, here it is. I hope someone can look it over and maybe find something incorrect. Thanks in advance, Jaap -- Welcome Announcement, will start sound if door closed. Note: Door must be open first!-- wcflag=0 doortime=0 function welcome(offset,value) ground=ipc.readUW("0366") --only on ground if (ipc.readUW("0366") == 1) then repeat -- wait for door open, if open break ipc.readUB("3367") ipc.sleep(1000) until (ipc.readUB("3367") > 0 ) while (ipc.readUB("3367") > 0) do -- wait for door closed ipc.readUB("3367") ipc.sleep(1000) end if (value > 0) and (wcflag == 0) then sound.play("E:\\Prepar3D\\sound\\CD_Welcome.wav") --Welcome Message ipc.sleep(60000) sound.play("E:\\Prepar3D\\sound\\CD_SafetyMessage.wav") --Safety Message wcflag=1 --don`t repeat sound end else wcflag=1 end end -- Climb Announcements cflag=0 function climbp(offset,value) vspeed=ipc.readSW("0842") * -3.28084 groundalt=ipc.readUD("0020") * 3.28084 /256 alt=ipc.readUD("0574") * 3.28084 altogr=alt - groundalt if (ipc.readUB("0609") == 0) and (cflag == 0) and (tbflag == 0) then -- Piston Engine? if (alt > 5000) and (vspeed > 300) and (altogr > 2000) then -- no sightseeing sound.play("E:\\Prepar3D\\sound\\paxsign.wav") ipc.sleep(3000) sound.play("E:\\Prepar3D\\sound\\CD_CapClimb.wav") -- climb announcement cflag=1 end end end ctflag=0 function climbt(offset,value) vspeed=ipc.readSW("0842") * -3.28084 groundalt=ipc.readUD("0020") * 3.28084 /256 alt=ipc.readUD("0574") * 3.28084 altogr=alt - groundalt if (ipc.readUB("0609") == 5) and (ctflag == 0) and (tbflag == 0) then -- Turbo Engine? if (alt > 11000) and (vspeed > 900) then sound.play("E:\\Prepar3D\\sound\\paxsign.wav") ipc.sleep(3000) sound.play("E:\\Prepar3D\\sound\\CD_CapClimb.wav") ctflag=1 end end end cjflag=0 function climbj(offset,value) vspeed=ipc.readSW("0842") * -3.28084 groundalt=ipc.readUD("0020") * 3.28084 /256 alt=ipc.readUD("0574") * 3.28084 altogr=alt - groundalt if (ipc.readUB("0609") == 1) and (cjflag == 0) and (tbflag == 0) then -- Jet? if (alt > 10000) and (vspeed > 1200) then sound.play("E:\\Prepar3D\\sound\\paxsign.wav") ipc.sleep(3000) sound.play("E:\\Prepar3D\\sound\\CD_CapClimb.wav") -- climb announcement cjflag=1 end end end --Descent announcements dpflag=0 function descentp(offset,value) vspeed=ipc.readSW("0842") * 3.28084 groundalt=ipc.readUD("0020") * 3.28084 /256 alt=ipc.readUD("0574") * 3.28084 altogr=alt - groundalt if (ipc.readUB("0609") == 0) and (dpflag == 0) and (tbflag == 0) then -- Piston Engine? if (alt < 6000) and (vspeed > 300) and (altogr > 2000) then sound.play("E:\\Prepar3D\\sound\\paxsign.wav") ipc.sleep(3000) sound.play("E:\\Prepar3D\\sound\\CD_CapDescent.wav") -- descent announcement dpflag=1 end end end dtflag=0 function descentt(offset,value) vspeed=ipc.readSW("0842") * 3.28084 groundalt=ipc.readUD("0020") * 3.28084 /256 alt=ipc.readUD("0574") * 3.28084 altogr=alt - groundalt if (ipc.readUB("0609") == 5) and (dtflag == 0) and (tbflag == 0) then -- Turbo Engine? if (alt < 13000) and (vspeed > 900) then sound.play("E:\\Prepar3D\\sound\\paxsign.wav") ipc.sleep(3000) sound.play("E:\\Prepar3D\\sound\\CD_CapDescent.wav") -- descent announcement dtflag=1 end end end djflag=0 function descentj(offset,value) vspeed=ipc.readSW("0842") * 3.28084 groundalt=ipc.readUD("0020") * 3.28084 /256 alt=ipc.readUD("0574") * 3.28084 altogr=alt - groundalt if (ipc.readUB("0609") == 1) and (djflag == 0) and (tbflag == 0) then -- Jet Engine? if (alt < 18000) and (vspeed > 1200) then sound.play("E:\\Prepar3D\\sound\\paxsign.wav") ipc.sleep(3000) sound.play("E:\\Prepar3D\\sound\\CD_CapDescent.wav") -- descent announcement djflag=1 end end end -- Final announcement fplflag=0 function finalp(offset,value) vspeed=ipc.readSW("0842") * 3.28084 groundalt=ipc.readUD("0020") * 3.28084 /256 alt=ipc.readUD("0574") * 3.28084 altogr=alt - groundalt if (ipc.readUB("0609") == 0) and (fpflag == 0) then -- Piston Engine? if (altogr < 2000) and (vspeed > 300) and (dpflag == 1) and (tbflag == 0) then -- coming from descent sound.play("E:\\Prepar3D\\sound\\paxsign.wav") ipc.sleep(3000) sound.play("E:\\Prepar3D\\sound\\CD_BeforeLanding.wav") -- final announcement dpflag=1 end end end ftflag=0 function finalt(offset,value) vspeed=ipc.readSW("0842") * 3.28084 groundalt=ipc.readUD("0020") * 3.28084 /256 alt=ipc.readUD("0574") * 3.28084 altogr=alt - groundalt if (ipc.readUB("0609") == 5) and (ftflag == 0) then -- Turbo Engine? if (altogr < 4000) and (fpflag == 1) and (vspeed > 800) and (tbflag == 0) then --coming from descent sound.play("E:\\Prepar3D\\sound\\paxsign.wav") ipc.sleep(3000) sound.play("E:\\Prepar3D\\sound\\CD_BeforeLanding.wav") -- final announcement ftflag=1 end end end fjflag=0 function finalj(offset,value) vspeed=ipc.readSW("0842") * 3.28084 groundalt=ipc.readUD("0020") * 3.28084 /256 alt=ipc.readUD("0574") * 3.28084 altogr=alt - groundalt if (ipc.readUB("0609") == 1) and (fjflag == 0) then -- Jet Engine? if (altogr < 4000 ) and (vspeed > 1000) and (djflag == 1) and (tbflag == 0) then --coming from descent sound.play("E:\\Prepar3D\\sound\\paxsign.wav") ipc.sleep(3000) sound.play("E:\\Prepar3D\\sound\\CD_BeforeLanding.wav") -- descent announcement fjflag=1 end end end --LUA calls for events FSUIPC event.offset(0x0366,"UW","welcome") event.offset(0x0842,"SW","climbp") event.offset(0x0842,"SW","climbt") event.offset(0x0842,"SW","climbj") event.offset(0x0842,"SW","descentp") event.offset(0x0842,"SW","descentt") event.offset(0x0842,"SW","descentj") event.offset(0x0842,"SW","finalp") event.offset(0x0842,"SW","finalt") event.offset(0x0842,"SW","finalj") --global variables --end script-- ~ ​ Log.txt
  13. Thanks Alaxus, I already came across this offset, but wasn't sure which one to choose from, so I took 5410
  14. Hello Pete, Thansk for your answer. Pity that PM has no toggle facility for A/T and Flightdirectors. I asked them but got replied that I should try it with Offset 5410. When you mentioned the Flag Facility I remembered to have read something about that in the FSUIPC manuals. At that time I must have thought I would never need it, so I kind of forgot it..... With the manual at my side I started trying and after some errors I got this: 114=P101,29,C1005,3842 115=CP(F+15,2)101,29,Cx0F005410,x00080000 116=CP(F-15,2)101,29,Cx0F005410,x00100000 And it works perfectly.... Did I do it in the correct way? Now I can do the same for the Flight Directors! Thanks again! Regards, Jaap
  15. Hello Mr. Dowson, and a Merry Christmas to you! I have a question about the options for the PM MCP Flight Director in the Buttons & Switches dropdownlist. Currently I am in the process of converting a GoFlight Boeing MCP to look and act like a Lear 45 MCP. This means some disassembling and making another frontplate. Some of the Boeing functions are obsolete, others will have to be amended if possible. This is how it looks at the time: You notice that switching the flight directors on / off no longer happens with a flip switch like with the Boeing, but with a push button, and herein lies my problem. I have hardwired the flip switch from the Go Flight MCP to the Push button on the Lear MCP. This Pushbutton is a momentary one so when I push it, the Flight Director comes on, and goes off again when I release the button! That was not meant to happen, but logical cause the GoFlight hardware is designed for a flip switch. I was hoping to be able to solve that with the FSUIPC buttons and Switches section but that is only partly true. I have now assigned the FD1 to the PM MCP FD1 ON function. When I press it the FD goes on, but now I can never turn it off again with the same button. Same goes for the A/T. Originally also a Flip switch, but now a Push button, So, after a long story here is my question; Is it possible for you to add three options to the list of selections called: Toggle PM MCP FD1, a Toggle PM MCP FD2 and Toggle PM MCP A/T ? That would instantly solve it....... Thanks for reading and Best Regards, Jaap Both Netherlands
×
×
  • 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.