You are here    Supported software    HearthStone Blizzard Application nl sv ru pl es de fr

HearthStone Blizzard Application

Informations

Creator Message
kmelia Anonymous

Warning

This installer has not been approved yet by the team.

Informations

Platforms:
Downloads: 0
Wine: System

Feedbacks

Description

Up to date Blizzard Application for HearthStone

Source code

				

Contributions

Filters:

Contribute
Member Message
kmelia Wednesday 6 September 2017 at 16:58
kmelia Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Up to date script with win7

Differences

@@ -0,0 +1,89 @@
+#!/usr/bin/env playonlinux-bash
+# Date : 2017-06-14 08:32
+# Last revision : 2017-06-14 08:32
+# Wine version used : 2.11-staging
+# Distribution used to test : Ubuntu 13.10 x64, Ubuntu 14.04 x64, Ubuntu 16.04 x64, Debian Jessie, Arch Linux
+# Author : contributions by many others
+# Depend :
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+TITLE="Hearthstone"
+PREFIX="hearthstone"
+
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 1950
+POL_Debug_Init
+
+POL_SetupWindow_presentation "$TITLE" "Blizzard" "http://us.battle.net/hearthstone/en/" "kweepeer2" "$PREFIX"
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "2.11-staging"
+
+# Fix "Battle.net Helper.exe" crash on startup.
+POL_Call POL_Install_corefonts
+POL_Call POL_Install_RegisterFonts
+POL_Wine_OverrideDLL "native,builtin" "msvcp140"
+
+# Fix Fireside Gathering search
+POL_Call POL_Install_dotnet40
+
+# Set OS after .NET install
+# to upgrade on win10, only .NET 4.6 is compliant, and not available on POL
+Set_OS "win7"
+
+# Download & Install the game.
+# Multiple Language support. See https://eu.battle.net/account/download/?show=hearthstone&style=hearthstone
+POL_SetupWindow_menu "$(eval_gettext 'What language do you want to install?')" "Language Selection" \
+    "English (US)|Español (AL)|Português (BR)|English (EU)|Deutsch|Español (EU)|Português (EU)|Français|Russian|Italiano|Polski|Korean|Chinese (Taiwan)|Chinese (China)" "|"
+case "$APP_ANSWER" in
+    "English (US)")
+        LANG="enUS";;
+    "Español (AL)")
+        LANG="esMX";;
+    "Português (BR)")
+        LANG="ptBR";;
+    "English (EU)")
+        LANG="enGB";;
+    "Deutsch")
+        LANG="deDE";;
+    "Español (EU)")
+        LANG="esES";;
+    "Português (EU)")
+        LANG="ptPT";;
+    "Français")
+        LANG="frFR";;
+    "Russian")
+        LANG="ruRU";;
+    "Italiano")
+        LANG="itIT";;
+    "Polski")
+        LANG="plPL";;
+    "Korean")
+        LANG="koKR";;
+    "Chinese (Taiwan)")
+        LANG="zhTW";;
+    "Chinese (China)")
+        LANG="zhCN";;
+    *)
+        exit 1;;
+esac
+
+SHORTCUT_FILE="Battle.net Launcher.exe"
+EXE_FILE="Hearthstone-Setup-$LANG.exe"
+
+POL_System_TmpCreate "$PREFIX"
+cd "$POL_System_TmpDir"
+POL_Download "http://dist.blizzard.com/downloads/hs-installers/a6029a1d625c79252defff3914fb6e67/retail.1/$EXE_FILE"
+POL_Wine "$POL_System_TmpDir/$EXE_FILE"
+POL_Wine_WaitExit "$TITLE" --allow-kill
+POL_System_TmpDelete
+
+POL_SetupWindow_VMS "256"
+POL_Wine_reboot
+
+POL_Shortcut "$SHORTCUT_FILE" "$TITLE" "$TITLE.png" ""
+POL_SetupWindow_Close
+
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : 2017-06-14 08:32
# Last revision : 2017-06-14 08:32
# Wine version used : 2.11-staging
# Distribution used to test : Ubuntu 13.10 x64, Ubuntu 14.04 x64, Ubuntu 16.04 x64, Debian Jessie, Arch Linux
# Author : contributions by many others
# Depend :

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Hearthstone"
PREFIX="hearthstone"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 1950
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Blizzard" "http://us.battle.net/hearthstone/en/" "kweepeer2" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "2.11-staging"

# Fix "Battle.net Helper.exe" crash on startup.
POL_Call POL_Install_corefonts
POL_Call POL_Install_RegisterFonts
POL_Wine_OverrideDLL "native,builtin" "msvcp140"

# Fix Fireside Gathering search
POL_Call POL_Install_dotnet40

# Set OS after .NET install
# to upgrade on win10, only .NET 4.6 is compliant, and not available on POL
Set_OS "win7"

# Download & Install the game.
# Multiple Language support. See https://eu.battle.net/account/download/?show=hearthstone&style=hearthstone
POL_SetupWindow_menu "$(eval_gettext 'What language do you want to install?')" "Language Selection" \
    "English (US)|Español (AL)|Português (BR)|English (EU)|Deutsch|Español (EU)|Português (EU)|Français|Russian|Italiano|Polski|Korean|Chinese (Taiwan)|Chinese (China)" "|"
case "$APP_ANSWER" in
    "English (US)")
        LANG="enUS";;
    "Español (AL)")
        LANG="esMX";;
    "Português (BR)")
        LANG="ptBR";;
    "English (EU)")
        LANG="enGB";;
    "Deutsch")
        LANG="deDE";;
    "Español (EU)")
        LANG="esES";;
    "Português (EU)")
        LANG="ptPT";;
    "Français")
        LANG="frFR";;
    "Russian")
        LANG="ruRU";;
    "Italiano")
        LANG="itIT";;
    "Polski")
        LANG="plPL";;
    "Korean")
        LANG="koKR";;
    "Chinese (Taiwan)")
        LANG="zhTW";;
    "Chinese (China)")
        LANG="zhCN";;
    *)
        exit 1;;
esac

SHORTCUT_FILE="Battle.net Launcher.exe"
EXE_FILE="Hearthstone-Setup-$LANG.exe"

POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
POL_Download "http://dist.blizzard.com/downloads/hs-installers/a6029a1d625c79252defff3914fb6e67/retail.1/$EXE_FILE"
POL_Wine "$POL_System_TmpDir/$EXE_FILE"
POL_Wine_WaitExit "$TITLE" --allow-kill
POL_System_TmpDelete

POL_SetupWindow_VMS "256"
POL_Wine_reboot

POL_Shortcut "$SHORTCUT_FILE" "$TITLE" "$TITLE.png" ""
POL_SetupWindow_Close

exit 0

Replies

Anonymous
Thursday 7 September 2017 at 14:13 -
This may sound silly but I'm new to the POL website, What do I do with this?
Anonymous
Thursday 7 September 2017 at 16:57 -
Hi sorawotobu,
Anonymous
Thursday 7 September 2017 at 16:57 -
Hi sorawotobu,
Anonymous
Thursday 7 September 2017 at 17:01 -
dammit ;-) ok again: you open a console and execute: /usr/share/playonlinux/playonlinux-url_handler with that link in the op as parameter, meaning in this case: /usr/share/playonlinux/playonlinux-url_handler playonlinux://www.playonlinux.com/repository/download_update.php?id=8310
Anonymous
Thursday 7 September 2017 at 19:00 -
Nice ! Finally a solution that works, just installed it on Archlinux and now am able to play again after nearly a week!
Anonymous
Thursday 7 September 2017 at 19:33 -
I get that I have to replace usr with my name but what else do I have to adjust and to what? I get No such file or directory
Anonymous
Friday 8 September 2017 at 23:17 -
Ok so for me the script you're talking about was at /usr/share/playonlinux/bash/playonlinux-url_handler and executing the command with that parameter I got no output and if I try to install Hearthstone I still get the same error as before.
Anonymous
Monday 25 September 2017 at 9:05 -
Yay it worked! thank you!
Anonymous
Monday 25 September 2017 at 11:41 -
I copied my other pre installed blizzard games to the folder that this one installed to and the blizzard app was able to find them all. Using these settings all of the games run. WoW 30-60fps depending on scenary, Diablo 3 60-80fps, starcraft 2, hearthstone, all ran good, Heroes of the storm however seems to lag. I will have to see about doing something different with that one.
Anonymous
Tuesday 26 September 2017 at 20:48 -
Thanks for this, works for me.
Anonymous
Tuesday 26 September 2017 at 20:50 -
However, two questions:

1) Is there still no way to resolve the problem with the screen going black with certain in-game effects? Sometimes, I have to hit ESC to open the menu and then again to go back to the game.

2) Can one of you, for whom this script worked, try to install and run Starcraft 1? It fails to start for me.
Anonymous
Wednesday 27 September 2017 at 17:31 -
To reply to my own question number 2: All that was needed to run SC was to set the Windows version to 2003. Then it runs directly from the Blizzard app installed with the script from this page. And it doesn't break Hearthstone.

Question 1, however, remains. Any solutions to the black screen during effects problem?

Thanks in advance!