http://bugs.winehq.org/show_bug.cgi?id=21159
Summary: "Rayman 2": Does not recognize user input Product: Wine Version: 1.1.35 Platform: All OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-dinput AssignedTo: wine-bugs@winehq.org ReportedBy: m_105@gmx.de
"Rayman 2 - The Great Escape" seems promising so far (installation and launching work), but you can't get past the first menu screen because the game won't react to any user input (keyboard, mouse or joypad). Switching to a native dinput.dll hasn't worked out for me (I really tried, many different versions in different places), but apparently it has for some users (see gold ratings). I'd be happy to provide logs if asked. There's nothing unusual in it so far, even if run with WINEDEBUG=+dinput.
http://bugs.winehq.org/show_bug.cgi?id=21159
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|directx-dinput |-unknown Platform|All |Other
http://bugs.winehq.org/show_bug.cgi?id=21159
--- Comment #1 from Vitaliy Margolen vitaliy@kievinfo.com 2009-12-26 12:06:17 --- Attach complete terminal output.
http://bugs.winehq.org/show_bug.cgi?id=21159
--- Comment #2 from Ian Schwarz m_105@gmx.de 2009-12-26 15:35:03 --- Created an attachment (id=25404) --> (http://bugs.winehq.org/attachment.cgi?id=25404) Regular console output
Regular console output. +all and +relay slow it down so badly the game doesn't even start.
http://bugs.winehq.org/show_bug.cgi?id=21159
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2009-12-28 21:36:38 --- Does it work with older Wine version(s)?
http://bugs.winehq.org/show_bug.cgi?id=21159
--- Comment #4 from Ian Schwarz m_105@gmx.de 2009-12-29 08:09:07 --- I've tried several other versions (the ones that supposedly worked for some users, i.e. 1.1.15 etc.) and 1.1.26 as well as the latest one, but none worked out. 0.9.56 didn't start at all.
http://bugs.winehq.org/show_bug.cgi?id=21159
Jörg Höhle hoehle@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hoehle@users.sourceforge.ne | |t
--- Comment #5 from Jörg Höhle hoehle@users.sourceforge.net 2010-10-24 05:25:39 CDT --- I never saw Rayman2 react to the keyboard with the built-in dinput.dll Using a native dinput.dll works for me on MacOS with wine-1.3.3. Ian, did you configure the WINEDLLOVERRIDE properly? Overwrite the fake 2KB dinput.dll with the native >130KB one in windows/system32/ and configure an override for Rayman2.exe using winecfg or the registry: [HKEY_CURRENT_USER\Software\Wine\AppDefaults\Rayman2.exe\DllOverrides] "dinput"="native" or start using WINEDLLOVERRIDES=dinput=n wine Rayman2.exe (Copying native dinput.dll into Rayman's directory may work too).
http://bugs.winehq.org/show_bug.cgi?id=21159
Stephen loony636@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |loony636@gmail.com
--- Comment #6 from Stephen loony636@gmail.com 2010-11-09 00:00:44 CST --- I know it has been many months after the last response, but I too ran into this bug. After going through the various positive test results, I realised that the native override would only work once Wine was configured to run in Windows 98 mode. Running in Windows XP mode would result in the keyboard not working.
http://bugs.winehq.org/show_bug.cgi?id=21159
--- Comment #7 from Jörg Höhle hoehle@users.sourceforge.net 2010-11-11 11:46:03 CST --- I'm using a dinput.dll from w2k and it works fine with Wine's default (XP) setting. No need to switch to w98 mode.
The topic about how the dozen versions (from w95 to w7) of a dll behave differently has hardly been covered in the context of Wine, AppDB or mailing lists. It's likely hairy -- ready to enter "dll hell"?
I can confirm Ian's default console log. It's basically unchanged in 1.3.6 and gives no hint as to why built-in dinput doesn't work.
http://bugs.winehq.org/show_bug.cgi?id=21159
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #8 from GyB gyebro69@gmail.com 2011-02-07 09:36:25 CST --- There is a demo for the game, showing the same problem with Wine-1.3.13.
ftp://ftp.ubisoft.com/Rayman2/rayman2high.zip
http://bugs.winehq.org/show_bug.cgi?id=21159
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |ftp://ftp.ubisoft.com/Rayma | |n2/rayman2high.zip
http://bugs.winehq.org/show_bug.cgi?id=21159
--- Comment #9 from Joel joel@lolnet.org 2011-03-25 18:07:11 CDT --- Created an attachment (id=33810) --> (http://bugs.winehq.org/attachment.cgi?id=33810) wine log
I tried pushing direction keys randomly but no reaction on screen
http://bugs.winehq.org/show_bug.cgi?id=21159
Joel joel@lolnet.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |joel@lolnet.org
--- Comment #10 from Joel joel@lolnet.org 2011-03-25 18:11:05 CDT --- I installed dinput8 with winetricks and it seems I get some reaction but nothings changes on screen when I press keys
wine version is 1.3.13 and changing windows version doesn't help
http://bugs.winehq.org/show_bug.cgi?id=21159
sacrediou sacrediou@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sacrediou@yahoo.fr
http://bugs.winehq.org/show_bug.cgi?id=21159
Jörg Höhle hoehle@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |directx-dinput
http://bugs.winehq.org/show_bug.cgi?id=21159
arthur.huillet@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |arthur.huillet@free.fr
http://bugs.winehq.org/show_bug.cgi?id=21159
Lucas Fialho Zawacki lfzawacki@yahoo.com.br changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lfzawacki@yahoo.com.br
--- Comment #11 from Lucas Fialho Zawacki lfzawacki@yahoo.com.br 2012-08-17 13:59:15 CDT --- Ok I think I figured this bug out. The game is looking for the keyboard layout type in a call for IDirectInput_GetCapabilities (the member dwDevType from DIDEVCAPS struct) and doesnt like what Wine puts there. Wine classifies it as DI8DEVTYPEKEYBOARD_UNKNOWN (the value is 0) and the game refuses to recognize further input after this call.
I've made several tests and it seems any value, but 0, makes input work past from this point. The documentation for MSDN suggests various values that could go into this field (see dwDevType remarks here http://msdn.microsoft.com/en-us/library/windows/desktop/microsoft.directx_sd...) and I imagine native dinput decides one of those values based on the info it has about the keyboard.
So I see some options for fixing this. The most corret would be to interpret the values from calls like GetKeyboardLayout and assign a valid dwDevType, but I don't see how Wine could do this realiably and that's probably why it just reports UNKNOWN now.
A more pragmatic approach would be to just stick to one single value as being "the one" keyboard type reported by Wine's dinput. I've tested several Windows machines, (one XP box, one 7 box and all the VMs in Wine testbot) and they all reported the value DI8DEVTYPEKEYBOARD_PCENH - my machines were using a pt_BR locale, by the way. When native dinput.dll is used under Wine it reports DI8DEVTYPEKEYBOARD_PCXT, probably based in something it infers from the keyboard the X11 exposes.
I like the pragmatic option best and I'd suggest we stick with reporting DI8DEVTYPEKEYBOARD_PCENH. We could argue if this would cause regressions, because now apps that use GetCapabilities would "assume" that this is the correct layout, but I doubt it would be a serious problem. Again this is a very common value according to my tests.
In another note, I discovered bug #28232 is a duplicate of this. The same modification fixes it too, and they're both Ubisoft games from the same year hmmm :)
http://bugs.winehq.org/show_bug.cgi?id=21159
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #12 from Bruno Jesus 00cpxxx@gmail.com 2012-08-17 16:38:53 CDT --- (In reply to comment #11)
... In another note, I discovered bug #28232 is a duplicate of this. The same modification fixes it too, and they're both Ubisoft games from the same year hmmm :)
That bug has a regression id, does reverting that commit fixes this bug too?
http://bugs.winehq.org/show_bug.cgi?id=21159
--- Comment #13 from Lucas Fialho Zawacki lfzawacki@yahoo.com.br 2012-08-18 15:37:22 CDT --- Created attachment 41408 --> http://bugs.winehq.org/attachment.cgi?id=41408 Return a valid value in DIDEVCAPS dwDevType
http://bugs.winehq.org/show_bug.cgi?id=21159
--- Comment #14 from Lucas Fialho Zawacki lfzawacki@yahoo.com.br 2012-08-18 15:44:53 CDT --- (In reply to comment #12)
That bug has a regression id, does reverting that commit fixes this bug too?
No, in my experience it doesnt help for this and neither for the original bug. As the original poster in that bug says, the commit is not even related with dinput...
Anyway here's the patch, I'll work on some test cases to try and get it commited.
http://bugs.winehq.org/show_bug.cgi?id=21159
--- Comment #15 from Bruno Jesus 00cpxxx@gmail.com 2012-08-20 19:45:11 CDT --- Patch commited. I tried to test but could not install the demo. http://source.winehq.org/git/wine.git/commitdiff/ac9a10f81563419836a9c734c30...
http://bugs.winehq.org/show_bug.cgi?id=21159
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |ac9a10f81563419836a9c734c30 | |27d976067d9e2 Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #16 from Bruno Jesus 00cpxxx@gmail.com 2012-08-21 07:23:54 CDT --- Confirming fixed. Thanks Lucas.
http://bugs.winehq.org/show_bug.cgi?id=21159
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cvoeten@gmail.com
--- Comment #17 from Bruno Jesus 00cpxxx@gmail.com 2012-08-21 07:28:57 CDT --- *** Bug 28232 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=21159
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #18 from Alexandre Julliard julliard@winehq.org 2012-08-31 12:56:41 CDT --- Closing bugs fixed in 1.5.12.