https://bugs.winehq.org/show_bug.cgi?id=56596
Bug ID: 56596 Summary: Keyboard keypress generates NumLock keypress for all keys Product: Wine Version: 9.7 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: xinput Assignee: wine-bugs@winehq.org Reporter: m.kolesinski@gmail.com Distribution: ---
When playing an old Quake III engine based game (Medal of Honor: Allied Assault) on Wine 9.4 thru 9.7, the game is no longer playable. All keyboard keypress events also send a duplicate 'NumLock' keypress. I previously had NumLock mapped (in-game) to perform some action, and remapping keys is now not possible because every attempt binds to NumLock.
I believe the actual keypress AND NumLock keypress events are sent continuously while any keyboard key is held down (I tried various keys, they all do it).
This was not an issue in Wine 9.2 and prior, and possibly 9.3 (I don't have that package to test with, but I've tested with 9.4, 9.5, 9.6, and 9.7 on Arch Linux).
There are no DLL overrides, it's a "stock" 64-bit prefix.
https://bugs.winehq.org/show_bug.cgi?id=56596
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal Distribution|--- |ArchLinux Component|xinput |-unknown
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID CC| |o.dierick@piezo-forte.be
--- Comment #1 from Ken Sharp imwellcushtymelike@gmail.com --- A regression test is needed to help find the cause of the issue. https://wiki.winehq.org/Regression_Testing
Are there any downloadable demos that exhibit this behaviour?
--- Comment #2 from m.kolesinski@gmail.com --- You can obtain a complete game here: https://dl.volute.io/downloads/mohaa_stock_game.zip
Just unzip, and then run the .exe to launch.
Note that if you are using Mesa, you will need the following (games from this era had a common bug where the extensions string buffer was too small....they didn't anticipate the explosion in graphics extensions):
export MESA_EXTENSION_MAX_YEAR=2002
I can't get this game to run on my RTX 3070 (with Wine), I submitted a separate bug for that. It should also run fine on Intel graphics.
You also must launch the game from its working directory, as it has DLLs it depends on in there. I usually use a virtual desktop as well, but the game runs with or without it:
bash -c 'cd ~/.wine_MOHAA/drive_c/Program\ Files\ (x86)/EA\ GAMES/MOHAA; export MESA_EXTENSION_MAX_YEAR=2002 WINEPREFIX=~/.wine_MOHAA; wine mohaa.exe +set cl_playintro 0 +set ui_skip_eamovie 1 +set ui_skip_titlescreen 1 +set ui_skip_legalscreen 1'
This should get you to the main menu in the game, where you can poke around with the "CONTROLS" settings.
--- Comment #3 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
Medal of Honor Allied Assault is copyright protected.
Please remove offending download.
Regards.
https://bugs.winehq.org/show_bug.cgi?id=56596
--- Comment #4 from m.kolesinski@gmail.com --- I don't know about any license issues from the various gaming sites that still support this game. I don't see any option to edit my comment to delete/amend a link, so I guess an admin will need to address that.
I did find a download for a public demo version, and confirmed the issue affects the demo as well (tested with 9.7).
https://games.softpedia.com/get/Games-Demo/Medal-of-Honor-Allied-Assault-Sin...
https://bugs.winehq.org/show_bug.cgi?id=56596
--- Comment #5 from m.kolesinski@gmail.com --- (In reply to Ken Sharp from comment #1)
A regression test is needed to help find the cause of the issue. https://wiki.winehq.org/Regression_Testing
Are there any downloadable demos that exhibit this behaviour?
See the comment preceding this one for a link. Note that you have to run the installer, and then launch the "MOHAADemo.exe" in the same manner (from the installed working directory). I was up and running in less than 2 minutes.
https://bugs.winehq.org/show_bug.cgi?id=56596
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |--- URL| |https://games.softpedia.com | |/get/Games-Demo/Medal-of-Ho | |nor-Allied-Assault-Single-P | |layer.shtml Status|RESOLVED |UNCONFIRMED Keywords| |download
--- Comment #6 from Ken Sharp imwellcushtymelike@gmail.com --- Valid demo link provided.
https://bugs.winehq.org/show_bug.cgi?id=56596
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardu@mailbox.org
--- Comment #7 from Bernhard Übelacker bernhardu@mailbox.org --- Created attachment 76458 --> https://bugs.winehq.org/attachment.cgi?id=76458 bisect.txt
I tried to run a regression test and came to this commit: commit 5b833c83beadcad2ace5f27e95554c164f6f7c86 Author: Rémi Bernon rbernon@codeweavers.com Date: Sat Jan 20 16:05:17 2024 +0100
server: Stop waiting on LL-hooks for non-injected input.
This commit can be reverted on wine-9.8 and makes the key assignment work again.
https://bugs.winehq.org/show_bug.cgi?id=56596
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Regression SHA1| |5b833c83beadcad2ace5f27e955 | |54c164f6f7c86
https://bugs.winehq.org/show_bug.cgi?id=56596
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rbernon@codeweavers.com
https://bugs.winehq.org/show_bug.cgi?id=56596
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |wineserver
https://bugs.winehq.org/show_bug.cgi?id=56596
m.kolesinski@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #8 from m.kolesinski@gmail.com --- I have retested with Wine 9.16 from the arch repo and this issue appears to be gone. None of the bug fixes between these versions indicates anything specific was done to address it...but no nuisance numlock events.
https://bugs.winehq.org/show_bug.cgi?id=56596
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.18.