falano
Members-
Posts
14 -
Joined
-
Last visited
Profile Information
-
Gender
Not Telling
-
Location
Madrid
falano's Achievements
-
Here is a VS project for the UIPCHello - try building and running from this: https://fsuipc.com/download/UIPCHello.zip This is the result: 1º.- The object or library file "FSUIPCuser64.lib" was created with a different compiler version than other objects, such as "UIPCHello\x64\Release\UIPCHello.obj". You must recompile all objects and libraries with the same compiler. 2º.- Then when I use uipc64_SDK_c_Version2 to generate an updated FSUIPCuser64.lib, it compiles and links fine, but when I run FSUIPC_Open it gives an error (2) I am asking if you have tried the lua com library (the HidDemo.lua program) to see if that can recognise your buttons/switches/axes. If it can, then you can use that to assign directly in FSUIPC - no need to write your own program to interface to the hardware, You mean this: hid-events.lua in GitHub by okyeron?
-
So you cannot build the UIPCHello sample in VS2022? What errors do you get? I apologize for my confusion. It compiles and links OK, but when running it gives error 2. Error 2 is what I was refering to. but have you tried the lua com library as I have already advised? Yes, I am working on it. My program reads inputs from the hardware and sends keystrokes and key combinations to FSUIPC. These key events trigger LUA scripts (event.key ) that manage the LVARS. It works. Thank you very much for your time and help Jordi
-
Hi John, I tried the library attached, but it did'nt work. Until the review is available, maybe an alternative would be to use an intermediate software that allows FSUIPC to recognize the HID. I have read that "vJoy" is used with "Arduino" to make it act as an HID. I have no experience with this software. Do you know of any software that would allow FSUIPC to recognize the hardware as HID? Thank you very much for your time and help.
-
Thank you John, I am using Visual Studio 2022. The reason I am rebuilding the library is because I got the error: Severity Code Description Project Path File Line Suppression State Details Error C1047 The object or library file 'D:\Proyecto_F-18\HID\F18_Simulador\UIPChello_console\lib\FSUIPC_User64.lib' was created by a different version of the compiler than other objects like 'UIPChell.85ac8f11\x64\Release\UIPChello_console.obj'; rebuild all objects and libraries with the same compiler UIPChello_console D:\Proyecto_F-18\HID\F18_Simulador\UIPChello_console D:\Proyecto_F-18\HID\F18_Simulador\UIPChello_console\LINK 1 Take your time, I'll wait for your final assesment. Regarding my previous inquiry "Detection of keys by FSUIPC6." FSUIPC6 detects any key sent by my program. I have a problem because it adds "alt," to the key, but it is in the process of being resolved. My mistake was sending the keys to the window "FS98MAIN" (window class) instead of sending them to "Lockheed Martin R Prepar3D R v6 Personal." Thank you for your help. Jordi
-
Hello John, I have created the Windows and console versions of "UIPChello64," both compiled and linked correctly, but neither managed to open FSUIPC6. Both reported error 2. The error must be in the library I generated. Could you please confirm that the correct source files for Prepar3D v 6.0.34.31011 and FSUIPC6.2.2 are: Directory: UIPC64_SDK_C_version2 Files: IPCuser64.c, IPCuser64.h, FSUIPC_User64.h. Thank you very much.
-
I am using a console program while UIPCHello is a win32 program. Could be the reason? My program: #include <iostream> #include <windows.h> #include "FSUIPC_User64.h" #include "FSUIPCuser64.h" #include <iomanip> using namespace std; int main() { DWORD dwResult; if (FSUIPC_Open(SIM_ANY, &dwResult)) { std::cout << "Connected to FSUIPC" << std::endl; double newLvarValue = 1.0; // The value you want to set // Step 1: Write the new LVAR value to user offset 0x66C0 if (!FSUIPC_Write(0x66C0, sizeof(newLvarValue), &newLvarValue, &dwResult)) { std::cout << "Failed to write new LVAR value to offset 0x66C0" << std::endl; } // Step 2: Write the offset address (0x66C0) and format specifier (0 for double) to 0x0D6C DWORD param = 0x66C00000; // 0x66C0 offset + format specifier (0 = double) if (!FSUIPC_Write(0x0D6C, sizeof(param), ¶m, &dwResult)) { std::cout << "Failed to write parameter to offset 0x0D6C" << std::endl; } // Step 3: Write the LVAR command "::ASD_SWITCH_EXT_POWER" to 0x0D70 const char lvarCommand[] = "::ASD_SWITCH_EXT_POWER"; if (!FSUIPC_Write(0x0D70, sizeof(lvarCommand), (void*)lvarCommand, &dwResult)) { std::cout << "Failed to write LVAR command to offset 0x0D70" << std::endl; } // Step 4: Process the writes if (!FSUIPC_Process(&dwResult)) { std::cout << "FSUIPC process failed" << std::endl; } else { std::cout << "LVAR write command sent successfully" << std::endl; } // Step 5: Read back the value from 0x66C0 to confirm the change double readBackValue = 0.0; if (FSUIPC_Read(0x66C0, sizeof(readBackValue), &readBackValue, &dwResult)) { FSUIPC_Process(&dwResult); std::cout << "LVAR ASD_SWITCH_EXT_POWER updated to: " << readBackValue << std::endl; } else { std::cout << "Failed to read back LVAR value" << std::endl; } FSUIPC_Close(); } else { std::cout << "Failed to connect to FSUIPC" << std::endl; } }
-
Yes John it works: Sim is P3D64, FSUIPC version 6.202 Request for time ok: FS clock = 12:13:24 (time selected on P3D)
-
Hello again John, Please note: Providing more information about my question: My program cannot find the FSUIPC window and this is the report: Trying to connect to FSUIPC...? Could not open FSUIPC. Error: 2FSUIPC_ERR_NOFS (FSUIPC not found) Has the window used by FSUIPC6 changed compared to previous versions? My version of FSUIPC is 6.2.2 and P3D is 6.0.34.31011. I have compiled the library with the files UIPC64_SDK_C_version2: IPCuser64.c/IPCuser64.h/FSUIPC_User64.h. Thanks in advance.
-
Thank you for your help. I will focus on P3D. I am using P3D v6 and I have recompiled your IPCuser64.c/h for VS2022 (UIPC64_SDK_C_version2). The function FSUIPC_Open keeps giving me error 2. Is there some incompatibility? Or is it an error on my part? Thank you very much.
-
My former question: Sending keystrokes works with text editors, but not with Prepar3D your answer: Sorry, but what do you mean? How are you sending the leystrokes? I meant that when my program detected a change in the simulator's hardware (switch or button), it would send the code and the scan code of a key. The keys sent this way are recognized by text editors like Notepad or Word, but FSUIPC does not recognize them. Prepar3D also does not recognize the keys that are assigned when they are sent by a program (sendinput). Regarding using other software like MobiFlight or SIOC, I think it is simpler and more direct to use FSUIPC because it is the standard. I will try to look in 'Lua' libraries; I have seen a function called event.key in forums, and I will try it. Do you know any way in which I could somehow emulate a key press that FSUIPC would recognize? Thank you very much.
-
Hi, Sending keystrokes works with text editors, but not with Prepar3D, or I don't know how to do it. I will use FSUIPC6 for the rest of the project. I am using Prepar3D v6.034 and FSUIPC 6.2.2. Is the ModuleUser64 SDK compatible with FSUIPC6? Thanks in advance.
-
Thank you very much for your advices and time. I Let you know the out come. Jordi
-
Thanks, John, for your response. FSUIPC6 doesn't detect the HID. Therefore, it's nothing shown in FSUIPC6.INI. It's a non-commercial HID, however, with the Hidapi library, I can read its 64-byte output buffer and identify the Sim's hardware activity, but I don't know how to send messages to Prepar3D corresponding to the hardware signals. The VRS F18 Super Hornet documentation, defines many keys for the weapon, and I can manage them by sending the keys to the Prepar3D window, but there are many switches not mapped to keys. I've attached a diagram to better understand my problem. Could I get FSUIPC6 to recognize the HID? I know its VIP and PID. If FSUIPC recognized it, I could create macros with the mouse. I think this would solve my problem. I have never worked with the Lua library or script. If you think it's best best way, could you recommend some documentation? Thank you very much for your time. Esquema del Proyecto.xlsx
-
falano started following FSUIPC Support Pete Dowson Modules
-
falano started following HID register on FSUIPC
-
Hello everyone. I'm new to this forum. I need to repair an F18 Super Hornet VRS simulator. The HOTAS for the throttles, joy stick, and pedals are commercially available and are controlled by FSUIPC. However, the rest of the hardware is controlled by a non-commercial HID, and FSUIPC v6 either doesn't detect it or I don't know how to get it to detect it. I've programmed some switches with events and SimConnect, but the F18 VRS is very limited, and I have no experience programming using FSUIPC. In the event that FSUIPC isn't able to detect the HID, could you recommend some documentation for doing so using the FSUIPC SDK? Thank you very much.