Kreytricks / kreytricks

Previously contribution-focused fork, now standalone rolling-release project
https://kreytricks.github.io/
GNU Lesser General Public License v2.1
3 stars 1 forks source link

Warcraft-III-Setup.exe fails with Bnet Desktop App #14

Open Kreyren opened 4 years ago

Kreyren commented 4 years ago

Transfer from: https://github.com/Winetricks/winetricks/issues/1417#issue-518214703

Working with 32 bit wine install, I install battle.net app and then run the classic game installer for Warcraft III (only newer games are directly installable in the app, older games you use an installer). Installer downloads game but fails when asking for CD Key.

Steps:

1. Download and install battle.net desktop app.

2. Download and run Warcraft-III-Setup.exe

3. After it downloads which takes awhile run
   wine .wine32/drive_c/Program\ Files/Warcraft\ III/Warcraft\ III\ Launcher.exe

(Make sure bnet app is running or it won't work e.g. wine .wine32/drive_c/Program\ Files/Battle.net/Battle.net\ Launcher.exe)

Using winetricks 20190912-next - sha256sum: f7c62144ed37ff64001724e5ea0cc41e7a861414d4e9cf4d665c694ec078894c with wine-4.19 and WINEARCH=win32

https://www.blizzard.com/en-gb/apps/battle.net/desktop https://us.battle.net/download/getInstallerForGame?os=win&locale=enGB&version=LIVE&gameProgram=WARCRAFT_3 war3.log

AtreusX commented 4 years ago

I had some weird artifact where all my gnome-terminal text went crazy right after logging into the bnet app with my email and password. Seems to be fine though. When launching "Warcraft-III-Setup.exe" the suggested directory for installing is always C:/windows/system32/Warcraft III for some reason, so it has to be changed to Program Files.

AtreusX commented 4 years ago

Also I get this message on the console when launching the Warcraft-III-Setup.exe program:

003f:fixme:wininet:InternetSetOptionW Option 77 STUB

Which seems to be related to issue with download bar in the battlenet which doesn't indicate the progress bar correctly (reference wanted)

Don't know if it's significant or not but it was also mentioned in this older thread on trying to get war3 working under wine:

https://askubuntu.com/questions/1085024/how-can-i-run-warcraft-3-on-ubuntu-18-04

edited by @Kreyren

Kreyren commented 4 years ago

@AtreusX You said that the message is relevant to the download bar issue, provide a reference if so.

AtreusX commented 4 years ago

I apologize, I think I was mistaken in saying that, the progress bar is just inaccurate both on windows and linux. The download finishes but with an error, nothing in console but the Option 77 Stub error again. When I relaunch it brings up a window titled CD Key but then crashes with an error that "SceneCefBrowser.exe has encountered a serious problem and needs to close". Then it makes you click OK on a button that says Internal Error 0.0. Here's the console output, again this Option 77 Stub error seems relevant somehow?

john@asrock:~$ wine .cache/winetricks/battlenet/Warcraft-III-Setup.exe 
01a6:fixme:ver:GetCurrentPackageId (0xcefefc (nil)): stub
01ac:fixme:winhttp:get_system_proxy_autoconfig_url no support on this platform
01ac:fixme:winhttp:WinHttpDetectAutoProxyConfigUrl discovery via DHCP not supported
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="http://www.blizzard.com/404">here</a>.</h2>
</body></html>
0184:fixme:ver:GetCurrentPackageId (0xcefefc (nil)): stub
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="http://www.blizzard.com/404">here</a>.</h2>
</body></html>
01cd:fixme:winhttp:get_system_proxy_autoconfig_url no support on this platform
01cd:fixme:winhttp:WinHttpDetectAutoProxyConfigUrl discovery via DHCP not supported
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="http://www.blizzard.com/404">here</a>.</h2>
</body></html>
john@asrock:~$ **01cd:fixme:wininet:InternetSetOptionW Option 77 STUB**
AtreusX commented 4 years ago

When I run 7z x on the war3 installer I get the following output:

https://paste.ubuntu.com/p/8GRJh9k6sW/

john@asrock:/tmp/foo$ ls -a . .. CERTIFICATE .data .gfids .rdata .reloc .rsrc .rsrc_1 .text .tls Warcraft-III-Setup.exe

AtreusX commented 4 years ago

Dunno if this helps but the warcraft-iii-setup.exe file has some pictures and fonts in it for displaying the windows, as well as a few json files. Like this one is SCREEN.LANGUAGE.JSON, presumably for the language selection dialog:

https://paste.ubuntu.com/p/Phqq5btZyq/

AtreusX commented 4 years ago

Kreyren to answer your question yes there are two battle.net networks, the old 1.0 and the new 2.0. When the 2.0 came out for starcraft II then new loader was created which is this one, even though old bnet 1.0 is still used.

I installed DXVK and got this output from bnet app: http://paste.ubuntu.com/p/YQXf2VPjMm/ Output from warcraft-iii-setup is same as before: http://paste.ubuntu.com/p/jV7Tv7FhKk/