John Dowson Posted Sunday at 09:54 AM Report Posted Sunday at 09:54 AM 8 hours ago, falano said: 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. Then we need to determine why - it should run ok. Are you running P3D as admin? If so, you would need to run any connecting problem as admin. Here is a VS project for the UIPCHello - try building and running from this: https://fsuipc.com/download/UIPCHello.zip 8 hours ago, falano said: 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. 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, John
falano Posted Tuesday at 02:03 AM Author Report Posted Tuesday at 02:03 AM 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?
John Dowson Posted Tuesday at 08:57 AM Report Posted Tuesday at 08:57 AM 6 hours ago, falano said: 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. I don't understand how this can be unless you are changing the either the Platform toolset (which is VS 2022 v143) or the Windows SDK Version (which is 10.0). It is a complete VS project and should compile as-is if you have the correct toolset installed. That message would seem to indicate that you are changing the toolset for the project, when compiling the UIPCHeelo.c file, which then makes it different than the one used to compile the lib, which is VS 2022 v143. 6 hours ago, falano said: 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? No. I mean that you should try to see if the lua com libary recognises your device. From my very first comment in this topic: Quote You should be able to use the lua com library to detect (and control/assign) your device. Start with using the HidDemo.lua and adapt that to see if it detects your device. FSUIPC will only recognise HID joystick type devices. If it is a HID device but not a joystick, you should be able to access via the lua com library. The HidDemo.lua script is an example of how to do this. John
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now