Sirius902 / LuaBackend

A standalone script interpreter for PC games. Compatible with LuaEngine.
GNU General Public License v3.0
40 stars 5 forks source link

.dll file borks controller input #2

Closed thenerdy0ne closed 2 years ago

thenerdy0ne commented 2 years ago

Morning, I've been struggling with identifying the reason for my controller no longer working over steam link and finally figured out that the issue resolves if i rename the .dll so it's not usable. Not sure if this is known, or intended behavior but if possible it'd be lovely to have steam input support back for this game. Please let me know if you need anymore information.

PoochieMix commented 2 years ago

Having the same issue. Happens with or without any scripts installed. Still recognizes 360 controllers if using DS4Windows and launching EGS directly.

FeshPince commented 2 years ago

Yep, this is the issue I was going to come here and post before seeing this. I'm the user who DM'd you on discord, Sirius, who you told to make an issue if all else fails. This is the exact issue I'm experiencing. LuaBackend launches and works great with all working scripts, but my PS5 controller, used through Steam, is completely ignored by the game if the .dll is in my directory for KHHD.

Sirius902 commented 2 years ago

Hello all, I suspect steam input does something dubious with the DINPUT8.dll to get input to work and is instead interacting with the backend's dll causing it to fail. I did try to instead replace DBGHELP.dll as an experiment and you can find it here. Please try it out and let me know if it works and I'll merge it into the main branch. You will need to remove the DINPUT8.dll you have in the game folder and instead place this DBGHELP.dll in there instead.

FeshPince commented 2 years ago

Hello all, I suspect steam input does something dubious with the DINPUT8.dll to get input to work and is instead interacting with the backend's dll causing it to fail. I did try to instead replace DBGHELP.dll as an experiment and you can find it here. Please try it out and let me know if it works and I'll merge it into the main branch. You will need to remove the DINPUT8.dll you have in the game folder and instead place this DBGHELP.dll in there instead.

This file seems to have completely fixed the issue on my end. I hope the same is true for anyone else experiencing this!

thenerdy0ne commented 2 years ago

Confirming as well that the fix works for me as well. I'm officially naming my first child Sirius902.

Sirius902 commented 2 years ago

Closed via 56930e89eb98399c446b9b67fc470d10c7be2c2e.