Nat-Lab / chunithm-touch

Touchscreen and Leap Motion support for Chunithm.
The Unlicense
38 stars 1 forks source link

Built myself with Leap Gemini SDK and LeapC.dll but cannot start the game #9

Open tonyxtian-github opened 2 years ago

tonyxtian-github commented 2 years ago

I wanted to add support with the newest Leap Gemini SDK so I tried to build it myself. I downloaded the Leap Gemini from the Ultra Leap Website, copied the LeapSDK folder to 3rdparty, and built the LeapConfig.exe, ctw.dll, and chuniio.dll. I also replaced the old LeapC.dll from the Orion SDK with the newer LeapC.dll from the Gemini SDK. I am able to run the LeapConfig.exe and it works perfectly detecting my hands. However, I cannot run start.bat to get into the game. After the two UAC prompts of the inject.exe the game just terminates itself automatically. It seems that the self-termination always happens as a result of replacing either one of the chuniio.dll, ctw.dll, or LeapC.dll. Does anyone have any idea of how to get into the game with the newly built DLLs?

tonyxtian-github commented 2 years ago

I also found a new inject.exe from the meson subproject folder, replacing that with the original one from segatools doesn't help either.

tonyxtian-github commented 2 years ago

The problem seems connected with the ctw.dll as the Chuni-touch window fails to pop up along with the game window.

tonyxtian-github commented 2 years ago

Just by comparing the responsiveness from the leapconfig.exe on Gemini and Orion it can be easily seen that Gemini has a more superior response time and better accuracy for detecting hands at shorter distance. I'd be grateful if I can play the game with the new Gemini SDK :)

tonyxtian-github commented 2 years ago

Update: I built the dlls again with the original Orion SDK and the same problem occurred. Now that the problem seems connected with the building process that I am using. Note that I am indeed able to corporate the leapconfig.exe with the new LeapC.dll to work with Gemini SDK. I am new to C programming here so I would truly appreciate any help you could kindly offer. I built with Meson 0.62.1 and MinGW-W64-builds-4.3.5.