Jump to content
The simFlight Network Forums

cellular55

Members
  • Posts

    303
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by cellular55

  1. Hi Peter, thanks a lot for your prompt answer... highly useful as always. I will update my program as suggested, effectively, even if not so visible running FSX, I had some suspect in term of efficiency considering the high number of read/write that i separately do Best regards Joe
  2. Hi Peter, reading this post i put attention to your comment: 'I do hope you aren't doing a Process call for each and every offset you want to read'. As I have written a program doing several reads and writes with 'process' calls for each one, I would understand which are the risks here and the benefits I could get modyfing the calls as you are suggesting. Thanks ain advance and best regards Joe
  3. Hi, Bingo !!! That was the point. What I do not understand is that effectively the plan is on the Server PC (where FSX is) and not on the client where I have the program and the wideclient , but putting the local path of the Server PC the plan is correctly loaded. Once more thanks a lot Paul. Joe
  4. Hi, I have done what suggested activating the log in widefs and effectively the offset is correctly written, but the flight is not loaded in fsx. I have also tried putting "\" instead of "\\" but with no changes. Suggestions are more than welcome Thanks Joe
  5. Hi, I have modified the code as suggested, but nothing cahnges: plan is not loaded. I think that the issue here is that with this code I write always only one byte at the offset address and not the entire lenght of the plan string Joe
  6. Hi, I have tried but without success. I think that the issue here is that I'm not able to understand how to properly write in the offset all the array in the correct way (I think I'm writing always the same byte at the offset, but I do not have idea how to change the offset pointer when I write the different elements of the array).. Below the code I have tried: ------------------------------------------- Public Sub Load_Plan() Dim dwresult1 As Long Dim plnx(256) As Byte PLANTXT = "\\FSX-PC\Users\ffffff\My Documents\File di Flight Simulator X\LIRA Ciampino - LIML Linate.pln" For i = 1 To Len(PLANTXT) plnx(i) = Asc(Mid(PLANTXT, i, 1)) Call FSUIPC_Write1(&H130, 256, VarPtr(plnx(i)), dwresult1) Next plnx(i + 1) = 0: rem put null char at the end of the sring Call FSUIPC_Write1(&H130, 256, VarPtr(plnx(i+1)), dwresult1) Call FSUIPC_Process1(dwresult1) End Sub ----------------------------------------------- Any help will be more than welcome Thanks and kind regards Joe
  7. Hi, thanks a lot for the answers. I will try what suggested and I'll let you know about results. Joe
  8. Hi, I'm tring to write in the Offset 130 the address and the name of the flight plan that I would load in FSX. Doing this through Widefs I use the UNC format, but nothing happens and the flight is not loaded. Here the code I'm using in my VB program: PLANTXT = "\\FSX-PC\Users\ffffff\My Documents\File di Flight Simulator X\LIRA Ciampino - LIML Linate.pln" Call FSUIPC_Write(&H130, 256, VarPtr(PLANTXT), dwresult) Call FSUIPC_Process(dwresult) What am I doing wrong here? Thanks for the support and best regards Joe
  9. Hi, thanks a lot.. you are my hero !!!! :razz: That worked great !!!!! :razz: :razz: Joe
  10. Hi, I have used all the variable types in VB, but I get aleays an overflow error tring to write at the same time the 64 bits It is possible to define arrays in VB, but honestly I do not understand how this could solve the issue transforming from lat and lon in degrees to kt and lon in FSX format Best regards Joe
  11. Hi, I'm writing an app that using the G5.csv file create by makerunways would move the aicraft in a specific position of the airports. Due to some limits of VB I'm not able to do that with a single write of the offsets 560 and 568 and I'm facing some issues. If it seems that I correctly write the value of the high part (ie the offset 564 long 4) checking the value before and after the writing (the formula lat_degrees/90*10001750), I'm not able to find the right formula to write the offset 560 long 4. The same issue is to change the longitude (good value written at offset 572 long 4), but nothing to do with the low part at 568. Hope in same help Thanks and best regards Joe
  12. Hi Pete, after your suggestions and few investigation it seems I have solved the problem: after the statements to write the offset 3114 and then the 3110, I have added the line FSUIPC_Process (dwresult) and the writes are done !!! Thanks a lot and best regards Joe
  13. Hi Pete, thanks for the answer. I have tried to write the offset 3114 before than the 3110, but nothing happens: probably I'm missing the FSUIPC_Process call: could you give me some directions about that? Good to know about the LUA, even if I have to discover how to run them from a VB program: I'm creating a sort of external gauge to use on a touch screen to send several keys to FSX as if I am pushing buttons Thanks again and best regards Joe
  14. Hi, I'm trying to write the offset 3110 using a Visual Basic program, but I'm not able to do that in a unique write statement as explained in the offset documentation. Pratically I do not know how to transform/put the two long variables (containing the FSX control 1070 and the key parameter) in a double var as expected. I cannot use a lua files (that I have successfully tested on the PC having FSX installed) because I need to run the program from a networked PC via widefs. Any suggestion will be more than welcome Thanks and best regards Joe
  15. Hi Peter, I would like to know if is there an offset to use to warn when the GS localiser is captured (meaning for that when you are close to cross the rwy centerline and you have to start to turn on the final course for landing). I already use the offset C4C to get the warn when the GS is alive. Could be useful for that the offset C48? Is it correct to assume that a needle value close to 0 means that you are crossing the landing rwy? Thanks and best regards
  16. Hi Peter, can you please indicate me the right offset to use to identify the right heading in degrees to fly to a specifc vor (freq tuned in NAV2? I have tred to use different offsets (0c42, 0c5c,0c60), but no one of them gives me the right direction. Thanks and best regards Joe
  17. Hi Peter, also your suggestion is creating strange behavior on the scipt (and anyway also the delay I put). I'm deciding to manage things through a VB program using and adapting the interfaces for VB that are in the download links. For what you know those interfaces are valid also through widefs? In other words I can read and manage offsets in a VB program running on the client PC? Thanks and best regards Joe
  18. Hi Peter, thanks again for all your support and attention. I do not know if this can make sense to you, but (crossing my fingers) it seems that the issue has been solved putting as first command of the script an ipc.sleep that I have now fixed at 20 seconds. The strange thing is that if Ido not put that command, even if I wait still longer time before to push the first key activating a function in the scripts, the script has the usual bad behavior. With the ipc.sleep as 1st command the script goes fine and also other functions that I have put there reading and writing different offsets or executing different macros. I will try to experiment shorter sleeping (10 or 5 second for example), but I would like to know your point of view. Thanks again abd best regards Joe
  19. Peter, really sorry to bother you again, but doing more test I have noticed a really strange behavior: I launch the script and the first sound is executed, no offset write,no offset read, no macro,no ipc.display (that I have put to better test). After that if I manually set in fsx the offset again to 0 and click the key the next correct sound is played,the write offset,the read offset,themacro and the display are correctly executed. What can this mean? BR Joe
  20. Hi Peter, unfortunately I'm still back to you with the problem. As you can see in the log I'm still facing the initial issue: ********* FSUIPC4, Version 4.756 by Pete Dowson ********* User Name="Giuseppe Rondena" User Addr="giuseppe.rondena@fastwebnet.it" FSUIPC4 Key is provided WideFS7 Key is provided Running inside FSX on Windows 7 Module base=61000000 390 System time = 13/01/2012 21:24:30 405 FLT UNC path = "\\FFFFFF-PC\Users\ffffff\Documents\File di Flight Simulator X\" 1154 Trying to connect to SimConnect Acc/SP2 Oct07 ... 1154 FS UNC path = "\\FFFFFF-PC\Microsoft Flight Simulator X\" 4337 LogOptions=00000000 00000001 4337 Wind smoothing fix is fully installed 4337 G3D.DLL fix attempt installed ok 4337 SimConnect_Open succeeded: waiting to check version okay 4337 Trying to use SimConnect Acc/SP2 Oct07 7004 Running in "Microsoft Flight Simulator X", Version: 10.0.61472.0 (SimConnect: 10.0.61259.0) 7004 Initialising SimConnect data requests now 7004 FSUIPC Menu entry added 7051 \\FFFFFF-PC\Microsoft Flight Simulator X\FLIGHTS\OTHER\FLTSIM.FLT 7051 \\FFFFFF-PC\Microsoft Flight Simulator X\SimObjects\Airplanes\Aircreation_582SL\Aircreation_582SL.AIR 31091 \\FFFFFF-PC\Microsoft Flight Simulator X\SimObjects\Airplanes\feelThere pic 737-300\B737-3A00A.AIR 47830 Aircraft="FeelThere Boeing 737-300 Lufthansa" 47830 System time = 13/01/2012 21:25:18, Simulator time = 12:30:38 (11:30Z) 110433 Starting everything now ... 110433 LUA: beginning "D:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\ipcReady.lua" 110433 AES Link established 110480 Run: "C:\Program Files (x86)\SerialFP2\SerialFP2.exe" 110480 Run: "C:\Program Files (x86)\SerialFP2\SerialFP2.exe" 110526 Run: "C:\Program Files (x86)\FSPS\3D Real Cockpit Effect\3D Real Cockpit Effect FSX.exe" 110589 Run: "C:\Program Files (x86)\FSPS\Dolby Cockpit Sounds FSX\Dolby Cockpit Sounds FSX.exe" 114083 Advanced Weather Interface Enabled 246357 Sim stopped: average frame rate for last 137 secs = 61.1 fps 518921 Sim stopped: average frame rate for last 61 secs = 39.8 fps 566985 LogOptions changed, now 40000000 00000001 579091 KEYDOWN: VK=17, Waiting=0, Repeat=N, Shifts=2 579091 .. Key not programmed -- passed on to FS 579091 KEYDOWN: VK=9, Waiting=0, Repeat=N, Shifts=18 579091 .. Key not programmed -- passed on to FS 579107 KEYDOWN: VK=81, Waiting=0, Repeat=N, Shifts=18 579107 IPC Offsets Control: Ctrl=x0100, Length=1, Offset=66C5, Param=x1 579107 .. This key is programmed in FSUIPC4 'Keys' options 579107 KEYUP: VK=81, Waiting=0 579107 Monitor IPC:66C5 (U8) = 1 579138 KEYUP: VK=9, Waiting=0 579138 KEYUP: VK=17, Waiting=0 599324 Sim stopped: average frame rate for last 30 secs = 39.0 fps and here the LUA script: Aiuto=0 -------------------------------------------------------------------------------------------- function SOS(offset,value) if value == 1 then ipc.writeUB(0x66c5,0) sound.play("c:\\mysound\\paxsign.wav") ipc.sleep(50) sound.play("c:\\mysound\\paxsign.wav") ipc.sleep(50) sound.play("c:\\mysound\\paxsign.wav") ipc.sleep(100) gnd=ipc.readUW(0x366) if Aiuto == 0 then sound.play("c:\\mysound\\failproblem.wav") Aiuto=1 ipc.macro("wilcoseat:ON") return end if Aiuto == 1 and gnd == 0 then sound.play("c:\\mysound\\failbeforeland.wav") ipc.macro("wilcoseat:ON") end if Aiuto == 1 and gnd == 1 then ipc.macro("wilcoseat:OFF") NoAmbience=1 sound.play("c:\\mysound\\door_large_open.wav") ipc.keypress(69,1) sound.play("c:\\mysound\\failatgate.wav") end end end ------------------------------------------------------------------------------------------- event.offset(0x66c5,"UB","SOS") The first sound is executed, but the offset in not set back to 0, and also the macro and the other offset read into the script are not executed. Respect the previous run I have only installed the new version 4.757 and tried to use the UDP protocol. After to have seen that the script were no more running well I have set back the protocol to TCP and after also reinstalled the FSUIPC 4.756 (restarting FSX at each step), but nothing has changed. Going crazy, what should I do now? Thanks and best regards Joe
  21. Hi Peter, I have just installed the new version of the modules and... everything seems to be OK now !!!! I attach the FSUIPC log and, if I correctly understand it, you will see the confirmation of that (as showed also in the offset monitoring in the FSX's screen). Also the macro contained in the LUA and the other offset reads, that before were not always properly executed, are now perfect: ********* FSUIPC4, Version 4.756 by Pete Dowson ********* User Name="Giuseppe Rondena" User Addr="giuseppe.rondena@fastwebnet.it" FSUIPC4 Key is provided WideFS7 Key is provided Running inside FSX on Windows 7 Module base=61000000 109 System time = 11/01/2012 20:40:06 125 FLT UNC path = "\\FFFFFF-PC\Users\ffffff\Documents\File di Flight Simulator X\" 156 Trying to connect to SimConnect Acc/SP2 Oct07 ... 171 FS UNC path = "\\FFFFFF-PC\Microsoft Flight Simulator X\" 3369 LogOptions=00000000 00000001 3369 Wind smoothing fix is fully installed 3369 G3D.DLL fix attempt installed ok 3369 SimConnect_Open succeeded: waiting to check version okay 3369 Trying to use SimConnect Acc/SP2 Oct07 5382 Running in "Microsoft Flight Simulator X", Version: 10.0.61472.0 (SimConnect: 10.0.61259.0) 5382 Initialising SimConnect data requests now 5382 FSUIPC Menu entry added 5397 \\FFFFFF-PC\Microsoft Flight Simulator X\FLIGHTS\OTHER\FLTSIM.FLT 5397 \\FFFFFF-PC\Microsoft Flight Simulator X\SimObjects\Airplanes\Aircreation_582SL\Aircreation_582SL.AIR 15397 Weather Mode now = Global 18439 \\FFFFFF-PC\Microsoft Flight Simulator X\SimObjects\Airplanes\feelThere pic 737-300\B737-3A00A.AIR 76924 System time = 11/01/2012 20:41:23, Simulator time = 12:30:24 (11:30Z) 79981 Aircraft="FeelThere Boeing 737-300 Lufthansa" 81261 Weather Mode now = Theme 81760 Weather Mode now = Global 102227 Starting everything now ... 102243 LUA: beginning "D:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\ipcReady.lua" 102243 AES Link established 102243 Run: "C:\Program Files (x86)\SerialFP2\SerialFP2.exe" 102243 Run: "C:\Program Files (x86)\SerialFP2\SerialFP2.exe" 102243 Run: "C:\Program Files (x86)\FSPS\3D Real Cockpit Effect\3D Real Cockpit Effect FSX.exe" 102243 Run: "C:\Program Files (x86)\FSPS\Dolby Cockpit Sounds FSX\Dolby Cockpit Sounds FSX.exe" 102368 Weather Mode now = Theme 102368 Advanced Weather Interface Enabled 103444 Weather Mode now = Global 154612 Sim stopped: average frame rate for last 53 secs = 71.4 fps 231146 LogOptions changed, now 40000000 00000001 241536 KEYDOWN: VK=17, Waiting=0, Repeat=N, Shifts=2 241536 .. Key not programmed -- passed on to FS 242035 KEYDOWN: VK=17, Waiting=0, Repeat=Y, Shifts=2 242035 .. Key not programmed -- passed on to FS 242082 KEYDOWN: VK=17, Waiting=0, Repeat=Y, Shifts=2 242082 .. Key not programmed -- passed on to FS 242098 KEYDOWN: VK=17, Waiting=0, Repeat=Y, Shifts=2 242098 .. Key not programmed -- passed on to FS 242129 KEYDOWN: VK=17, Waiting=0, Repeat=Y, Shifts=2 242129 .. Key not programmed -- passed on to FS 242160 KEYDOWN: VK=9, Waiting=0, Repeat=N, Shifts=18 242160 .. Key not programmed -- passed on to FS 242659 KEYDOWN: VK=9, Waiting=0, Repeat=Y, Shifts=18 242659 .. Key not programmed -- passed on to FS 242691 KEYDOWN: VK=9, Waiting=0, Repeat=Y, Shifts=18 242691 .. Key not programmed -- passed on to FS 242722 KEYDOWN: VK=9, Waiting=0, Repeat=Y, Shifts=18 242722 .. Key not programmed -- passed on to FS 242753 KEYDOWN: VK=9, Waiting=0, Repeat=Y, Shifts=18 242753 .. Key not programmed -- passed on to FS 242784 KEYDOWN: VK=9, Waiting=0, Repeat=Y, Shifts=18 242784 .. Key not programmed -- passed on to FS 242815 KEYDOWN: VK=9, Waiting=0, Repeat=Y, Shifts=18 242815 .. Key not programmed -- passed on to FS 242862 KEYDOWN: VK=9, Waiting=0, Repeat=Y, Shifts=18 242862 .. Key not programmed -- passed on to FS 242862 KEYDOWN: VK=81, Waiting=0, Repeat=N, Shifts=18 242862 IPC Offsets Control: Ctrl=x0100, Length=1, Offset=66C5, Param=x1 242862 .. This key is programmed in FSUIPC4 'Keys' options 242862 Monitor IPC:66C5 (U8) = 0x1 242971 Monitor IPC:66C5 (U8) = 0x0 243096 KEYUP: VK=81, Waiting=0 243127 KEYUP: VK=9, Waiting=0 243174 KEYUP: VK=17, Waiting=0 244843 Macro: mouse action="b733fwdovh.GAU":X4555e*Xe900 244843 Macro: mouse action="b733fwdovh.GAU":X4555e*Xe900 255264 KEYDOWN: VK=17, Waiting=0, Repeat=N, Shifts=2 255264 .. Key not programmed -- passed on to FS 255592 KEYDOWN: VK=16, Waiting=0, Repeat=N, Shifts=3 255592 .. Key not programmed -- passed on to FS 256091 KEYDOWN: VK=16, Waiting=0, Repeat=Y, Shifts=3 256091 .. Key not programmed -- passed on to FS 256138 KEYDOWN: VK=16, Waiting=0, Repeat=Y, Shifts=3 256138 .. Key not programmed -- passed on to FS 256169 KEYDOWN: VK=16, Waiting=0, Repeat=Y, Shifts=3 256169 .. Key not programmed -- passed on to FS 256200 KEYDOWN: VK=16, Waiting=0, Repeat=Y, Shifts=3 256200 .. Key not programmed -- passed on to FS 256231 KEYDOWN: VK=16, Waiting=0, Repeat=Y, Shifts=3 256231 .. Key not programmed -- passed on to FS 256278 KEYDOWN: VK=16, Waiting=0, Repeat=Y, Shifts=3 256278 .. Key not programmed -- passed on to FS 256294 KEYDOWN: VK=16, Waiting=0, Repeat=Y, Shifts=3 256294 .. Key not programmed -- passed on to FS 256341 KEYDOWN: VK=16, Waiting=0, Repeat=Y, Shifts=3 256341 .. Key not programmed -- passed on to FS 256356 KEYDOWN: VK=16, Waiting=0, Repeat=Y, Shifts=3 256356 .. Key not programmed -- passed on to FS 256403 KEYDOWN: VK=16, Waiting=0, Repeat=Y, Shifts=3 256403 .. Key not programmed -- passed on to FS 256450 KEYDOWN: VK=16, Waiting=0, Repeat=Y, Shifts=3 256450 .. Key not programmed -- passed on to FS 256450 KEYDOWN: VK=80, Waiting=0, Repeat=N, Shifts=3 256450 IPC Offsets Control: Ctrl=x0100, Length=1, Offset=66C2, Param=x1 256450 .. This key is programmed in FSUIPC4 'Keys' options 256450 Monitor IPC:66C2 (U8) = 0x1 256559 Monitor IPC:66C2 (U8) = 0x0 256653 KEYUP: VK=80, Waiting=0 256699 KEYUP: VK=16, Waiting=0 256715 KEYUP: VK=17, Waiting=0 257121 Macro: mouse action="b733fwdovh.GAU":X4555e*Xe900 257121 Macro: mouse action="b733fwdovh.GAU":X4555e*Xe900 300099 KEYDOWN: VK=17, Waiting=0, Repeat=N, Shifts=2 300099 .. Key not programmed -- passed on to FS 300598 KEYDOWN: VK=17, Waiting=0, Repeat=Y, Shifts=2 300598 .. Key not programmed -- passed on to FS 300598 KEYDOWN: VK=9, Waiting=0, Repeat=N, Shifts=18 300598 .. Key not programmed -- passed on to FS 301097 KEYDOWN: VK=9, Waiting=0, Repeat=Y, Shifts=18 301097 .. Key not programmed -- passed on to FS 301129 KEYDOWN: VK=9, Waiting=0, Repeat=Y, Shifts=18 301129 .. Key not programmed -- passed on to FS 301144 KEYDOWN: VK=81, Waiting=0, Repeat=N, Shifts=18 301144 IPC Offsets Control: Ctrl=x0100, Length=1, Offset=66C5, Param=x1 301144 .. This key is programmed in FSUIPC4 'Keys' options 301144 Monitor IPC:66C5 (U8) = 0x1 301207 Monitor IPC:66C5 (U8) = 0x0 301347 KEYUP: VK=81, Waiting=0 301394 KEYUP: VK=9, Waiting=0 301409 KEYUP: VK=17, Waiting=0 301893 Macro: mouse action="b733fwdovh.GAU":X45383*Xe900 301909 Macro: mouse action="b733fwdovh.GAU":X45383*Xe900 301909 FSUIPC Control Action: Ctrl=1070, Param=325 301909 SendKeyToFS(00040045=[shft+E], KEYDOWN) ctr=0 301909 Sending WM_KEYDOWN, Key=16 (Shift) (Scan code 42), Ctr=2 301924 Sending WM_KEYDOWN, Key=69 (Scan code 18), Ctr=1 301924 KEYDOWN: VK=16, Waiting=0, Repeat=N, Shifts=1 301924 .. Key not programmed -- passed on to FS 301924 KEYDOWN: VK=69, Waiting=0, Repeat=N, Shifts=1 301924 .. Key not programmed -- passed on to FS 302018 SendKeyToFS(00040045=[shft+E], KEYUP) ctr=0 302018 Sending WM_KEYUP, Key=69 (Scan code 18), Ctr=2 302033 Sending WM_KEYUP, Key=16 (Shift) (Scan code 42), Ctr=1 302033 KEYUP: VK=69, Waiting=0 302033 KEYUP: VK=16, Waiting=0 306947 FSUIPC Control Action: Ctrl=1070, Param=2122 306947 SendKeyToFS(0000004A=[J], KEYDOWN) ctr=0 306947 Sending WM_KEYDOWN, Key=74 (Scan code 36), Ctr=1 306963 KEYDOWN: VK=74, Waiting=0, Repeat=N, Shifts=0 306963 .. Key not programmed -- passed on to FS 307057 SendKeyToFS(0000004A=[J], KEYUP) ctr=0 307057 Sending WM_KEYUP, Key=74 (Scan code 36), Ctr=1 307072 KEYUP: VK=74, Waiting=0 326479 Sim stopped: average frame rate for last 93 secs = 41.7 fps 332532 LUA: ended "D:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\ipcReady.lua" 342890 System time = 11/01/2012 20:45:49, Simulator time = 12:32:11 (11:32Z) 342890 *** FSUIPC log file being closed Average frame rate for running time of 159 secs = 52.3 fps G3D fix: Passes 12569, Null pointers 0, Bad pointers 0, Separate instances 0 Memory managed: 540 Allocs, 540 Freed ********* FSUIPC Log file closed *********** Once again your support is more than great and your tools wonderful and reliable !!!! Thanks a lot and ciao from Italy Joe
  22. Happy for this post, I quote everthing said here !!!! FSUIPC and WideFS are allowing me to give my FSX a complete new and great dimension to reach an incredible level of fun and challenge always discovering new possibilities and capabilities. And, at the end, yes.. Peter is the man !!! Always available to support and find solutions. I still remember when I asked him to have specific offsets for a thing I had in mind.. less than two days and voila' the offsets were ready. To not mention all the updates and improvements that we have almost weekly. So.. a big, big thanks Joe
  23. Hi Peter, yes... just after the execution I realised to have anyway some 'logical' errors in the LUA (like the mentioned ipc.set.. but not only) and I have corrected that after. Now I'm at office and I cant really verify the versions I have, but they should be: FSUIPC 4.754 and WideFS 6.86 (I take your modules always updated at the last version). When back at home I will test again not pressing the 'new log' button Again thanks a lot BR Joe
  24. Hi Peter, sorry for the misunderstanding about the log. Hope that now I'm putting here the righ tinfo you need: Thiis the executed LUA (no error reportedin the related log): Aiuto=0 Seat=0 function SOS(offset,value) if value == 1 then ipc.writeUB(0x66c5,0) sound.play("c:\\mysound\\paxsign.wav") ipc.sleep(250) sound.play("c:\\mysound\\paxsign.wav") g=ipc.readUW(0x366) ipc.sleep(500) if (Aiuto == 0) then ipc.sleep(1000) sound.play("c:\\mysound\\failproblem.wav") ipc.set("Aiuto",1) ipc.macro("wilcoseat:ON") end if (Aiuto == 1) and (g == 0) then sound.play("c:\\mysound\\failbeforeland.wav") ipc.macro("wilcoseat:ON") end if (Aiuto == 1) and (g == 1) then ipc.macro("wilcoseat:OFF") sound.play("c:\\mysound\\door_large_open.wav") ipc.keypress(69,1) sound.play("c:\\mysound\\failatgate.wav") end end end function SeatB(offset,value) if value == 1 then ipc.writeUB(0x66c2,0) sound.play("c:\\mysound\\paxsign.wav") ipc.sleep(500) if Seat == 0 then sound.play("c:\\mysound\\welcome.wav") Cinture=1 ipc.macro("wilcoseat:ON") end if Seat == 1 then sound.play("c:\\mysound\\levelautobelt_new.wav") Cinture=2 ipc.macro("wilcoseat:OFF") end if Seat == 2 then sound.play("c:\\mysound\\descent_new.wav") Cinture=3 ipc.macro("wilcoseat:ON") end if Seat == 3 then sound.play("c:\\mysound\\atgate.wav") Cinture=0 ipc.macro("wilcoseat:OFF") end end end event.offset(0x66c5,"UB","SOS") event.offset(0x66c2,"UB","SeatB") and this is the FSUIPC log after: User Name="Giuseppe Rondena" User Addr="giuseppe.rondena@fastwebnet.it" FSUIPC4 Key is provided WideFS7 Key is provided [Continuation log requested by user] Running inside FSX on Windows 7 Module base=61000000 3392866 System time = 10/01/2012 20:39:34, Simulator time = 13:05:27 (12:05Z) 3392866 LogOptions changed, now 40000000 00000001 3398716 KEYDOWN: VK=17, Waiting=0, Repeat=N, Shifts=2 3398716 .. Key not programmed -- passed on to FS 3398716 KEYDOWN: VK=9, Waiting=0, Repeat=N, Shifts=18 3398716 .. Key not programmed -- passed on to FS 3398716 KEYDOWN: VK=81, Waiting=0, Repeat=N, Shifts=18 3398716 IPC Offsets Control: Ctrl=x0100, Length=1, Offset=66C5, Param=x1 3398716 .. This key is programmed in FSUIPC4 'Keys' options 3398747 Monitor IPC:66C5 (U8) = 0x1 3398747 KEYUP: VK=81, Waiting=0 3398747 KEYUP: VK=9, Waiting=0 3398747 KEYUP: VK=17, Waiting=0 3412662 KEYDOWN: VK=17, Waiting=0, Repeat=N, Shifts=2 3412662 .. Key not programmed -- passed on to FS 3412662 KEYDOWN: VK=16, Waiting=0, Repeat=N, Shifts=3 3412662 .. Key not programmed -- passed on to FS 3412693 KEYDOWN: VK=80, Waiting=0, Repeat=N, Shifts=3 3412693 IPC Offsets Control: Ctrl=x0100, Length=1, Offset=66C2, Param=x1 3412693 .. This key is programmed in FSUIPC4 'Keys' options 3412693 KEYUP: VK=80, Waiting=0 3412693 KEYUP: VK=16, Waiting=0 3412693 KEYUP: VK=17, Waiting=0 3412740 Monitor IPC:66C2 (U8) = 0x1 3443831 KEYDOWN: VK=17, Waiting=0, Repeat=N, Shifts=2 3443831 .. Key not programmed -- passed on to FS 3443831 KEYDOWN: VK=9, Waiting=0, Repeat=N, Shifts=18 3443831 .. Key not programmed -- passed on to FS 3443831 KEYDOWN: VK=81, Waiting=0, Repeat=N, Shifts=18 3443831 IPC Offsets Control: Ctrl=x0100, Length=1, Offset=66C5, Param=x1 3443831 .. This key is programmed in FSUIPC4 'Keys' options 3443862 KEYUP: VK=81, Waiting=0 3443862 KEYUP: VK=9, Waiting=0 3443862 KEYUP: VK=17, Waiting=0 3454003 Sim stopped: average frame rate for last 59 secs = 28.7 fps 3458558 LogOptions changed, now 00000000 00000001
  25. Peter, attached the requested info for the LUA used for the test It seems that not only the offset write is not executed, but also the read to check if the plane is on the ground or airborne. below the FSUIPC, wideclient and LUA logs The key calling the LUA is CRTL/TAB/Q. Thanks again for your support and best regards Joe Test.zip
×
×
  • 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.