Jump to content
The simFlight Network Forums

Dominik

Members
  • Posts

    25
  • Joined

  • Last visited

Everything posted by Dominik

  1. In the LUA code, I added print (CDU_data) to display this data in the console. CDU_Data is displayed as a string that is constantly changing. Do you need to format this data somehow after reading? In the attachment I am sending the log file. FSUIPC7_prev.log
  2. It uses LUA to read the offsets and write this data as text to a txt file. The second program reads this data from the txt file and sends it to the Arduino. My point is to use LUA to read the text lines on the CDU and save them as text in a txt file. Then the second program will read this data from the txt file and send it to the Arduino.
  3. using LUA I can read PMDG offsets but I have a problem with CDU Screen Data offset 0x5400-0x57FF. Can anyone help me how to read these offsets correctly using LUA script. Thanks for any help. Dominik.
  4. Thanks for your help, I set LvarScanDelay = 25 in FSUIPC_WASM.ini and actually fsuipc loaded more LVARs for me. Previously it was loading around 1700 now it's 1912. Everything works ok. I found the file FSUIPC_WAMS.ini in Community \ fsuipc-lvar-module only. There is no such file in the location mentioned in the Advanced User guide. Should I copy the teen ini file from the community folder?
  5. After updating to SU10 it seems to me that fsuipc does not load all PMDG LVARs. Lua reports the bug that there is no such LVAR. It always helped to call from Add-ond >> WASM >> Reload and then everything was ok. I tested on versions 7.3.7 and 7.3.9dFSUIPC7.log Regards Dominik FSUIPC7.ini
  6. Thank you for your help!
  7. I have a homemade panel. I want lua to read if a given switch is on or off. I don't mean the switch settings in MSFS, but the switches on my panel that I can set in fsuipc.
  8. With LUA I can write an event e.g. event.button (2,4,1, "EFIS320") and it works ok. But how do you check with LUA what position this button is in? Whether it is on or off, what is the position 0,1 or 2 Regards Dominik.
  9. I think I found a solution to the problem, I have to use string.format("%04X", value)
  10. Hello, I'm trying to read the offset 0x034E - COM1 frequency, using lua, Here is the code while 1 do file = io.open("test.txt", "w") ppp = ipc.readUW(0x034E) file:write(ppp, "\n") file:close() ipc.sleep(50) end The loop writes the value of this offset to the file. The value of this offset is 6194, com1 frequency is set to 118.050 It reads this value wrong and I don't know where I went wrong. Please help. Dominik.
  11. Despite it all, you would add these offsets to the next version of fsuipc.
  12. Autopilot offsets are working properly. You can write and read the values 1 and 2. Unfortunately the autopilot itself does not work properly, it seems to me that these offsets are responsible for the "dots" on the autopilot display and something else. If the plane climbs to the set altitude and we lower the autopilot altitude and write AUTOPILOT ALTITUDE SLOT INDEX value 2, the plane will not start descending. But if you press the cockpit switch that write the value 2 for AUTOPILOT ALTITUDE SLOT INDEX, the plane begins to descend. The button in the cockpit has to execute some other event. 0x029D 1 Byte APU SWITCH - works value 0,1 I have no idea, now I'm trying to start the autopilot via VB Dominik.
  13. 0290 - works well, result 1 or 2 0294 - works but you need / 65536 to get a result 1 or 2 0298 - works after pressing the button APU Start - result 1, APU off - result 0 It would be great if you could write these offsets, not only read. How would you find the SPEED_SLOT_INDEX_SET offset, it would be great x2 Dominik.
  14. These are the autopilot values, not the autopilot mode - managed or selected
  15. This event corresponds to whether the speed autopilot on the A320Neo is in managed or selected mode. I cannot find the offsets responsible for heading, altitude (in the managed or selected mode) Dominik.
  16. Hello, using Visual Basic 6 I can write events into MFS2020, e.g. this is what fsuipc does 442906 *** EVENT: Cntrl= 68066 (0x000109e2), Param= 1 (0x00000001) SPEED_SLOT_INDEX_SET and that's what Visual Basic does Dim fff As Long fff = 1 Call FSUIPC_Write(&H3114, 4, VarPtr(fff), dwResult) Call FSUIPC_Write(&H3110, 4, VarPtr(68066), dwResult) no offset (unless i'm wrong) SPEED_SLOT_INDEX_SET, is there any way to read the parameter of this event (SPEED_SLOT_INDEX_SET) using VB6? I want to know what mode is set to speed, managed or selected.
  17. Hi, I checked and also the offset the second is read correctly and is frozen. Dominik.
  18. Hello, I use FSX PMDG 737, I have a program that reads offsets from PMDG. Everything works well during FREE FLIGHT. When connecting to a multiplayer session, offsets are not read. Some are "frozen" eg the time is read once and the second one does not change. Is there a problem with FSUIPC during a multiplayer session? Regards, Dominik ********* FSUIPC4, Version 4.974 (24th February 2018) by Pete Dowson ********* Windows 7 Ultimate 64 Bit with SP 1.0 reported as Build 7601 (OS 6.1) fsx.exe version = 10.0.61472.0 Reading options from "C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\FSUIPC4.ini" Running inside FSX on Windows 7 Module base=646A0000 User Name= User Addr= FSUIPC4 Key is provided WIDEFS7 not user registered, or expired 0 System time = 08/07/2018 13:44:28 0 FLT path = "C:\Users\KuczeKiler\Documents\Flight Simulator X Files\" 0 ------ Module Version Check ------ 0 acontain.dll: 10.0.61472.0 0 api.dll: 10.0.61472.0 0 controls.dll: 10.0.61472.0 0 fs-traffic.dll: 10.0.61472.0 0 G3D.dll: 10.0.61472.0 0 language.dll: 10.0.61472.0 0 sim1.dll: 10.0.61472.0 0 visualfx.dll: 10.0.61472.0 0 weather.dll: 10.0.61472.0 0 window.dll: 10.0.61472.0 0 ---------------------------------- 16 Trying to connect to SimConnect Acc/SP2 Oct07 ... 63 FS path = "C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\" 172 ---------------------- Joystick Device Scan ----------------------- 187 Product= 203 Vendor=043F, Product=0202 (Version 1.3) 203 GUIDs returned for product: VID_043F&PID_0202: 203 GUID= {2F2A9C30-6BE3-11E8-8001-444553540000} 203 Details: Btns=112, POVs=(0, 0, 0, 0), Cal=x00000000, Max=R511,U511,V511,X511,Y511,Z511 203 Product= T-Rudder 203 Manufacturer= Thrustmaster 203 Vendor=044F, Product=B679 (Version 1.16) 203 GUIDs returned for product: VID_044F&PID_B679: 203 GUID= {B1B090D0-503B-11E6-8001-444553540000} 203 Details: Btns=0, POVs=(0, 0, 0, 0), Cal=x00000000, Max=R0,U0,V0,X1023,Y1023,Z1023 219 Product= CH FLIGHT SIM YOKE USB 219 Manufacturer= CH PRODUCTS 219 Vendor=068E, Product=00FF (Version 0.0) 219 GUIDs returned for product: VID_068E&PID_00FF: 219 GUID= {B4F3A3F0-60A3-11E5-8001-444553540000} 219 Details: Btns=12, POVs=(0, 0, 0, 0), Cal=x00000000, Max=R255,U255,V0,X255,Y216,Z255 219 Product= 219 Vendor=3100, Product=0002 (Version 1.3) 219 GUIDs returned for product: VID_3100&PID_0002: 219 GUID= {96F100D0-EB4F-11E7-8001-444553540000} 219 Details: Btns=112, POVs=(0, 0, 0, 0), Cal=x00000000, Max=R511,U511,V511,X511,Y511,Z511 219 Product= 219 Vendor=7FEC, Product=2567 (Version 1.3) 219 GUIDs returned for product: VID_7FEC&PID_2567: 219 GUID= {5CC32DA0-66BC-11E8-8001-444553540000} 219 Details: Btns=112, POVs=(0, 0, 0, 0), Cal=x00000000, Max=R435,U402,V495,X0,Y0,Z495 219 ------------------------------------------------------------------- 234 Device acquired for use: 234 Joystick ID = 4 (Registry okay) 234 4=MJOY NOWY 234 4.GUID={2F2A9C30-6BE3-11E8-8001-444553540000} 234 Device acquired for use: 234 Joystick ID = 2 (Registry okay) 234 2=T-Rudder 234 2.GUID={B1B090D0-503B-11E6-8001-444553540000} 234 Device acquired for use: 234 Joystick ID = 0 (Registry okay) 234 0=CH FLIGHT SIM YOKE USB 234 0.GUID={B4F3A3F0-60A3-11E5-8001-444553540000} 234 Device acquired for use: 234 Joystick ID = 1 (Registry okay) 234 1=MJOY2 234 1.GUID={96F100D0-EB4F-11E7-8001-444553540000} 234 Device acquired for use: 234 Joystick ID = 3 (Registry okay) 234 3=MJOY1 234 3.GUID={5CC32DA0-66BC-11E8-8001-444553540000} 234 ------------------------------------------------------------------- 499 LogOptions=00000000 00000001 499 ------------------------------------------------------------------- 499 ------ Setting the hooks and direct calls into the simulator ------ 499 --- CONTROLS timer memory location obtained ok 499 --- SIM1 Frictions access gained 499 --- FS Controls Table located ok 499 --- Installed Mouse Macro hooks ok. 499 --- Wind smoothing fix is fully installed 499 --- G3D.DLL fix attempt installed ok 499 --- SimConnect intercept for texts and menus option is off 499 --- All links checked okay 499 ------------------------------------------------------------------- 499 SimConnect_Open succeeded: waiting to check version okay 499 Trying to use SimConnect Acc/SP2 Oct07 499 Opened separate AI Traffic client okay 1872 Running in "Microsoft Flight Simulator X", Version: 10.0.61472.0 (SimConnect: 10.0.61259.0) 1872 Initialising SimConnect data requests now 1872 FSUIPC Menu entry added 1872 C:\Users\KuczeKiler\Documents\Flight Simulator X Files\1.FLT 1872 C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\SimObjects\Airplanes\B737_800\Boeing737-800.AIR 49094 Weather Mode now = Real World 68329 C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\SimObjects\Airplanes\PMDG 737-800NGX WL\B737-800WL.AIR 76253 User Aircraft ID 1114113 supplied, now being used 76253 Aircraft loaded: running normally now ... 76519 System time = 08/07/2018 13:45:45, Simulator time = 08:05:14 (12:05Z) 76784 Aircraft="PMDG 737-800NGX LOT Polish Airlines (SP-LWA)"
  19. Of course, LUASET - everything works correctly. Thank you again for help. Regards, Dominik
  20. Hello, Thank you for your reply and help. The script works almost well, the data changes at a good speed, the sleep function works, FPS do not fall, but after releasing the button, the data changes. The loop works all the time. I changed the code to: while 1 do ipc.control (70481,2147483647) ipc.sleep (400) end and in fsuipc I set the LuaKill to work after releasing the button. Now it works very well. Why does the loop still work on your code when you release the button? Regards, Dominik.
  21. I use push buttons to switch radio frequency and autopilot settings (altitude, HDG IAS, etc.) Without sleep function, this data changes too quickly and it is difficult to hit the right value. Slowing down in LUA with the Sleep function it worked great. Yes, I checked the processor load, the CPU load did not increase. I understand that FSUIPC is working properly and that LUA script FPS will be smaller due to looping Regards. Dominik
  22. Hello, in fsuipc I have assigned LUA script buttons. The buttons have the "Control to repeat while held" option selected. When using these buttons, the FPS drops from 30 to ~ 7 !!! which is very tedious. This happened after installing the latest version of FSUIPC 4.974. On version 4.858 LUA worked correctly. I use FSX and B737 PMDG I am asking for help because it is impossible to fly :( Sample LUA file: ipc.control (70481,2147483647) ipc.sleep (400) Regards, Dominik
  23. Paul, you are great!!! I`ve just tested and it works great!!! Earlier in Visual Basic I used the function of a key (sendkey) and in FSUIPC I assigned the PMDG event to the key. Thank you again and best regards, Dominik
  24. Hello, I know how to read and load offsets using Visual Basic. I wonder if it is possible to send PMDG events using Visual Basic? I am using Visual Basic 6.0 I will be grateful for your help. Regards, Dominik
×
×
  • 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.