Skip to content

Mod doesn't work under Linux through Proton, Steam. #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MissingCiro opened this issue Mar 17, 2024 · 4 comments
Open

Mod doesn't work under Linux through Proton, Steam. #98

MissingCiro opened this issue Mar 17, 2024 · 4 comments

Comments

@MissingCiro
Copy link

I'm playing NFSMW on Steam through Proton. The game runs fine, but any mod I try to install doesn't work. I have installed the dinput8.dll in the main folder of the game, the "scripts" folder, reinstalled the game and everything I could, but nothing worked.

Maybe it's something about Proton not using the dinput8.dll? I have no idea how to override it in Steam Game Properties.

I tried playing the game with regular Wine, but it runs with no sound.

@MissingCiro
Copy link
Author

UPDATE:

I managed to make Widescreen Fix and ExOpts load. However, ExOpts hotkeys do not work, not even if re-binding them to other keys.

In case anyone is wondering, the command used in Steam's Launch Options was:
PROTON_NO_ESYNC=1 PROTON_USE_WINED3D=1 WINEDLLOVERRIDES="dinput8.dll=n,b" %command%

@val-int1
Copy link

val-int1 commented Apr 25, 2025

I can confirm the non-working hotkey issue (it also happens with other mods including CustomHUD). After looking at it it seems the GetAsyncKeyState function doesn't work quite as expected under Wine (I couldn't get GetKeyState to work either). A bit annoying, but not the first keyboard-related Wine weirdness, and also not the mod's fault.

Edit: I finally decided to give it an actual try and recompiled the mod with all calls to GetAsyncKeyState changed to GetKeyState and it half works (but it keeps triggering for as long as it's pressed). I might fix it up a little bit and, if and only if I get permission from the ExOptsTeam, make a "protonfix" fork of the mod. The only downside is it'll only fix this mod and not the other affected mods.

@unalkalkan
Copy link

Hey everyone, I recently came across the same problem. Thanks for the heads up on how to fix it @val-int1. I've changed the code on a fork and used the GetKeyState instead of GetAsyncKeyState while handling the long presses. Seemed to fix the problems I was having.

For future people that needs a quick fix, here's the fork:
https://github.com/unalkalkan/NFSMWExOpts/tree/input

I've also compiled it and created a release if you don't know/don't like to build it yourself, but it's pretty easy.
https://github.com/unalkalkan/NFSMWExOpts/releases

@fffuya4
Copy link

fffuya4 commented May 22, 2025

@unalkalkan can you make a fork of carbon version too? it's really needed because of togglepyhsics hotkey 😔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants