https://bugs.winehq.org/show_bug.cgi?id=40680
Bug ID: 40680 Summary: Rocket league needs bcrypt.dll.BCryptGenerateSymmetricKey Product: Wine Version: 1.9.10 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: bcrypt Assignee: wine-bugs@winehq.org Reporter: maxime@mmorel.eu Distribution: ---
Created attachment 54554 --> https://bugs.winehq.org/attachment.cgi?id=54554 bcrypt patch
Latest Steam update of Rocket League prevents it to run with wine. The game exits early with this message: wine: Call from 0x7b43cf4c to unimplemented function bcrypt.dll.BCryptGenerateSymmetricKey, aborting
This can be fixed by implementing the missing symbol and making it return 0. Seems to be enough for now.
https://bugs.winehq.org/show_bug.cgi?id=40680
Maxime maxime@mmorel.eu changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |ArchLinux
https://bugs.winehq.org/show_bug.cgi?id=40680
Robin robin.leruth@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |robin.leruth@gmail.com
--- Comment #1 from Robin robin.leruth@gmail.com --- Hello Maxime, and thank you for posting a solution to the problem !
But I'm kind of new with wine and playonlinux, how do I modify these 3 differents files? I'm playing RocketLeague with PoL and I found bcrypt.dll in ~/PlayOnLinux's virtual drives/rocketleague/dosdevices/c:/windows/system32 but I can't find anything about bcrypt.h, bcrypt_main.c nor bcrypt.spec
Can you help me ? Thank you again
https://bugs.winehq.org/show_bug.cgi?id=40680
Søren syrelyre@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |syrelyre@gmail.com
--- Comment #2 from Søren syrelyre@gmail.com --- (In reply to Maxime from comment #0)
Created attachment 54554 [details] bcrypt patch
Latest Steam update of Rocket League prevents it to run with wine. The game exits early with this message: wine: Call from 0x7b43cf4c to unimplemented function bcrypt.dll.BCryptGenerateSymmetricKey, aborting
This can be fixed by implementing the missing symbol and making it return 0. Seems to be enough for now.
I applied the patch which fixed the issue for starting the game. Entering a competitive game resulted in these errors:
fixme:bcrypt:BCryptOpenAlgorithmProvider algorithm L"AES" not supported wine: Call from 0x7b43cf7c to unimplemented function bcrypt.dll.BCryptEncrypt, aborting
https://bugs.winehq.org/show_bug.cgi?id=40680
--- Comment #3 from Maxime maxime@mmorel.eu --- (In reply to Søren from comment #2)
(In reply to Maxime from comment #0)
Created attachment 54554 [details] bcrypt patch
Latest Steam update of Rocket League prevents it to run with wine. The game exits early with this message: wine: Call from 0x7b43cf4c to unimplemented function bcrypt.dll.BCryptGenerateSymmetricKey, aborting
This can be fixed by implementing the missing symbol and making it return 0. Seems to be enough for now.
I applied the patch which fixed the issue for starting the game. Entering a competitive game resulted in these errors:
fixme:bcrypt:BCryptOpenAlgorithmProvider algorithm L"AES" not supported wine: Call from 0x7b43cf7c to unimplemented function bcrypt.dll.BCryptEncrypt, aborting
Oups, we may have to go a bit further...
https://bugs.winehq.org/show_bug.cgi?id=40680
bean papabean@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |papabean@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=40680
--- Comment #4 from Maxime maxime@mmorel.eu --- (In reply to Robin from comment #1)
Hello Maxime, and thank you for posting a solution to the problem !
But I'm kind of new with wine and playonlinux, how do I modify these 3 differents files? I'm playing RocketLeague with PoL and I found bcrypt.dll in ~/PlayOnLinux's virtual drives/rocketleague/dosdevices/c:/windows/system32 but I can't find anything about bcrypt.h, bcrypt_main.c nor bcrypt.spec
Can you help me ? Thank you again
It is a patch to apply against the source. To test my fix, I recompiled wine. What distribution are you using?
https://bugs.winehq.org/show_bug.cgi?id=40680
--- Comment #5 from Robin robin.leruth@gmail.com --- (In reply to Maxime from comment #4)
(In reply to Robin from comment #1)
Hello Maxime, and thank you for posting a solution to the problem !
But I'm kind of new with wine and playonlinux, how do I modify these 3 differents files? I'm playing RocketLeague with PoL and I found bcrypt.dll in ~/PlayOnLinux's virtual drives/rocketleague/dosdevices/c:/windows/system32 but I can't find anything about bcrypt.h, bcrypt_main.c nor bcrypt.spec
Can you help me ? Thank you again
It is a patch to apply against the source. To test my fix, I recompiled wine. What distribution are you using?
Oh all right, so I should only get the wine sources and make/make-install ? I'm on Fedora 23.
https://bugs.winehq.org/show_bug.cgi?id=40680
--- Comment #6 from Maxime maxime@mmorel.eu --- (In reply to Robin from comment #5)
(In reply to Maxime from comment #4)
(In reply to Robin from comment #1)
Hello Maxime, and thank you for posting a solution to the problem !
But I'm kind of new with wine and playonlinux, how do I modify these 3 differents files? I'm playing RocketLeague with PoL and I found bcrypt.dll in ~/PlayOnLinux's virtual drives/rocketleague/dosdevices/c:/windows/system32 but I can't find anything about bcrypt.h, bcrypt_main.c nor bcrypt.spec
Can you help me ? Thank you again
It is a patch to apply against the source. To test my fix, I recompiled wine. What distribution are you using?
Oh all right, so I should only get the wine sources and make/make-install ? I'm on Fedora 23.
I am not familiar with Fedora, but I guess the easiest would be to get wine source RPM for version 1.9.10, apply the patch, compile and generate your RPM. But this will only allow you to run the game and play solo, not multiplayer.
https://bugs.winehq.org/show_bug.cgi?id=40680
--- Comment #7 from Robin robin.leruth@gmail.com --- (In reply to Maxime from comment #6)
(In reply to Robin from comment #5)
(In reply to Maxime from comment #4)
(In reply to Robin from comment #1)
Hello Maxime, and thank you for posting a solution to the problem !
But I'm kind of new with wine and playonlinux, how do I modify these 3 differents files? I'm playing RocketLeague with PoL and I found bcrypt.dll in ~/PlayOnLinux's virtual drives/rocketleague/dosdevices/c:/windows/system32 but I can't find anything about bcrypt.h, bcrypt_main.c nor bcrypt.spec
Can you help me ? Thank you again
It is a patch to apply against the source. To test my fix, I recompiled wine. What distribution are you using?
Oh all right, so I should only get the wine sources and make/make-install ? I'm on Fedora 23.
I am not familiar with Fedora, but I guess the easiest would be to get wine source RPM for version 1.9.10, apply the patch, compile and generate your RPM. But this will only allow you to run the game and play solo, not multiplayer.
Thank you for the reply ! I'll try it and let you know :)
https://bugs.winehq.org/show_bug.cgi?id=40680
wine@birarda.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine@birarda.com
https://bugs.winehq.org/show_bug.cgi?id=40680
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com Keywords| |patch
--- Comment #8 from Austin English austinenglish@gmail.com --- (In reply to Maxime from comment #0)
Created attachment 54554 [details] bcrypt patch
Latest Steam update of Rocket League prevents it to run with wine. The game exits early with this message: wine: Call from 0x7b43cf4c to unimplemented function bcrypt.dll.BCryptGenerateSymmetricKey, aborting
This can be fixed by implementing the missing symbol and making it return 0. Seems to be enough for now.
Please add a FIXME to the function body (and a space between dwFlags and the closing parenthesis in the prototype), and submit to wine-patches. Patches are not picked up from bugzilla.
https://bugs.winehq.org/show_bug.cgi?id=40680
--- Comment #9 from Maxime maxime@mmorel.eu --- (In reply to Austin English from comment #8)
(In reply to Maxime from comment #0)
Created attachment 54554 [details] bcrypt patch
Latest Steam update of Rocket League prevents it to run with wine. The game exits early with this message: wine: Call from 0x7b43cf4c to unimplemented function bcrypt.dll.BCryptGenerateSymmetricKey, aborting
This can be fixed by implementing the missing symbol and making it return 0. Seems to be enough for now.
Please add a FIXME to the function body (and a space between dwFlags and the closing parenthesis in the prototype), and submit to wine-patches. Patches are not picked up from bugzilla.
I already improved the patch. I will submit when it will be ready.
https://bugs.winehq.org/show_bug.cgi?id=40680
tim.inman@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tim.inman@gmail.com
--- Comment #10 from tim.inman@gmail.com --- Hi Maxime,
Thanks for your work. I have been playing RL via playonlinux on SteamOS 'Brewmaster'. I cloned wine 1.9.2 with git and made the edits, however when I './configure' I get an error stating that gcc fails the '-V >&5' test. Realizing my version of ggc doesn't like the -V command, I tried removing that line, but it then complains about missing files.
Apparently gcc does need to be greater than version 5 and I think mine is 4.8 or 4.9. I tried upgrading but that caused too many broken dependencies, so I seem to be stuck.
I'm wondering if you think it would work for me to use your compiled patched version?
https://bugs.winehq.org/show_bug.cgi?id=40680
--- Comment #11 from Maxime maxime@mmorel.eu --- (In reply to tim.inman from comment #10)
Hi Maxime,
Thanks for your work. I have been playing RL via playonlinux on SteamOS 'Brewmaster'. I cloned wine 1.9.2 with git and made the edits, however when I './configure' I get an error stating that gcc fails the '-V >&5' test. Realizing my version of ggc doesn't like the -V command, I tried removing that line, but it then complains about missing files.
Apparently gcc does need to be greater than version 5 and I think mine is 4.8 or 4.9. I tried upgrading but that caused too many broken dependencies, so I seem to be stuck.
I'm wondering if you think it would work for me to use your compiled patched version?
Hello, I never tried SteamOS, but as it is Debian based, maybe there is a way to build a patched .deb package.
https://bugs.winehq.org/show_bug.cgi?id=40680
--- Comment #12 from Maxime maxime@mmorel.eu --- (In reply to Maxime from comment #11)
(In reply to tim.inman from comment #10)
Hi Maxime,
Thanks for your work. I have been playing RL via playonlinux on SteamOS 'Brewmaster'. I cloned wine 1.9.2 with git and made the edits, however when I './configure' I get an error stating that gcc fails the '-V >&5' test. Realizing my version of ggc doesn't like the -V command, I tried removing that line, but it then complains about missing files.
Apparently gcc does need to be greater than version 5 and I think mine is 4.8 or 4.9. I tried upgrading but that caused too many broken dependencies, so I seem to be stuck.
I'm wondering if you think it would work for me to use your compiled patched version?
Hello, I never tried SteamOS, but as it is Debian based, maybe there is a way to build a patched .deb package.
I am using ArchLinux, and I build the patch wine using a modified PKGBUILD file, which is producing a tar.xz package. The only thing you could do with that is extract it to /, messing up your system. And wine will probably fail because of dependency discrepancies between your system and mine. So in your case, I would go for the official procedure to build a .deb from source, by applying the patch in the procedure.
https://bugs.winehq.org/show_bug.cgi?id=40680
earquilla@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |earquilla@gmail.com
--- Comment #13 from earquilla@gmail.com --- this bug is affecting me on gentoo. anybody care to explain how to get this working using playonlinux? i've never patched anything before. i use gentoo thus install from source all the time and even have playonlinux running in a nice little systemd nspawn container but am a noob at patching and don't know where to start.
does this patch allow online play?
https://bugs.winehq.org/show_bug.cgi?id=40680
Captain Crutches captaincrutches@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |captaincrutches@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=40680
--- Comment #14 from tim.inman@gmail.com --- Maxime, Earquilla:
I am wondering if your fix is going to get pulled into the next staging release? - if so playonlinux gives the option to easily install staging releases and that would be a feasible alternative to building from source (which is impossible on both of my distros).
https://bugs.winehq.org/show_bug.cgi?id=40680
--- Comment #15 from Maxime maxime@mmorel.eu --- This patch only allows you to run the game and play in solo. In the latest Steam update of the game, Rocket League is using BCryptEncrypt and BCryptDecrypt (with AES) when connecting to an online game. These API are not implemented in wine and using the native windows bcrypt.dll does not help. So we won't be able to go online before these bcrypt API are implemented.
https://bugs.winehq.org/show_bug.cgi?id=40680
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #16 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to Maxime from comment #15)
This patch only allows you to run the game and play in solo. In the latest Steam update of the game, Rocket League is using BCryptEncrypt and BCryptDecrypt (with AES) when connecting to an online game. These API are not implemented in wine and using the native windows bcrypt.dll does not help. So we won't be able to go online before these bcrypt API are implemented.
Please open new bugs for the other functions so we don't lose track of other problems.
https://bugs.winehq.org/show_bug.cgi?id=40680
Robin robin.tschirschnitz@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |robin.tschirschnitz@googlem | |ail.com
https://bugs.winehq.org/show_bug.cgi?id=40680
Robin robin.tschirschnitz@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |robin.tschirschnitz@googlem | |ail.com
https://bugs.winehq.org/show_bug.cgi?id=40680
--- Comment #17 from Hans Leidekker hans@meelstraat.net --- Created attachment 54565 --> https://bugs.winehq.org/attachment.cgi?id=54565 bcrypt WIP
Please attach a WINEDEBUG=+bcrypt trace with this patch applied.
https://bugs.winehq.org/show_bug.cgi?id=40680
--- Comment #18 from Søren syrelyre@gmail.com --- Created attachment 54567 --> https://bugs.winehq.org/attachment.cgi?id=54567 wine bcrypt trace
debug log when trying to join an online game
https://bugs.winehq.org/show_bug.cgi?id=40680
--- Comment #19 from Søren syrelyre@gmail.com --- Comment on attachment 54567 --> https://bugs.winehq.org/attachment.cgi?id=54567 wine bcrypt trace
It starts the game, i click find match for an online game, it finds a match and says "joining" but eventually it times out with error: "your connection to the game timed out (Error: 71)"
https://bugs.winehq.org/show_bug.cgi?id=40680
--- Comment #20 from Hans Leidekker hans@meelstraat.net --- (In reply to Søren from comment #19)
Comment on attachment 54567 [details] wine bcrypt trace
It starts the game, i click find match for an online game, it finds a match and says "joining" but eventually it times out with error: "your connection to the game timed out (Error: 71)"
Thanks. Looks like it needs an implementation of BCRYPT_BLOCK_PADDING in BCryptEncrypt.
https://bugs.winehq.org/show_bug.cgi?id=40680
--- Comment #21 from Maxime maxime@mmorel.eu --- We can move to BUG 40692 to continue on this.
https://bugs.winehq.org/show_bug.cgi?id=40680
bean papabean@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|papabean@gmail.com |
https://bugs.winehq.org/show_bug.cgi?id=40680
--- Comment #22 from Bruno Jesus 00cpxxx@gmail.com --- At bug 40692 people say they are able to run the game without any bcrypt patches. Can the game still be played without any bcrypt patches? If yes lets resolve it as abandoned since it is no longer possible to reproduce, we have other bcrypt bugs that still represent wine deficiencies.
https://bugs.winehq.org/show_bug.cgi?id=40680
fjfrackiewicz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fjfrackiewicz@gmail.com
--- Comment #23 from fjfrackiewicz@gmail.com --- Does this commit fix the issue?
https://source.winehq.org/git/wine.git/commit/9c5a200de51b6773930f6f97a22d5e...
https://bugs.winehq.org/show_bug.cgi?id=40680
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |9c5a200de51b6773930f6f97a22 | |d5ec23aae3434 Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #24 from Hans Leidekker hans@meelstraat.net --- Fixed with 9c5a200de51b6773930f6f97a22d5ec23aae3434.
https://bugs.winehq.org/show_bug.cgi?id=40680
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #25 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.0-rc2.