You are here    Supported software    Diablo III nl sv ru pl es de fr

Diablo III

Informations

Creator Message
Quentin PÂRIS
Admin

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 296980
Wine: 2.5-staging

Feedbacks

Screenshots

MiniatureMiniatureMiniatureMiniatureMiniatureMiniature

Source code

#!/usr/bin/env playonlinux-bash
# Date : (2017-04-07)
# Wine version used : 2.4-staging
# Distribution used to test : Ubuntu 16.04 LTS
# NVidia GeForce GTX 960/PCIe/SSE2
# AMD FX(tm)-6300 Six-Core Processor × 6
   
# CHANGELOG
# [SomeGuy42] (09-APR-2017)
#  Wine 2.0-rc3-staging => 2.5-staging
#   2.5 has many preinstalled components and should make the install simpler/more stable
#  Blizzard app v1.8.0.8600  (formerly Battle.net)
#  Diablo 3 Patch 2.5.0.44247
# [RavonTUS] (06-JAN-2017)
#  added Dependencies to improve the install
#  Wine 1.7.15 => 2.0-rc3-staging
#  Battle.Net Patch 1.5.2.8180
#  Diablo 3 Patch 2.4.3 (64-bit Client)
#  NVidia GeForce GTX 960/PCIe/SSE2
#  AMD FX(tm)-6300 Six-Core Processor × 6
# [SomeGuy42] (2016-11-22)
#   Wine 1.7.15 => 1.9.23
#   Battle.net Patch 1.5.2 Build 8142
#   Diablo 3  v2.4.2.41394
#   Notes: install tweaked for D3 performance
# [petch] (2014-03-24)
#   Wine 1.5.5-DiabloIII_v3 => 1.7.15 (DarkNekros)
# [SuperPlumus] (2013-06-08 17-14)
#   gettext + clean
   
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="Diablo III"
WORKING_WINE_VERSION="2.5-staging"
EDITOR="Blizzard Entertainment Inc."
EDITOR_URL="http://www.blizzard.com"
PREFIX="DiabloIII_32"
AUTHOR="RavonTUS, SomeGuy42 and the POL Community"
   
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 1195
POL_Debug_Init
   
POL_Debug_Message "Starting Install -----------------------------"
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "$AUTHOR" "$PREFIX"
   
POL_System_SetArch "x86"
#POL_System_SetArch "amd64"
POL_System_TmpCreate "$PREFIX"
   
POL_SetupWindow_message "$(eval_gettext 'NOTICE: This will install the Blizzard application first and configure the settings for Diablo 3.')\n\n$(eval_gettext 'The Blizzard app install may take longer than expected to continue to the next window, but it works in most cases. For example if it appears not to continue at the Installation Location window, wait a couple minutes and try clicking the Continue button again.')"
   
POL_Debug_Message "Downloading Install File -------------"
cd "$POL_System_TmpDir"
# Battle.net now has a universal installer with language selection at start
POL_Download "https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=BATTLENET_APP/Battle.net-Setup.exe"
SetupIs="$POL_System_TmpDir/Battle.net-Setup.exe"
   
# Removed the DVD option as it has a really old installer and game files and isn't worth using IMHO
   
POL_Debug_Message "Creating Wine Install ------------------------"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
   
POL_Debug_Message "Setting Wine Variables -----------------------"
Set_OS "win10"
# Updated Overrides, many of wine's dlls are up to spec now and diablo has even removed some of their own. 
POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
POL_Wine_OverrideDLL "native,builtin" "msvcp140"
POL_Wine_OverrideDLL "native,builtin" "ucrtbase" 

  
# Updated dependancies, Most no longer needed due to wine 2.0 (07-APR-2017)
POL_Call POL_Install_corefonts
POL_Call POL_Install_Physx
 
   
POL_Debug_Message "Running Install File -------------------------"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"
   
POL_SetupWindow_VMS "1024"
POL_System_TmpDelete
   
POL_Debug_Message "Creating Shortcut ----------------------------"
POL_Shortcut "Battle.net Launcher.exe"  "$TITLE" "" "" "Game"
   
POL_Debug_Message "Install Completed ----------------------------"
   
POL_SetupWindow_message "$(eval_gettext 'Blizzard application Installation Complete')\n\n$(eval_gettext 'IMPORTANT: Login to the Blizzard app by using the email and password entries near the bottom of the login window, not the nice looking ones near the top. You may also want to check the box for Keep Me Always Loged In. Then login to Blizzard and install the Diablo III game files.')"
 
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
SomeGuy42 Monday 10 April 2017 at 15:57
SomeGuy42 Anonymous

Information

This update has been approved by the team.

Differences

@@ -1,66 +1,95 @@
-#!/bin/bash
-
+#!/usr/bin/env playonlinux-bash
+# Date : (2017-04-07)
+# Wine version used : 2.4-staging
+# Distribution used to test : Ubuntu 16.04 LTS
+# NVidia GeForce GTX 960/PCIe/SSE2
+# AMD FX(tm)-6300 Six-Core Processor × 6
+   
 # CHANGELOG
-# [SuperPlumus] (2013-06-08 17-14)
-#   gettext + clean
+# [SomeGuy42] (09-APR-2017)
+#  Wine 2.0-rc3-staging => 2.5-staging
+#   2.5 has many preinstalled components and should make the install simpler/more stable
+#  Blizzard app v1.8.0.8600  (formerly Battle.net)
+#  Diablo 3 Patch 2.5.0.44247
+# [RavonTUS] (06-JAN-2017)
+#  added Dependencies to improve the install
+#  Wine 1.7.15 => 2.0-rc3-staging
+#  Battle.Net Patch 1.5.2.8180
+#  Diablo 3 Patch 2.4.3 (64-bit Client)
+#  NVidia GeForce GTX 960/PCIe/SSE2
+#  AMD FX(tm)-6300 Six-Core Processor × 6
+# [SomeGuy42] (2016-11-22)
+#   Wine 1.7.15 => 1.9.23
+#   Battle.net Patch 1.5.2 Build 8142
+#   Diablo 3  v2.4.2.41394
+#   Notes: install tweaked for D3 performance
 # [petch] (2014-03-24)
 #   Wine 1.5.5-DiabloIII_v3 => 1.7.15 (DarkNekros)
-
+# [SuperPlumus] (2013-06-08 17-14)
+#   gettext + clean
+   
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
+   
 TITLE="Diablo III"
-WORKING_WINE_VERSION="1.7.15"
-EDITOR="Blizzard"
+WORKING_WINE_VERSION="2.5-staging"
+EDITOR="Blizzard Entertainment Inc."
 EDITOR_URL="http://www.blizzard.com"
-PREFIX="DiabloIII"
-
+PREFIX="DiabloIII_32"
+AUTHOR="RavonTUS, SomeGuy42 and the POL Community"
+   
+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 1195
 POL_Debug_Init
-
-POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "" "$PREFIX"
-
+   
+POL_Debug_Message "Starting Install -----------------------------"
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "$AUTHOR" "$PREFIX"
+   
 POL_System_SetArch "x86"
-
-if [ "$POL_SELECTED_FILE" ]; then
-    SetupIs="$POL_SELECTED_FILE"
-else
-    POL_SetupWindow_InstallMethod "LOCAL,DVD"
-
-    if [ "$INSTALL_METHOD" = "LOCAL" ]; then
-        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file downloaded on $EDITOR website')" "$TITLE"
-        SetupIs="$APP_ANSWER"
-    fi
-    if [ "$INSTALL_METHOD" = "DVD" ]; then
-        POL_SetupWindow_cdrom
-        POL_Call POL_Sudo_UnhideCdrom
-        POL_SetupWindow_check_cdrom "Diablo III Setup.exe"
-        SetupIs="$CDROM/Diablo III Setup.exe"
-    fi
-fi
-
+#POL_System_SetArch "amd64"
+POL_System_TmpCreate "$PREFIX"
+   
+POL_SetupWindow_message "$(eval_gettext 'NOTICE: This will install the Blizzard application first and configure the settings for Diablo 3.')\n\n$(eval_gettext 'The Blizzard app install may take longer than expected to continue to the next window, but it works in most cases. For example if it appears not to continue at the Installation Location window, wait a couple minutes and try clicking the Continue button again.')"
+   
+POL_Debug_Message "Downloading Install File -------------"
+cd "$POL_System_TmpDir"
+# Battle.net now has a universal installer with language selection at start
+POL_Download "https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=BATTLENET_APP/Battle.net-Setup.exe"
+SetupIs="$POL_System_TmpDir/Battle.net-Setup.exe"
+   
+# Removed the DVD option as it has a really old installer and game files and isn't worth using IMHO
+   
+POL_Debug_Message "Creating Wine Install ------------------------"
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
-POL_Call POL_Install_vcrun2008
-
+   
+POL_Debug_Message "Setting Wine Variables -----------------------"
+Set_OS "win10"
+# Updated Overrides, many of wine's dlls are up to spec now and diablo has even removed some of their own. 
+POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
+POL_Wine_OverrideDLL "native,builtin" "msvcp140"
+POL_Wine_OverrideDLL "native,builtin" "ucrtbase" 
+
+  
+# Updated dependancies, Most no longer needed due to wine 2.0 (07-APR-2017)
+POL_Call POL_Install_corefonts
+POL_Call POL_Install_Physx
+ 
+   
+POL_Debug_Message "Running Install File -------------------------"
 POL_Wine_WaitBefore "$TITLE"
 POL_Wine "$SetupIs"
-while [ ! -e "$WINEPREFIX/drive_c/$PROGRAMFILES/Diablo III/Diablo III Launcher.exe" ]; do
-    sleep 10
-done
-
-POL_Shortcut "Diablo III Launcher.exe"  "$TITLE"
-POL_Shortcut_InsertBeforeWine "$TITLE" '#taskset -pc 0 $$'
-[ "$AMD64_COMPATIBLE" == "True" ] && POL_Shortcut_InsertBeforeWine "$TITLE" 'BEFORE_WINE="setarch i386 -3 -L -B -R"'
-
-if [ "$INSTALL_METHOD" = "DVD" ]; then
-    POL_Call POL_Sudo_RehideCdrom
-fi
-
+   
 POL_SetupWindow_VMS "1024"
-
-POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed.\n\nA special thank to Erich Hoover for his wine patch (AcceptEx Fix)')\n\n$(eval_gettext 'If you have Error 3007 on connecting, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"
-
+POL_System_TmpDelete
+   
+POL_Debug_Message "Creating Shortcut ----------------------------"
+POL_Shortcut "Battle.net Launcher.exe"  "$TITLE" "" "" "Game"
+   
+POL_Debug_Message "Install Completed ----------------------------"
+   
+POL_SetupWindow_message "$(eval_gettext 'Blizzard application Installation Complete')\n\n$(eval_gettext 'IMPORTANT: Login to the Blizzard app by using the email and password entries near the bottom of the login window, not the nice looking ones near the top. You may also want to check the box for Keep Me Always Loged In. Then login to Blizzard and install the Diablo III game files.')"
+ 
 POL_SetupWindow_Close
 exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2017-04-07)
# Wine version used : 2.4-staging
# Distribution used to test : Ubuntu 16.04 LTS
# NVidia GeForce GTX 960/PCIe/SSE2
# AMD FX(tm)-6300 Six-Core Processor × 6
   
# CHANGELOG
# [SomeGuy42] (09-APR-2017)
#  Wine 2.0-rc3-staging => 2.5-staging
#   2.5 has many preinstalled components and should make the install simpler/more stable
#  Blizzard app v1.8.0.8600  (formerly Battle.net)
#  Diablo 3 Patch 2.5.0.44247
# [RavonTUS] (06-JAN-2017)
#  added Dependencies to improve the install
#  Wine 1.7.15 => 2.0-rc3-staging
#  Battle.Net Patch 1.5.2.8180
#  Diablo 3 Patch 2.4.3 (64-bit Client)
#  NVidia GeForce GTX 960/PCIe/SSE2
#  AMD FX(tm)-6300 Six-Core Processor × 6
# [SomeGuy42] (2016-11-22)
#   Wine 1.7.15 => 1.9.23
#   Battle.net Patch 1.5.2 Build 8142
#   Diablo 3  v2.4.2.41394
#   Notes: install tweaked for D3 performance
# [petch] (2014-03-24)
#   Wine 1.5.5-DiabloIII_v3 => 1.7.15 (DarkNekros)
# [SuperPlumus] (2013-06-08 17-14)
#   gettext + clean
   
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="Diablo III"
WORKING_WINE_VERSION="2.5-staging"
EDITOR="Blizzard Entertainment Inc."
EDITOR_URL="http://www.blizzard.com"
PREFIX="DiabloIII_32"
AUTHOR="RavonTUS, SomeGuy42 and the POL Community"
   
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 1195
POL_Debug_Init
   
POL_Debug_Message "Starting Install -----------------------------"
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "$AUTHOR" "$PREFIX"
   
POL_System_SetArch "x86"
#POL_System_SetArch "amd64"
POL_System_TmpCreate "$PREFIX"
   
POL_SetupWindow_message "$(eval_gettext 'NOTICE: This will install the Blizzard application first and configure the settings for Diablo 3.')\n\n$(eval_gettext 'The Blizzard app install may take longer than expected to continue to the next window, but it works in most cases. For example if it appears not to continue at the Installation Location window, wait a couple minutes and try clicking the Continue button again.')"
   
POL_Debug_Message "Downloading Install File -------------"
cd "$POL_System_TmpDir"
# Battle.net now has a universal installer with language selection at start
POL_Download "https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=BATTLENET_APP/Battle.net-Setup.exe"
SetupIs="$POL_System_TmpDir/Battle.net-Setup.exe"
   
# Removed the DVD option as it has a really old installer and game files and isn't worth using IMHO
   
POL_Debug_Message "Creating Wine Install ------------------------"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
   
POL_Debug_Message "Setting Wine Variables -----------------------"
Set_OS "win10"
# Updated Overrides, many of wine's dlls are up to spec now and diablo has even removed some of their own. 
POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
POL_Wine_OverrideDLL "native,builtin" "msvcp140"
POL_Wine_OverrideDLL "native,builtin" "ucrtbase" 

  
# Updated dependancies, Most no longer needed due to wine 2.0 (07-APR-2017)
POL_Call POL_Install_corefonts
POL_Call POL_Install_Physx
 
   
POL_Debug_Message "Running Install File -------------------------"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"
   
POL_SetupWindow_VMS "1024"
POL_System_TmpDelete
   
POL_Debug_Message "Creating Shortcut ----------------------------"
POL_Shortcut "Battle.net Launcher.exe"  "$TITLE" "" "" "Game"
   
POL_Debug_Message "Install Completed ----------------------------"
   
POL_SetupWindow_message "$(eval_gettext 'Blizzard application Installation Complete')\n\n$(eval_gettext 'IMPORTANT: Login to the Blizzard app by using the email and password entries near the bottom of the login window, not the nice looking ones near the top. You may also want to check the box for Keep Me Always Loged In. Then login to Blizzard and install the Diablo III game files.')"
 
POL_SetupWindow_Close
exit 0

Replies

Anonymous
Monday 10 April 2017 at 16:04 -
Hi, this is my 32-bit install file. I find it's much more stable than trying to use the 64bit wine just for Battle.net(Blizzard app). I'm using wine 2.5-staging with no problems and even experience better performance (less jitter) with CSMT turned off. (default)
Anonymous
Monday 10 April 2017 at 16:07 -
I often have troubles with the "Try this update" button. To then use these scripts, open the New source code and copy the contents to an empty file on your computer. Make it executable, open POL -> Tools -> Run a local script. Point it to your file and happy installing!
Wednesday 12 April 2017 at 3:19 -
Wow, that worked great. I spent all week trying to get it running in a nice clean script. (I think I was spending too much time trying to get newer video drivers to work in my personal computer.) Anyway, tested this on my Ubuntu 16.04 system and it worked. Thanks for sharing.
Anonymous
Monday 17 April 2017 at 18:09 -
This worked great after hours of trying other methods or direct installation through wine. Thank you!
Anonymous
Wednesday 19 April 2017 at 16:07 -
Don't work for me. Instead of it my pc is freezes completely while i'm waiting for the launcher to download the game (Can't even swicth to tty1!). I don't have any clue, what the problem could be, the PlayOnLinux-Log for the virtual drive don't show any fatal error. Has anyone an idea, where i can look for fatal system errors?
RavonTUS Saturday 8 April 2017 at 4:23
RavonTUS

Warning

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

Message

Greetings,

It took me a while to get this one going - Battle.Net v1.8.0.860 and Diablo III v2.50 (Season 10), because I crashed my OS.  In the end I learned that it is very important to make sure the video drivers are configured correctly in order for any of this to work.

I tried Wine v2.5, but it keep failing with "dbhelper" error, so I went back to v2.4-staging.  I was able to get it to run the full 64-bit client, but it is very slow and laggy.  Please switch to 32-bit on the Battle.net screen.

NOTE:  I needed to upgrade my linux kernel in order to better suppot my NVidia GTX960 video card.  If you need help with that let me.  Also remote the # from #POL_Install_physx to install PhysX for NVidia cards.

Let me know how it works for you.

Enjoy!
-RavonTUS

 

 

Differences

@@ -1,66 +1,121 @@
-#!/bin/bash
+#!/usr/bin/env playonlinux-bash
+# Date : (2017-04-07)
+# Wine version used : 2.4-staging
+# Distribution used to test : Ubuntu 16.04 LTS/Kernel 4.10.8/NVidia GTX960
+# Battle.Net v1.8.0.860/DiabloIII v2.5.0(Season 10)
+# 64-bit client works but is very slow
 
+  
 # CHANGELOG
-# [SuperPlumus] (2013-06-08 17-14)
-#   gettext + clean
+# [RavonTUS] (07-APR-2017)
+#  add more api-ms-win-crt
+#  tested v2.5 but it failed to work, using v2.4-staging
+# [RavonTUS] (05-JAN-2017)
+#  added Dependencies to improve the install
+#  Wine 1.7.15 => 2.0-rc2-staging
+#  Battle.Net Patch ??
+# Diablo 3 Patch 2.4.3 (64-bit Client)
+# [SomeGuy42] (2016-11-22)
+#   Wine 1.7.15 => 1.9.23
+#   Battle.net Patch 1.5.2 Build 8142
+#   Diablo 3  v2.4.2.41394
+#   Notes: install tweaked for D3 performance
 # [petch] (2014-03-24)
 #   Wine 1.5.5-DiabloIII_v3 => 1.7.15 (DarkNekros)
-
+# [SuperPlumus] (2013-06-08 17-14)
+#   gettext + clean
+  
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
-TITLE="Diablo III"
-WORKING_WINE_VERSION="1.7.15"
-EDITOR="Blizzard"
+  
+TITLE="Diablo III 64-bit"
+WORKING_WINE_VERSION="2.4-staging"
+EDITOR="Blizzard Entertainment Inc."
 EDITOR_URL="http://www.blizzard.com"
-PREFIX="DiabloIII"
-
+PREFIX="DiabloIII-64bit"
+AUTHOR="RavonTUS, SomeGuy42 and the POL Community"
+  
+POL_GetSetupImages "http://media.blizzard.com/d3/media/artwork/artwork-templar-large.jpg" "https://2.bp.blogspot.com/-c8MeJxIShqQ/WHkheS9i48I/AAAAAAAAAF0/pka7KSf-OA4yBePsdz6sSSHFkh2fi3PfACLcB/s1600/BN.jpg" "$TITLE"
 POL_SetupWindow_Init
+POL_SetupWindow_SetID 1195
 POL_Debug_Init
-
-POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "" "$PREFIX"
-
-POL_System_SetArch "x86"
-
-if [ "$POL_SELECTED_FILE" ]; then
-    SetupIs="$POL_SELECTED_FILE"
-else
-    POL_SetupWindow_InstallMethod "LOCAL,DVD"
-
-    if [ "$INSTALL_METHOD" = "LOCAL" ]; then
-        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file downloaded on $EDITOR website')" "$TITLE"
-        SetupIs="$APP_ANSWER"
-    fi
-    if [ "$INSTALL_METHOD" = "DVD" ]; then
-        POL_SetupWindow_cdrom
-        POL_Call POL_Sudo_UnhideCdrom
-        POL_SetupWindow_check_cdrom "Diablo III Setup.exe"
-        SetupIs="$CDROM/Diablo III Setup.exe"
-    fi
-fi
-
+  
+POL_Debug_Message "Starting Install -----------------------------"
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "$AUTHOR" "$PREFIX"
+  
+#POL_System_SetArch "x86"
+POL_System_SetArch "amd64"
+POL_System_TmpCreate "$PREFIX"
+  
+POL_SetupWindow_message "$(eval_gettext 'NOTICE: This will install the Battle.net application first and configure the settings for Diablo 3.')\n\n$(eval_gettext 'The Battle.net install may take longer than expected to complete, but it usually works. For example if it appears not to continue at the Installation Location window, wait a couple minutes and try clicking the Continue button again.')"
+  
+POL_Debug_Message "Downloading Install File -------------"
+cd "$POL_System_TmpDir"
+# Battle.net now has a universal installer with language selection at start
+POL_Download "https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=BATTLENET_APP/Battle.net-Setup.exe"
+SetupIs="$POL_System_TmpDir/Battle.net-Setup.exe"
+  
+# Removed the DVD option as it has a really old installer and game files and isn't worth using IMHO
+  
+POL_Debug_Message "Creating Wine Install ------------------------"
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
-POL_Call POL_Install_vcrun2008
-
+  
+POL_Debug_Message "Setting Wine Variables -----------------------"
+# win7 has better D3 performance but issues with battle.net-need to turn browser hardware acceleration off in B.net
+Set_OS "win10"
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-conio-l1-1-0"
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-process-l1-1-0"
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-convert-l1-1-0"
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-runtime-l1-1-0"
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-environment-l1-1-0"
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-stdio-l1-1-0"
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-filesystem-l1-1-0"
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-string-l1-1-0"
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-heap-l1-1-0"
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-time-l1-1-0"
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-locale-l1-1-0"
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-utility-l1-1-0"
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-math-l1-1-0"  
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-multibyte-l1-1-0"    
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-private-l1-1-0"
+POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
+POL_Wine_OverrideDLL "native,builtin" "ucrtbase"
+POL_Wine_OverrideDLL "native,builtin" "msvcp120" "msvcp140" "msvcr120"
+POL_Wine_OverrideDLL "native,builtin" "d3dcompiler_47"
+ 
+# Dependencies (04-JAN-2017)
+POL_Call POL_Install_corefonts
+POL_Call POL_install_tahoma
+POL_Call POL_install_tahoma2
+POL_Call POL_Install_RegisterFonts
+POL_Call POL_install_gdiplus
+POL_Call POL_install_gecko
+POL_Call POL_install_dxfullsetup
+POL_Call POL_Install_d3dx11
+POL_Call POL_Install_vcrun2013
+#NVidian option below...
+#POL_Call POL_Install_physx
+#The following fails to install (MD5 hash issue) as of 04-JAN-2017, I think it would have help remove some errors at the start of the client, but runs ok without it
+#POL_Call POL_Install_wininet
+  
+POL_Debug_Message "Running Install File -------------------------"
 POL_Wine_WaitBefore "$TITLE"
 POL_Wine "$SetupIs"
-while [ ! -e "$WINEPREFIX/drive_c/$PROGRAMFILES/Diablo III/Diablo III Launcher.exe" ]; do
-    sleep 10
-done
-
-POL_Shortcut "Diablo III Launcher.exe"  "$TITLE"
-POL_Shortcut_InsertBeforeWine "$TITLE" '#taskset -pc 0 $$'
-[ "$AMD64_COMPATIBLE" == "True" ] && POL_Shortcut_InsertBeforeWine "$TITLE" 'BEFORE_WINE="setarch i386 -3 -L -B -R"'
-
-if [ "$INSTALL_METHOD" = "DVD" ]; then
-    POL_Call POL_Sudo_RehideCdrom
-fi
-
+  
 POL_SetupWindow_VMS "1024"
+POL_System_TmpDelete
+  
+POL_Debug_Message "Creating Shortcut ----------------------------"
+POL_Shortcut "Battle.net Launcher.exe"  "$TITLE" "" "" "Game"
+  
+POL_Debug_Message "Install Completed ----------------------------"
+  
+POL_SetupWindow_message "$(eval_gettext 'Battle.net Installation Complete')\n\n$(eval_gettext 'IMPORTANT: Please start the application and disable -Use browser hardware acceleration- under Settings (gear icon upper right) ->Advanced and restart the app. THEN login to Battle.net and download/locate the $TITLE game files.')\n\n$(eval_gettext 'TIP: In the Battle.net application you may need to move the mouse into the content of the drop menus for them to show.')"
 
-POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed.\n\nA special thank to Erich Hoover for his wine patch (AcceptEx Fix)')\n\n$(eval_gettext 'If you have Error 3007 on connecting, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"
+POL_SetupWindow_message "$(eval_gettext 'After Diablo III Installation Complete')\n\n$(eval_gettext 'BETA: The 64-bit may or may not work with yet. (I currently get Unable to initialize D3D).  If it fails, switch to the 32-bit client.')\n\n$(eval_gettext 'IMPORTANT: Please change to the 32-bit client by starting Battle.net. Click the Options (gear icon below logo). You may need to click and move the mouse down, in order for the menu to appear. Click Game Settings, then put a check mark in the Launch 32-bit client (instead of 64-bit).  Then click Done.')"
 
+POL_SetupWindow_message "$(eval_gettext 'Improve performance after the install, Go to Configure, Select that version under Wine Version, Right click on Diablo II for Configure Wine, Click on Staging Tab, Check Enable_CSMT for better graphic performance, then OK')"
+  
 POL_SetupWindow_Close
 exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2017-04-07)
# Wine version used : 2.4-staging
# Distribution used to test : Ubuntu 16.04 LTS/Kernel 4.10.8/NVidia GTX960
# Battle.Net v1.8.0.860/DiabloIII v2.5.0(Season 10)
# 64-bit client works but is very slow

  
# CHANGELOG
# [RavonTUS] (07-APR-2017)
#  add more api-ms-win-crt
#  tested v2.5 but it failed to work, using v2.4-staging
# [RavonTUS] (05-JAN-2017)
#  added Dependencies to improve the install
#  Wine 1.7.15 => 2.0-rc2-staging
#  Battle.Net Patch ??
# Diablo 3 Patch 2.4.3 (64-bit Client)
# [SomeGuy42] (2016-11-22)
#   Wine 1.7.15 => 1.9.23
#   Battle.net Patch 1.5.2 Build 8142
#   Diablo 3  v2.4.2.41394
#   Notes: install tweaked for D3 performance
# [petch] (2014-03-24)
#   Wine 1.5.5-DiabloIII_v3 => 1.7.15 (DarkNekros)
# [SuperPlumus] (2013-06-08 17-14)
#   gettext + clean
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Diablo III 64-bit"
WORKING_WINE_VERSION="2.4-staging"
EDITOR="Blizzard Entertainment Inc."
EDITOR_URL="http://www.blizzard.com"
PREFIX="DiabloIII-64bit"
AUTHOR="RavonTUS, SomeGuy42 and the POL Community"
  
POL_GetSetupImages "http://media.blizzard.com/d3/media/artwork/artwork-templar-large.jpg" "https://2.bp.blogspot.com/-c8MeJxIShqQ/WHkheS9i48I/AAAAAAAAAF0/pka7KSf-OA4yBePsdz6sSSHFkh2fi3PfACLcB/s1600/BN.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 1195
POL_Debug_Init
  
POL_Debug_Message "Starting Install -----------------------------"
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "$AUTHOR" "$PREFIX"
  
#POL_System_SetArch "x86"
POL_System_SetArch "amd64"
POL_System_TmpCreate "$PREFIX"
  
POL_SetupWindow_message "$(eval_gettext 'NOTICE: This will install the Battle.net application first and configure the settings for Diablo 3.')\n\n$(eval_gettext 'The Battle.net install may take longer than expected to complete, but it usually works. For example if it appears not to continue at the Installation Location window, wait a couple minutes and try clicking the Continue button again.')"
  
POL_Debug_Message "Downloading Install File -------------"
cd "$POL_System_TmpDir"
# Battle.net now has a universal installer with language selection at start
POL_Download "https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=BATTLENET_APP/Battle.net-Setup.exe"
SetupIs="$POL_System_TmpDir/Battle.net-Setup.exe"
  
# Removed the DVD option as it has a really old installer and game files and isn't worth using IMHO
  
POL_Debug_Message "Creating Wine Install ------------------------"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
  
POL_Debug_Message "Setting Wine Variables -----------------------"
# win7 has better D3 performance but issues with battle.net-need to turn browser hardware acceleration off in B.net
Set_OS "win10"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-conio-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-process-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-convert-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-runtime-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-environment-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-stdio-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-filesystem-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-string-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-heap-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-time-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-locale-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-utility-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-math-l1-1-0"  
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-multibyte-l1-1-0"    
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-private-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
POL_Wine_OverrideDLL "native,builtin" "ucrtbase"
POL_Wine_OverrideDLL "native,builtin" "msvcp120" "msvcp140" "msvcr120"
POL_Wine_OverrideDLL "native,builtin" "d3dcompiler_47"
 
# Dependencies (04-JAN-2017)
POL_Call POL_Install_corefonts
POL_Call POL_install_tahoma
POL_Call POL_install_tahoma2
POL_Call POL_Install_RegisterFonts
POL_Call POL_install_gdiplus
POL_Call POL_install_gecko
POL_Call POL_install_dxfullsetup
POL_Call POL_Install_d3dx11
POL_Call POL_Install_vcrun2013
#NVidian option below...
#POL_Call POL_Install_physx
#The following fails to install (MD5 hash issue) as of 04-JAN-2017, I think it would have help remove some errors at the start of the client, but runs ok without it
#POL_Call POL_Install_wininet
  
POL_Debug_Message "Running Install File -------------------------"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"
  
POL_SetupWindow_VMS "1024"
POL_System_TmpDelete
  
POL_Debug_Message "Creating Shortcut ----------------------------"
POL_Shortcut "Battle.net Launcher.exe"  "$TITLE" "" "" "Game"
  
POL_Debug_Message "Install Completed ----------------------------"
  
POL_SetupWindow_message "$(eval_gettext 'Battle.net Installation Complete')\n\n$(eval_gettext 'IMPORTANT: Please start the application and disable -Use browser hardware acceleration- under Settings (gear icon upper right) ->Advanced and restart the app. THEN login to Battle.net and download/locate the $TITLE game files.')\n\n$(eval_gettext 'TIP: In the Battle.net application you may need to move the mouse into the content of the drop menus for them to show.')"

POL_SetupWindow_message "$(eval_gettext 'After Diablo III Installation Complete')\n\n$(eval_gettext 'BETA: The 64-bit may or may not work with yet. (I currently get Unable to initialize D3D).  If it fails, switch to the 32-bit client.')\n\n$(eval_gettext 'IMPORTANT: Please change to the 32-bit client by starting Battle.net. Click the Options (gear icon below logo). You may need to click and move the mouse down, in order for the menu to appear. Click Game Settings, then put a check mark in the Launch 32-bit client (instead of 64-bit).  Then click Done.')"

POL_SetupWindow_message "$(eval_gettext 'Improve performance after the install, Go to Configure, Select that version under Wine Version, Right click on Diablo II for Configure Wine, Click on Staging Tab, Check Enable_CSMT for better graphic performance, then OK')"
  
POL_SetupWindow_Close
exit 0

Replies

Monday 17 April 2017 at 4:17 -
Just a mental note:
Monday 17 April 2017 at 4:18 -
Error:
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so:
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so:

Fix:
sudo apt-get install p11-kit:i386
sudo apt-get libp11-kit-gnome-keyring:i386
Monday 17 April 2017 at 4:18 -
Error:
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so:
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so:

Fix:
sudo apt-get install p11-kit:i386
sudo apt-get libp11-kit-gnome-keyring:i386
Monday 17 April 2017 at 4:19 -
Error:
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so:
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so:

Fix:
sudo apt-get install p11-kit:i386
sudo apt-get libp11-kit-gnome-keyring:i386
Monday 17 April 2017 at 4:19 -
Error:
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so:
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so:

Fix:
sudo apt-get install p11-kit:i386
sudo apt-get libp11-kit-gnome-keyring:i386
Monday 17 April 2017 at 4:19 -
Error:
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so:
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so:

Fix:
sudo apt-get install p11-kit:i386
sudo apt-get libp11-kit-gnome-keyring:i386
Monday 17 April 2017 at 4:19 -
Error:
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so:
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so:

Fix:
sudo apt-get install p11-kit:i386
sudo apt-get libp11-kit-gnome-keyring:i386
Monday 17 April 2017 at 4:19 -
Error:
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so:
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so:

Fix:
sudo apt-get install p11-kit:i386
sudo apt-get libp11-kit-gnome-keyring:i386
Monday 17 April 2017 at 4:19 -
Error:
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/p11-kit-trust.so:
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so:

Fix:
sudo apt-get install p11-kit:i386
sudo apt-get libp11-kit-gnome-keyring:i386
Monday 17 April 2017 at 4:24 -
Sorry for so many repeats, that was kinda weird..
Thursday 20 April 2017 at 4:10 -
err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.

sudo apt install winbind
Cronck Monday 27 March 2017 at 17:44
Cronck Anonymous

Message

Diablo 3 Settings

 

POL – 4.2.10

Wine – 2.3

win Ver – win xp

Linux Ver – Linux Mint 17.3

Library Settings – look below

 

Once a D3 install fails I logged into POL and hit configure, then went to the D3 drive.

 

Once on the setting for that drive I changed the wine version to 2.3 then I copied Library settings from Heroes of the Storm ( this works on my PC so thought I would try it) if you have never done this go to that drive, just click on it from the left side. Under the “General” tab is where you will change the wine version. Then u should see some tabs, at the top right, click on the “wine” tab. Then “Configure Wine” next click on “libraries” tab. ADD these under New override for Library:

 

 

api-ms-win-crt-convert-|1-1-0 (native, builtin)

api-ms-win-crt-heap-|1-1-0 (native, builtin)

api-ms-win-crt-locale-|1-1-0 (native, builtin)

api-ms-win-crt-runtime-|1-1-0 (native, builtin)

api-ms-win-crt-stdio-|1-1-0 (native, builtin)

d3d11 (disabled)

d3dcompiler_47 (native, builtin)

msvcp140 (native, builtin)

ucrtbase (native, builtin)

vcruntime140 (native, builtin)

 

now apply and close this window, on the PlayOnLinux Configuration window gp to the “Miscellaneous” Tab click the button that says “Run a .exe file in this virtual drive”

 

Select the Diablo 3 .exe that you downloaded from the Blizzard website. Install the game fully, then close battle net

 

On the left side of POL Configure select the 32 bit D3 drive and click make new shortcut from this drive, I then selected “Diablo 3 Launcher.exe”

 

I can now launch D3 from the desktop. Please keep in mind this is all done with the patch in between seasons 9 and 10. ver 2.5.0.

 

Good luck!

Cronck

Replies

Anonymous
Tuesday 28 March 2017 at 22:57 -
Super :))) Hematosa
Anonymous
Thursday 30 March 2017 at 7:01 -
Just to piggy back on this, I didn't have HOTS installed, but I went through it's launcher, installed bnet, and then installed diablo instead of HoTS. I then closed out of it, went into "Heroes of the storm" -> "configure" -> "wine version" and selected 2.4. From there I also continued into "wine" -> "configure wine" -> "libraries" and added msvcp140 as native, builtin.
Anonymous
Thursday 30 March 2017 at 7:02 -
Accidentally hit enter too early and cant edit.. but those changes all allowed me to play diablo 3 without hassle. I don't know what the FPS usually looked like but I was getting ~45-60 while playing, which wasn't too bad. Also note, before doing the above changes I wasn't able to log into bnet at all.
Anonymous
Monday 3 April 2017 at 8:17 -
Thank you! The above post worked for me on Xubuntu 16.04! :)
Anonymous
Tuesday 4 April 2017 at 10:23 -
I can't get the above to work on Ubuntu 16.04, weird, neither can I get it to work on my friend's Xubuntu 16.04. I get an error message involving the battle.net helper when it is time to log in.
gandor Monday 27 March 2017 at 17:15
gandor Anonymous

Message

After updating Diablo III to Patch 2.5.0 Diablo III gives error code 7 when trying to login.

running wine 2.4 staging

I can't get the battle.net app to login either.

Has anyone else had this issue? 

Replies

Anonymous
Friday 31 March 2017 at 8:48 -
I keep getting this error
Anonymous
Friday 31 March 2017 at 8:49 -
err:winediag:schan_imp_init Failed to load libgnutls, secure connections will not be available.
Anonymous
Friday 31 March 2017 at 8:50 -
yes I have libgnutls 3.5.10 installed
capSAR Monday 20 March 2017 at 16:33
capSAR Anonymous

Message

With the release of Wine 2.4 and full support for Diablo 3 (according to wine's patch notes), I will try to update this script to simply use the latest version of Wine to see if I can get the 64-bit client running. If it works, I'll submit an improvement.

Replies

Anonymous
Monday 27 March 2017 at 15:39 -
nice!
RavonTUS Saturday 7 January 2017 at 7:14
RavonTUS

Warning

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

Message

Greetings,

Oh, I feel like I am so close to getting the new Diablo patch 2.4.3 64-bit client to work.  Battle.net will now install as a 64-bit application.  Diablo, however, starts the 64-bit client and give me the error "Diablo III was unable to initialize D3D."  The good news, is I can switch the the 32-bit with-in the Battle.net menu and it will work just fine.

It is probably best, to use the previous install for consistency, because it is setup for just 32-bit.  But if you want to play around and give the 64-bit a try, here you go.

Inline image

-RavonTUS

 

Differences

@@ -1,66 +1,109 @@
-#!/bin/bash
-
+#!/usr/bin/env playonlinux-bash
+# Date : (2017-01-06)
+# Wine version used : 2.0-rc3-staging
+# Distribution used to test : Ubuntu 16.04 LTS
+# NVidia GeForce GTX 960/PCIe/SSE2
+# AMD FX(tm)-6300 Six-Core Processor × 6 
+  
 # CHANGELOG
-# [SuperPlumus] (2013-06-08 17-14)
-#   gettext + clean
+# [RavonTUS] (06-JAN-2017)
+#  added Dependencies to improve the install
+#  Wine 1.7.15 => 2.0-rc3-staging
+#  Battle.Net Patch 1.5.2.8180
+#  Diablo 3 Patch 2.4.3 (64-bit Client)
+#  NVidia GeForce GTX 960/PCIe/SSE2
+#  AMD FX(tm)-6300 Six-Core Processor × 6 
+# [SomeGuy42] (2016-11-22)
+#   Wine 1.7.15 => 1.9.23
+#   Battle.net Patch 1.5.2 Build 8142
+#   Diablo 3  v2.4.2.41394
+#   Notes: install tweaked for D3 performance
 # [petch] (2014-03-24)
 #   Wine 1.5.5-DiabloIII_v3 => 1.7.15 (DarkNekros)
-
+# [SuperPlumus] (2013-06-08 17-14)
+#   gettext + clean
+  
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
-TITLE="Diablo III"
-WORKING_WINE_VERSION="1.7.15"
-EDITOR="Blizzard"
+  
+TITLE="Diablo III 64-bit"
+WORKING_WINE_VERSION="2.0-rc3-staging"
+EDITOR="Blizzard Entertainment Inc."
 EDITOR_URL="http://www.blizzard.com"
-PREFIX="DiabloIII"
-
+PREFIX="DiabloIII64bit"
+AUTHOR="RavonTUS, SomeGuy42 and the POL Community"
+  
+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 1195
 POL_Debug_Init
-
-POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "" "$PREFIX"
-
-POL_System_SetArch "x86"
-
-if [ "$POL_SELECTED_FILE" ]; then
-    SetupIs="$POL_SELECTED_FILE"
-else
-    POL_SetupWindow_InstallMethod "LOCAL,DVD"
-
-    if [ "$INSTALL_METHOD" = "LOCAL" ]; then
-        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file downloaded on $EDITOR website')" "$TITLE"
-        SetupIs="$APP_ANSWER"
-    fi
-    if [ "$INSTALL_METHOD" = "DVD" ]; then
-        POL_SetupWindow_cdrom
-        POL_Call POL_Sudo_UnhideCdrom
-        POL_SetupWindow_check_cdrom "Diablo III Setup.exe"
-        SetupIs="$CDROM/Diablo III Setup.exe"
-    fi
-fi
-
+  
+POL_Debug_Message "Starting Install -----------------------------"
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "$AUTHOR" "$PREFIX"
+  
+#POL_System_SetArch "x86"
+POL_System_SetArch "amd64"
+POL_System_TmpCreate "$PREFIX"
+  
+POL_SetupWindow_message "$(eval_gettext 'NOTICE: This will install the Battle.net application first and configure the settings for Diablo 3.')\n\n$(eval_gettext 'The Battle.net install may take longer than expected to complete, but it usually works. For example if it appears not to continue at the Installation Location window, wait a couple minutes and try clicking the Continue button again.')"
+  
+POL_Debug_Message "Downloading Install File -------------"
+cd "$POL_System_TmpDir"
+# Battle.net now has a universal installer with language selection at start
+POL_Download "https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=BATTLENET_APP/Battle.net-Setup.exe"
+SetupIs="$POL_System_TmpDir/Battle.net-Setup.exe"
+  
+# Removed the DVD option as it has a really old installer and game files and isn't worth using IMHO
+  
+POL_Debug_Message "Creating Wine Install ------------------------"
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+  
+POL_Debug_Message "Setting Wine Variables -----------------------"
+# win7 has better D3 performance but issues with battle.net-need to turn browser hardware acceleration off in B.net
+Set_OS "win10"
+POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-runtime-l1-1-0" "api-ms-win-crt-stdio-l1-1-0"
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-heap-l1-1-0" "api-ms-win-crt-locale-l1-1-0"
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-math-l1-1-0"
+POL_Wine_OverrideDLL "native,builtin" "d3dcompiler_47"
+POL_Wine_OverrideDLL "native,builtin" "msvcp140" "msvcp100" "msvcr90"
+POL_Wine_OverrideDLL "native,builtin" "winhttp" "wininet"
+POL_Wine_OverrideDLL "native,builtin" "ucrtbase"
+ 
+# Dependencies (04-JAN-2017)
+POL_Call POL_Install_corefonts
+POL_Call POL_install_tahoma
+POL_Call POL_install_tahoma2
+POL_Call POL_Install_RegisterFonts
+POL_Call POL_install_gdiplus
+POL_Call POL_install_gecko
+POL_Call POL_Install_riched20
+POL_Call POL_Install_riched30
+POL_Call POL_install_dxfullsetup
+POL_Call POL_Install_d3dx11
+POL_Call POL_Install_vcrun2013
+POL_Call POL_Install_Physx
+#The following fails to install (Cannot verify hash) as of 04-JAN-2017, I think it would have help remove some errors at the start of the client, but runs ok without it
+#POL_Call POL_Install_winhttp	#bug 5221 2016-03-07
+#POL_Call POL_Install_wininet	#bug 5414 2016-12-05
 
-POL_Call POL_Install_vcrun2008
-
+  
+POL_Debug_Message "Running Install File -------------------------"
 POL_Wine_WaitBefore "$TITLE"
 POL_Wine "$SetupIs"
-while [ ! -e "$WINEPREFIX/drive_c/$PROGRAMFILES/Diablo III/Diablo III Launcher.exe" ]; do
-    sleep 10
-done
-
-POL_Shortcut "Diablo III Launcher.exe"  "$TITLE"
-POL_Shortcut_InsertBeforeWine "$TITLE" '#taskset -pc 0 $$'
-[ "$AMD64_COMPATIBLE" == "True" ] && POL_Shortcut_InsertBeforeWine "$TITLE" 'BEFORE_WINE="setarch i386 -3 -L -B -R"'
-
-if [ "$INSTALL_METHOD" = "DVD" ]; then
-    POL_Call POL_Sudo_RehideCdrom
-fi
-
+  
 POL_SetupWindow_VMS "1024"
+POL_System_TmpDelete
+  
+POL_Debug_Message "Creating Shortcut ----------------------------"
+POL_Shortcut "Battle.net Launcher.exe"  "$TITLE" "" "" "Game"
+  
+POL_Debug_Message "Install Completed ----------------------------"
+  
+POL_SetupWindow_message "$(eval_gettext 'Battle.net Installation Complete')\n\n$(eval_gettext 'IMPORTANT: Please start the application and disable -Use browser hardware acceleration- under Settings (gear icon upper right) ->Advanced and restart the app. THEN login to Battle.net and download/locate the $TITLE game files.')\n\n$(eval_gettext 'TIP: In the Battle.net application you may need to move the mouse into the content of the drop menus for them to show.')"
 
-POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed.\n\nA special thank to Erich Hoover for his wine patch (AcceptEx Fix)')\n\n$(eval_gettext 'If you have Error 3007 on connecting, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"
-
+POL_SetupWindow_message "$(eval_gettext 'After Diablo III Installation Complete')\n\n$(eval_gettext 'BETA: The 64-bit may or may not work with yet. (I currently get Unable to initialize D3D).  If it fails, switch to the 32-bit client.')\n\n$(eval_gettext 'IMPORTANT: Please change to the 32-bit client by starting Battle.net. Click the Options (gear icon below logo). You may need to click and move the mouse down, in order for the menu to appear. Click Game Settings, then put a check mark in the Launch 32-bit client (instead of 64-bit).  Then click Done.')"
+  
 POL_SetupWindow_Close
 exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2017-01-06)
# Wine version used : 2.0-rc3-staging
# Distribution used to test : Ubuntu 16.04 LTS
# NVidia GeForce GTX 960/PCIe/SSE2
# AMD FX(tm)-6300 Six-Core Processor × 6 
  
# CHANGELOG
# [RavonTUS] (06-JAN-2017)
#  added Dependencies to improve the install
#  Wine 1.7.15 => 2.0-rc3-staging
#  Battle.Net Patch 1.5.2.8180
#  Diablo 3 Patch 2.4.3 (64-bit Client)
#  NVidia GeForce GTX 960/PCIe/SSE2
#  AMD FX(tm)-6300 Six-Core Processor × 6 
# [SomeGuy42] (2016-11-22)
#   Wine 1.7.15 => 1.9.23
#   Battle.net Patch 1.5.2 Build 8142
#   Diablo 3  v2.4.2.41394
#   Notes: install tweaked for D3 performance
# [petch] (2014-03-24)
#   Wine 1.5.5-DiabloIII_v3 => 1.7.15 (DarkNekros)
# [SuperPlumus] (2013-06-08 17-14)
#   gettext + clean
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Diablo III 64-bit"
WORKING_WINE_VERSION="2.0-rc3-staging"
EDITOR="Blizzard Entertainment Inc."
EDITOR_URL="http://www.blizzard.com"
PREFIX="DiabloIII64bit"
AUTHOR="RavonTUS, SomeGuy42 and the POL Community"
  
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 1195
POL_Debug_Init
  
POL_Debug_Message "Starting Install -----------------------------"
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "$AUTHOR" "$PREFIX"
  
#POL_System_SetArch "x86"
POL_System_SetArch "amd64"
POL_System_TmpCreate "$PREFIX"
  
POL_SetupWindow_message "$(eval_gettext 'NOTICE: This will install the Battle.net application first and configure the settings for Diablo 3.')\n\n$(eval_gettext 'The Battle.net install may take longer than expected to complete, but it usually works. For example if it appears not to continue at the Installation Location window, wait a couple minutes and try clicking the Continue button again.')"
  
POL_Debug_Message "Downloading Install File -------------"
cd "$POL_System_TmpDir"
# Battle.net now has a universal installer with language selection at start
POL_Download "https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=BATTLENET_APP/Battle.net-Setup.exe"
SetupIs="$POL_System_TmpDir/Battle.net-Setup.exe"
  
# Removed the DVD option as it has a really old installer and game files and isn't worth using IMHO
  
POL_Debug_Message "Creating Wine Install ------------------------"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
  
POL_Debug_Message "Setting Wine Variables -----------------------"
# win7 has better D3 performance but issues with battle.net-need to turn browser hardware acceleration off in B.net
Set_OS "win10"
POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-runtime-l1-1-0" "api-ms-win-crt-stdio-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-heap-l1-1-0" "api-ms-win-crt-locale-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-math-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "d3dcompiler_47"
POL_Wine_OverrideDLL "native,builtin" "msvcp140" "msvcp100" "msvcr90"
POL_Wine_OverrideDLL "native,builtin" "winhttp" "wininet"
POL_Wine_OverrideDLL "native,builtin" "ucrtbase"
 
# Dependencies (04-JAN-2017)
POL_Call POL_Install_corefonts
POL_Call POL_install_tahoma
POL_Call POL_install_tahoma2
POL_Call POL_Install_RegisterFonts
POL_Call POL_install_gdiplus
POL_Call POL_install_gecko
POL_Call POL_Install_riched20
POL_Call POL_Install_riched30
POL_Call POL_install_dxfullsetup
POL_Call POL_Install_d3dx11
POL_Call POL_Install_vcrun2013
POL_Call POL_Install_Physx
#The following fails to install (Cannot verify hash) as of 04-JAN-2017, I think it would have help remove some errors at the start of the client, but runs ok without it
#POL_Call POL_Install_winhttp        #bug 5221 2016-03-07
#POL_Call POL_Install_wininet        #bug 5414 2016-12-05

  
POL_Debug_Message "Running Install File -------------------------"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"
  
POL_SetupWindow_VMS "1024"
POL_System_TmpDelete
  
POL_Debug_Message "Creating Shortcut ----------------------------"
POL_Shortcut "Battle.net Launcher.exe"  "$TITLE" "" "" "Game"
  
POL_Debug_Message "Install Completed ----------------------------"
  
POL_SetupWindow_message "$(eval_gettext 'Battle.net Installation Complete')\n\n$(eval_gettext 'IMPORTANT: Please start the application and disable -Use browser hardware acceleration- under Settings (gear icon upper right) ->Advanced and restart the app. THEN login to Battle.net and download/locate the $TITLE game files.')\n\n$(eval_gettext 'TIP: In the Battle.net application you may need to move the mouse into the content of the drop menus for them to show.')"

POL_SetupWindow_message "$(eval_gettext 'After Diablo III Installation Complete')\n\n$(eval_gettext 'BETA: The 64-bit may or may not work with yet. (I currently get Unable to initialize D3D).  If it fails, switch to the 32-bit client.')\n\n$(eval_gettext 'IMPORTANT: Please change to the 32-bit client by starting Battle.net. Click the Options (gear icon below logo). You may need to click and move the mouse down, in order for the menu to appear. Click Game Settings, then put a check mark in the Launch 32-bit client (instead of 64-bit).  Then click Done.')"
  
POL_SetupWindow_Close
exit 0

Replies

Friday 13 January 2017 at 14:06 -
I noticed this in my log file, maybe it is the reason I cannot get D3D to start...> OpenGL libs
check_dd_x86 missing, test skipped
check_dd_amd64 missing, test skipped
Anonymous
Saturday 21 January 2017 at 16:01 -
Bonjour tous le monde, j'essaye depuis quelques jours de me débrouillé seul pour résoudre ce problème mais en vain. Lorsque je click sur le lien " essayer ce patch " un fenêtre s'ouvre pour m'avertir que le script n'est pas validé etc .. Cette fenêtre est trop petite et ne me permet pas de cliquer sur " suivant " ou " annuler " ces boutons n'existe pas.. j'ai aussi essayé au clavier mais rien de mieux. Je n'est pas trouver de sections relatifs a l'usage du site en tous cas à ces boutons " installer " ou "essayer " . Si quelqu'un a une idée.
Anonymous
Friday 27 January 2017 at 20:00 -
As I previously mentioned, the D3 64-bit client uses DX11 and there is no real DX11 support in wine. All the dev forums say this will most likely never happen as dx11 requires direct access to the hardware, which is in itself not how wine works. I too had the battle.net 64bit client working, but don't think it helps anything to then only use the 32-bit game client. I mostly launch d3 directly anyway, avoiding any overhead of running battle.net altogether.
Saturday 28 January 2017 at 2:04 -
@fixintox
Saturday 28 January 2017 at 2:08 -
@fixintox, click "New source code" and copy code. Save as a file on your computer. Next in PlayOnLinux clidk "Tools", then "run local script".
Anonymous
Monday 20 February 2017 at 12:41 -
Well, I'm glad to be somewhat wrong... Got D3 running in 64-bit mode (2.1 staging) but performance of dx11 is unplayable for me. But it works!
Anonymous
Saturday 1 April 2017 at 13:05 -
@RavonTUS Thanks !
RavonTUS Thursday 5 January 2017 at 14:20
RavonTUS

Warning

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

Message

Greetings,

I had to reinstall Diablo III recently and found by adding these "Dependencies" it installs more consistantly.  Keep in mind, this is for the 32-bit version of DIII client - Patch 2.4.3.

Also, to improve performance after the install...

  • Go to Configure
  • Select that version under "Wine Version"
  • Right click on Diablo II for "Configure Wine"
  • Click on Staging Tab
  • Check "Enable_CSMT for better graphic performance", then OK 

-RavonTUS

Differences

@@ -1,66 +1,97 @@
-#!/bin/bash
-
+#!/usr/bin/env playonlinux-bash
+# Date : (2017-01-05)
+# Wine version used : 2.0-rc2-staging
+# Distribution used to test : Ubuntu 16.04 LTS
+ 
 # CHANGELOG
-# [SuperPlumus] (2013-06-08 17-14)
-#   gettext + clean
+# [RavonTUS] (05-JAN-2017)
+#  added Dependencies to improve the install
+#  Wine 1.7.15 => 2.0-rc2-staging
+#  Battle.Net Patch ??
+# Diablo 3 Patch 2.4.3 (32-bit Client)
+# [SomeGuy42] (2016-11-22)
+#   Wine 1.7.15 => 1.9.23
+#   Battle.net Patch 1.5.2 Build 8142
+#   Diablo 3  v2.4.2.41394
+#   Notes: install tweaked for D3 performance
 # [petch] (2014-03-24)
 #   Wine 1.5.5-DiabloIII_v3 => 1.7.15 (DarkNekros)
-
+# [SuperPlumus] (2013-06-08 17-14)
+#   gettext + clean
+ 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
-TITLE="Diablo III"
-WORKING_WINE_VERSION="1.7.15"
-EDITOR="Blizzard"
+ 
+TITLE="Diablo III 32-bit"
+WORKING_WINE_VERSION="2.0-rc2-staging"
+EDITOR="Blizzard Entertainment Inc."
 EDITOR_URL="http://www.blizzard.com"
-PREFIX="DiabloIII"
-
+PREFIX="DiabloIII-32bit"
+AUTHOR="RavonTUS, SomeGuy42 and the POL Community"
+ 
+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 1195
 POL_Debug_Init
-
-POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "" "$PREFIX"
-
+ 
+POL_Debug_Message "Starting Install -----------------------------"
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "$AUTHOR" "$PREFIX"
+ 
 POL_System_SetArch "x86"
-
-if [ "$POL_SELECTED_FILE" ]; then
-    SetupIs="$POL_SELECTED_FILE"
-else
-    POL_SetupWindow_InstallMethod "LOCAL,DVD"
-
-    if [ "$INSTALL_METHOD" = "LOCAL" ]; then
-        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file downloaded on $EDITOR website')" "$TITLE"
-        SetupIs="$APP_ANSWER"
-    fi
-    if [ "$INSTALL_METHOD" = "DVD" ]; then
-        POL_SetupWindow_cdrom
-        POL_Call POL_Sudo_UnhideCdrom
-        POL_SetupWindow_check_cdrom "Diablo III Setup.exe"
-        SetupIs="$CDROM/Diablo III Setup.exe"
-    fi
-fi
-
+#POL_System_SetArch "amd64"
+POL_System_TmpCreate "$PREFIX"
+ 
+POL_SetupWindow_message "$(eval_gettext 'NOTICE: This will install the Battle.net application first and configure the settings for Diablo 3.')\n\n$(eval_gettext 'The Battle.net install may take longer than expected to complete, but it usually works. For example if it appears not to continue at the Installation Location window, wait a couple minutes and try clicking the Continue button again.')"
+ 
+POL_Debug_Message "Downloading Install File -------------"
+cd "$POL_System_TmpDir"
+# Battle.net now has a universal installer with language selection at start
+POL_Download "https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=BATTLENET_APP/Battle.net-Setup.exe"
+SetupIs="$POL_System_TmpDir/Battle.net-Setup.exe"
+ 
+# Removed the DVD option as it has a really old installer and game files and isn't worth using IMHO
+ 
+POL_Debug_Message "Creating Wine Install ------------------------"
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
-POL_Call POL_Install_vcrun2008
-
+ 
+POL_Debug_Message "Setting Wine Variables -----------------------"
+POL_Debug_Message "Setting Wine Variables -----------------------"
+# win7 has better D3 performance but issues with battle.net-need to turn browser hardware acceleration off in B.net
+Set_OS "win10"
+POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-runtime-l1-1-0" "ucrtbase" "api-ms-win-crt-stdio-l1-1-0"
+POL_Wine_OverrideDLL "native,builtin" "d3dcompiler_47"
+POL_Wine_OverrideDLL "native,builtin" "msvcp140" "msvcp100" "msvcr90"
+
+# Dependencies (04-JAN-2017)
+POL_Call POL_Install_corefonts
+POL_Call POL_install_tahoma
+POL_Call POL_install_tahoma2
+POL_Call POL_Install_RegisterFonts
+POL_Call POL_install_gdiplus
+POL_Call POL_install_gecko
+POL_Call POL_Install_riched20
+POL_Call POL_Install_riched30
+POL_Call POL_install_dxfullsetup
+POL_Call POL_Install_d3dx11
+POL_Call POL_Install_vcrun2013
+#The following fails to install (MD5 hash issue) as of 04-JAN-2017, I think it would have help remove some errors at the start of the client, but runs ok without it
+#POL_Call POL_Install_wininet 
+ 
+POL_Debug_Message "Running Install File -------------------------"
 POL_Wine_WaitBefore "$TITLE"
 POL_Wine "$SetupIs"
-while [ ! -e "$WINEPREFIX/drive_c/$PROGRAMFILES/Diablo III/Diablo III Launcher.exe" ]; do
-    sleep 10
-done
-
-POL_Shortcut "Diablo III Launcher.exe"  "$TITLE"
-POL_Shortcut_InsertBeforeWine "$TITLE" '#taskset -pc 0 $$'
-[ "$AMD64_COMPATIBLE" == "True" ] && POL_Shortcut_InsertBeforeWine "$TITLE" 'BEFORE_WINE="setarch i386 -3 -L -B -R"'
-
-if [ "$INSTALL_METHOD" = "DVD" ]; then
-    POL_Call POL_Sudo_RehideCdrom
-fi
-
+ 
 POL_SetupWindow_VMS "1024"
-
-POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed.\n\nA special thank to Erich Hoover for his wine patch (AcceptEx Fix)')\n\n$(eval_gettext 'If you have Error 3007 on connecting, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"
-
+POL_System_TmpDelete
+ 
+POL_Debug_Message "Creating Shortcut ----------------------------"
+POL_Shortcut "Battle.net Launcher.exe"  "$TITLE" "" "" "Game"
+ 
+POL_Debug_Message "Install Completed ----------------------------"
+ 
+POL_SetupWindow_message "$(eval_gettext 'Battle.net Installation Complete')\n\n$(eval_gettext 'IMPORTANT: Please start the application and disable -Use browser hardware acceleration- under Settings(gear icon upper right)->Advanced and restart the app. THEN login to Battle.net and download/locate the $TITLE game files.')\n\n$(eval_gettext 'TIP: In the Battle.net application you may need to move the mouse into the content of the drop menus for them to show.')"
+ 
 POL_SetupWindow_Close
 exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2017-01-05)
# Wine version used : 2.0-rc2-staging
# Distribution used to test : Ubuntu 16.04 LTS
 
# CHANGELOG
# [RavonTUS] (05-JAN-2017)
#  added Dependencies to improve the install
#  Wine 1.7.15 => 2.0-rc2-staging
#  Battle.Net Patch ??
# Diablo 3 Patch 2.4.3 (32-bit Client)
# [SomeGuy42] (2016-11-22)
#   Wine 1.7.15 => 1.9.23
#   Battle.net Patch 1.5.2 Build 8142
#   Diablo 3  v2.4.2.41394
#   Notes: install tweaked for D3 performance
# [petch] (2014-03-24)
#   Wine 1.5.5-DiabloIII_v3 => 1.7.15 (DarkNekros)
# [SuperPlumus] (2013-06-08 17-14)
#   gettext + clean
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Diablo III 32-bit"
WORKING_WINE_VERSION="2.0-rc2-staging"
EDITOR="Blizzard Entertainment Inc."
EDITOR_URL="http://www.blizzard.com"
PREFIX="DiabloIII-32bit"
AUTHOR="RavonTUS, SomeGuy42 and the POL Community"
 
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 1195
POL_Debug_Init
 
POL_Debug_Message "Starting Install -----------------------------"
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "$AUTHOR" "$PREFIX"
 
POL_System_SetArch "x86"
#POL_System_SetArch "amd64"
POL_System_TmpCreate "$PREFIX"
 
POL_SetupWindow_message "$(eval_gettext 'NOTICE: This will install the Battle.net application first and configure the settings for Diablo 3.')\n\n$(eval_gettext 'The Battle.net install may take longer than expected to complete, but it usually works. For example if it appears not to continue at the Installation Location window, wait a couple minutes and try clicking the Continue button again.')"
 
POL_Debug_Message "Downloading Install File -------------"
cd "$POL_System_TmpDir"
# Battle.net now has a universal installer with language selection at start
POL_Download "https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=BATTLENET_APP/Battle.net-Setup.exe"
SetupIs="$POL_System_TmpDir/Battle.net-Setup.exe"
 
# Removed the DVD option as it has a really old installer and game files and isn't worth using IMHO
 
POL_Debug_Message "Creating Wine Install ------------------------"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
POL_Debug_Message "Setting Wine Variables -----------------------"
POL_Debug_Message "Setting Wine Variables -----------------------"
# win7 has better D3 performance but issues with battle.net-need to turn browser hardware acceleration off in B.net
Set_OS "win10"
POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-runtime-l1-1-0" "ucrtbase" "api-ms-win-crt-stdio-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "d3dcompiler_47"
POL_Wine_OverrideDLL "native,builtin" "msvcp140" "msvcp100" "msvcr90"

# Dependencies (04-JAN-2017)
POL_Call POL_Install_corefonts
POL_Call POL_install_tahoma
POL_Call POL_install_tahoma2
POL_Call POL_Install_RegisterFonts
POL_Call POL_install_gdiplus
POL_Call POL_install_gecko
POL_Call POL_Install_riched20
POL_Call POL_Install_riched30
POL_Call POL_install_dxfullsetup
POL_Call POL_Install_d3dx11
POL_Call POL_Install_vcrun2013
#The following fails to install (MD5 hash issue) as of 04-JAN-2017, I think it would have help remove some errors at the start of the client, but runs ok without it
#POL_Call POL_Install_wininet 
 
POL_Debug_Message "Running Install File -------------------------"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"
 
POL_SetupWindow_VMS "1024"
POL_System_TmpDelete
 
POL_Debug_Message "Creating Shortcut ----------------------------"
POL_Shortcut "Battle.net Launcher.exe"  "$TITLE" "" "" "Game"
 
POL_Debug_Message "Install Completed ----------------------------"
 
POL_SetupWindow_message "$(eval_gettext 'Battle.net Installation Complete')\n\n$(eval_gettext 'IMPORTANT: Please start the application and disable -Use browser hardware acceleration- under Settings(gear icon upper right)->Advanced and restart the app. THEN login to Battle.net and download/locate the $TITLE game files.')\n\n$(eval_gettext 'TIP: In the Battle.net application you may need to move the mouse into the content of the drop menus for them to show.')"
 
POL_SetupWindow_Close
exit 0

Replies

Anonymous
Thursday 5 January 2017 at 18:33 -
Thanks RavonTUS!
I tried also to install wininet (due to errors), some time ago and was failing even then. who knows when that'll be straightened out.

tested on 2.0-rc3-staging and working great, patch finally rolled out!
Anonymous
Thursday 5 January 2017 at 18:35 -
I've also tested the 64bit version, but there will most likely never be enough dx11 support in wine to make it possible. It does run (with 32-bit client option turned on in Battle.net settings) but I see no reason to bother with a 64-bit wine when it can only run the 32-bit game anyway.
Anonymous
Saturday 7 January 2017 at 2:58 -
It's working like a charm :)
Anonymous
Sunday 26 March 2017 at 21:06 -
This fails for me on a fresh PlayOnLinux install, get a 404 from blizzard and crashes the installer/any attempts to run it.
SomeGuy42 Monday 28 November 2016 at 20:17
SomeGuy42 Anonymous

Warning

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

Differences

@@ -1,66 +1,76 @@
-#!/bin/bash
+#!/usr/bin/env playonlinux-bash
+# Date : (2016-11-22)
+# Wine version used : 1.9.23
+# Distribution used to test : Ubuntu 16.04 LTS
 
 # CHANGELOG
 # [SuperPlumus] (2013-06-08 17-14)
 #   gettext + clean
 # [petch] (2014-03-24)
 #   Wine 1.5.5-DiabloIII_v3 => 1.7.15 (DarkNekros)
+# [SomeGuy42] (2016-11-22)
+#   Wine 1.7.15 => 1.9.23 
+#   Battle.net Patch 1.5.2 Build 8142 
+#   Diablo 3  v2.4.2.41394
+#   Notes: install tweaked for D3 performance
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
 TITLE="Diablo III"
-WORKING_WINE_VERSION="1.7.15"
-EDITOR="Blizzard"
+WORKING_WINE_VERSION="1.9.23-staging"
+EDITOR="Blizzard Entertainment Inc."
 EDITOR_URL="http://www.blizzard.com"
 PREFIX="DiabloIII"
+AUTHOR="SomeGuy42 and the POL Community"
 
+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 1195
 POL_Debug_Init
 
-POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "" "$PREFIX"
+POL_Debug_Message "Starting Install -----------------------------"
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "$AUTHOR" "$PREFIX"
 
 POL_System_SetArch "x86"
+POL_System_TmpCreate "$PREFIX"
 
-if [ "$POL_SELECTED_FILE" ]; then
-    SetupIs="$POL_SELECTED_FILE"
-else
-    POL_SetupWindow_InstallMethod "LOCAL,DVD"
-
-    if [ "$INSTALL_METHOD" = "LOCAL" ]; then
-        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file downloaded on $EDITOR website')" "$TITLE"
-        SetupIs="$APP_ANSWER"
-    fi
-    if [ "$INSTALL_METHOD" = "DVD" ]; then
-        POL_SetupWindow_cdrom
-        POL_Call POL_Sudo_UnhideCdrom
-        POL_SetupWindow_check_cdrom "Diablo III Setup.exe"
-        SetupIs="$CDROM/Diablo III Setup.exe"
-    fi
-fi
+POL_SetupWindow_message "$(eval_gettext 'NOTICE: This will install the Battle.net application first and configure the settings for Diablo 3.')\n\n$(eval_gettext 'The Battle.net install may take longer than expected to complete, but it usually works. For example if it appears not to continue at the Installation Location window, wait a couple minutes and try clicking the Continue button again.')"
 
+POL_Debug_Message "Downloading Install File -------------"
+cd "$POL_System_TmpDir"
+# Battle.net now has a universal installer with language selection at start
+POL_Download "https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=BATTLENET_APP/Battle.net-Setup.exe"
+SetupIs="$POL_System_TmpDir/Battle.net-Setup.exe"
+
+# Removed the DVD option as it has a really old installer and game files and isn't worth using IMHO
+
+POL_Debug_Message "Creating Wine Install ------------------------"
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
-POL_Call POL_Install_vcrun2008
+POL_Debug_Message "Setting Wine Variables -----------------------"
+# win7 has better D3 performance but issues with battle.net-need to turn browser hardware acceleration off in B.net
+Set_OS "win7"
+POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-runtime-l1-1-0" "ucrtbase" "api-ms-win-crt-stdio-l1-1-0"
+POL_Wine_OverrideDLL "native,builtin" "d3dcompiler_47"
+POL_Wine_OverrideDLL "native,builtin" "msvcp140" "msvcp100" "msvcr90"
+POL_Call POL_Install_corefonts
 
+POL_Debug_Message "Running Install File -------------------------"
 POL_Wine_WaitBefore "$TITLE"
 POL_Wine "$SetupIs"
-while [ ! -e "$WINEPREFIX/drive_c/$PROGRAMFILES/Diablo III/Diablo III Launcher.exe" ]; do
-    sleep 10
-done
-
-POL_Shortcut "Diablo III Launcher.exe"  "$TITLE"
-POL_Shortcut_InsertBeforeWine "$TITLE" '#taskset -pc 0 $$'
-[ "$AMD64_COMPATIBLE" == "True" ] && POL_Shortcut_InsertBeforeWine "$TITLE" 'BEFORE_WINE="setarch i386 -3 -L -B -R"'
-
-if [ "$INSTALL_METHOD" = "DVD" ]; then
-    POL_Call POL_Sudo_RehideCdrom
-fi
 
 POL_SetupWindow_VMS "1024"
+POL_System_TmpDelete
+
+POL_Debug_Message "Creating Shortcut ----------------------------"
+POL_Shortcut "Battle.net Launcher.exe"  "$TITLE" "" "" "Game"
+
+POL_Debug_Message "Install Completed ----------------------------"
 
-POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed.\n\nA special thank to Erich Hoover for his wine patch (AcceptEx Fix)')\n\n$(eval_gettext 'If you have Error 3007 on connecting, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"
+POL_SetupWindow_message "$(eval_gettext 'Battle.net Installation Complete')\n\n$(eval_gettext 'IMPORTANT: Please start the application and disable -Use browser hardware acceleration- under Settings(gear icon upper right)->Advanced and restart the app. THEN login to Battle.net and download/locate the $TITLE game files.')\n\n$(eval_gettext 'TIP: In the Battle.net application you may need to move the mouse into the content of the drop menus for them to show.')"
 
 POL_SetupWindow_Close
 exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2016-11-22)
# Wine version used : 1.9.23
# Distribution used to test : Ubuntu 16.04 LTS

# CHANGELOG
# [SuperPlumus] (2013-06-08 17-14)
#   gettext + clean
# [petch] (2014-03-24)
#   Wine 1.5.5-DiabloIII_v3 => 1.7.15 (DarkNekros)
# [SomeGuy42] (2016-11-22)
#   Wine 1.7.15 => 1.9.23 
#   Battle.net Patch 1.5.2 Build 8142 
#   Diablo 3  v2.4.2.41394
#   Notes: install tweaked for D3 performance

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

TITLE="Diablo III"
WORKING_WINE_VERSION="1.9.23-staging"
EDITOR="Blizzard Entertainment Inc."
EDITOR_URL="http://www.blizzard.com"
PREFIX="DiabloIII"
AUTHOR="SomeGuy42 and the POL Community"

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 1195
POL_Debug_Init

POL_Debug_Message "Starting Install -----------------------------"
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "$AUTHOR" "$PREFIX"

POL_System_SetArch "x86"
POL_System_TmpCreate "$PREFIX"

POL_SetupWindow_message "$(eval_gettext 'NOTICE: This will install the Battle.net application first and configure the settings for Diablo 3.')\n\n$(eval_gettext 'The Battle.net install may take longer than expected to complete, but it usually works. For example if it appears not to continue at the Installation Location window, wait a couple minutes and try clicking the Continue button again.')"

POL_Debug_Message "Downloading Install File -------------"
cd "$POL_System_TmpDir"
# Battle.net now has a universal installer with language selection at start
POL_Download "https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=BATTLENET_APP/Battle.net-Setup.exe"
SetupIs="$POL_System_TmpDir/Battle.net-Setup.exe"

# Removed the DVD option as it has a really old installer and game files and isn't worth using IMHO

POL_Debug_Message "Creating Wine Install ------------------------"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Debug_Message "Setting Wine Variables -----------------------"
# win7 has better D3 performance but issues with battle.net-need to turn browser hardware acceleration off in B.net
Set_OS "win7"
POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-runtime-l1-1-0" "ucrtbase" "api-ms-win-crt-stdio-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "d3dcompiler_47"
POL_Wine_OverrideDLL "native,builtin" "msvcp140" "msvcp100" "msvcr90"
POL_Call POL_Install_corefonts

POL_Debug_Message "Running Install File -------------------------"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"

POL_SetupWindow_VMS "1024"
POL_System_TmpDelete

POL_Debug_Message "Creating Shortcut ----------------------------"
POL_Shortcut "Battle.net Launcher.exe"  "$TITLE" "" "" "Game"

POL_Debug_Message "Install Completed ----------------------------"

POL_SetupWindow_message "$(eval_gettext 'Battle.net Installation Complete')\n\n$(eval_gettext 'IMPORTANT: Please start the application and disable -Use browser hardware acceleration- under Settings(gear icon upper right)->Advanced and restart the app. THEN login to Battle.net and download/locate the $TITLE game files.')\n\n$(eval_gettext 'TIP: In the Battle.net application you may need to move the mouse into the content of the drop menus for them to show.')"

POL_SetupWindow_Close
exit 0

Replies

Anonymous
Monday 28 November 2016 at 20:18 -
Added SetupWindow_SetID
SomeGuy42 Thursday 24 November 2016 at 1:04
SomeGuy42 Anonymous

Warning

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

Differences

@@ -1,66 +1,75 @@
-#!/bin/bash
+#!/usr/bin/env playonlinux-bash
+# Date : (2016-11-22)
+# Wine version used : 1.9.23
+# Distribution used to test : Ubuntu 16.04 LTS
 
 # CHANGELOG
 # [SuperPlumus] (2013-06-08 17-14)
 #   gettext + clean
 # [petch] (2014-03-24)
 #   Wine 1.5.5-DiabloIII_v3 => 1.7.15 (DarkNekros)
+# [SomeGuy42] (2016-11-22)
+#   Wine 1.7.15 => 1.9.23 
+#   Battle.net Patch 1.5.2 Build 8142 
+#   Diablo 3  v2.4.2.41394
+#   Notes: install tweaked for D3 performance
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
 TITLE="Diablo III"
-WORKING_WINE_VERSION="1.7.15"
-EDITOR="Blizzard"
+WORKING_WINE_VERSION="1.9.23-staging"
+EDITOR="Blizzard Entertainment Inc."
 EDITOR_URL="http://www.blizzard.com"
 PREFIX="DiabloIII"
+AUTHOR="SomeGuy42 and the POL Community"
 
+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_Debug_Init
 
-POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "" "$PREFIX"
+POL_Debug_Message "Starting Install -----------------------------"
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "$AUTHOR" "$PREFIX"
 
 POL_System_SetArch "x86"
+POL_System_TmpCreate "$PREFIX"
 
-if [ "$POL_SELECTED_FILE" ]; then
-    SetupIs="$POL_SELECTED_FILE"
-else
-    POL_SetupWindow_InstallMethod "LOCAL,DVD"
-
-    if [ "$INSTALL_METHOD" = "LOCAL" ]; then
-        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file downloaded on $EDITOR website')" "$TITLE"
-        SetupIs="$APP_ANSWER"
-    fi
-    if [ "$INSTALL_METHOD" = "DVD" ]; then
-        POL_SetupWindow_cdrom
-        POL_Call POL_Sudo_UnhideCdrom
-        POL_SetupWindow_check_cdrom "Diablo III Setup.exe"
-        SetupIs="$CDROM/Diablo III Setup.exe"
-    fi
-fi
+POL_SetupWindow_message "$(eval_gettext 'NOTICE: This will install the Battle.net application first and configure the settings for Diablo 3.')\n\n$(eval_gettext 'The Battle.net install may take longer than expected to complete, but it usually works. For example if it appears not to continue at the Installation Location window, wait a couple minutes and try clicking the Continue button again.')"
 
+POL_Debug_Message "Downloading Install File -------------"
+cd "$POL_System_TmpDir"
+# Battle.net now has a universal installer with language selection at start
+POL_Download "https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=BATTLENET_APP/Battle.net-Setup.exe"
+SetupIs="$POL_System_TmpDir/Battle.net-Setup.exe"
+
+# Removed the DVD option as it has a really old installer and game files and isn't worth using IMHO
+
+POL_Debug_Message "Creating Wine Install ------------------------"
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
-POL_Call POL_Install_vcrun2008
+POL_Debug_Message "Setting Wine Variables -----------------------"
+# win7 has better D3 performance but issues with battle.net-need to turn browser hardware acceleration off in B.net
+Set_OS "win7"
+POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
+POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-runtime-l1-1-0" "ucrtbase" "api-ms-win-crt-stdio-l1-1-0"
+POL_Wine_OverrideDLL "native,builtin" "d3dcompiler_47"
+POL_Wine_OverrideDLL "native,builtin" "msvcp140" "msvcp100" "msvcr90"
+POL_Call POL_Install_corefonts
 
+POL_Debug_Message "Running Install File -------------------------"
 POL_Wine_WaitBefore "$TITLE"
 POL_Wine "$SetupIs"
-while [ ! -e "$WINEPREFIX/drive_c/$PROGRAMFILES/Diablo III/Diablo III Launcher.exe" ]; do
-    sleep 10
-done
-
-POL_Shortcut "Diablo III Launcher.exe"  "$TITLE"
-POL_Shortcut_InsertBeforeWine "$TITLE" '#taskset -pc 0 $$'
-[ "$AMD64_COMPATIBLE" == "True" ] && POL_Shortcut_InsertBeforeWine "$TITLE" 'BEFORE_WINE="setarch i386 -3 -L -B -R"'
-
-if [ "$INSTALL_METHOD" = "DVD" ]; then
-    POL_Call POL_Sudo_RehideCdrom
-fi
 
 POL_SetupWindow_VMS "1024"
+POL_System_TmpDelete
+
+POL_Debug_Message "Creating Shortcut ----------------------------"
+POL_Shortcut "Battle.net Launcher.exe"  "$TITLE" "" "" "Game"
+
+POL_Debug_Message "Install Completed ----------------------------"
 
-POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed.\n\nA special thank to Erich Hoover for his wine patch (AcceptEx Fix)')\n\n$(eval_gettext 'If you have Error 3007 on connecting, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"
+POL_SetupWindow_message "$(eval_gettext 'Battle.net Installation Complete')\n\n$(eval_gettext 'IMPORTANT: Please start the application and disable -Use browser hardware acceleration- under Settings(gear icon upper right)->Advanced and restart the app. THEN login to Battle.net and download/locate the $TITLE game files.')\n\n$(eval_gettext 'TIP: In the Battle.net application you may need to move the mouse into the content of the drop menus for them to show.')"
 
 POL_SetupWindow_Close
 exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2016-11-22)
# Wine version used : 1.9.23
# Distribution used to test : Ubuntu 16.04 LTS

# CHANGELOG
# [SuperPlumus] (2013-06-08 17-14)
#   gettext + clean
# [petch] (2014-03-24)
#   Wine 1.5.5-DiabloIII_v3 => 1.7.15 (DarkNekros)
# [SomeGuy42] (2016-11-22)
#   Wine 1.7.15 => 1.9.23 
#   Battle.net Patch 1.5.2 Build 8142 
#   Diablo 3  v2.4.2.41394
#   Notes: install tweaked for D3 performance

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

TITLE="Diablo III"
WORKING_WINE_VERSION="1.9.23-staging"
EDITOR="Blizzard Entertainment Inc."
EDITOR_URL="http://www.blizzard.com"
PREFIX="DiabloIII"
AUTHOR="SomeGuy42 and the POL Community"

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_Debug_Init

POL_Debug_Message "Starting Install -----------------------------"
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "$AUTHOR" "$PREFIX"

POL_System_SetArch "x86"
POL_System_TmpCreate "$PREFIX"

POL_SetupWindow_message "$(eval_gettext 'NOTICE: This will install the Battle.net application first and configure the settings for Diablo 3.')\n\n$(eval_gettext 'The Battle.net install may take longer than expected to complete, but it usually works. For example if it appears not to continue at the Installation Location window, wait a couple minutes and try clicking the Continue button again.')"

POL_Debug_Message "Downloading Install File -------------"
cd "$POL_System_TmpDir"
# Battle.net now has a universal installer with language selection at start
POL_Download "https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=BATTLENET_APP/Battle.net-Setup.exe"
SetupIs="$POL_System_TmpDir/Battle.net-Setup.exe"

# Removed the DVD option as it has a really old installer and game files and isn't worth using IMHO

POL_Debug_Message "Creating Wine Install ------------------------"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Debug_Message "Setting Wine Variables -----------------------"
# win7 has better D3 performance but issues with battle.net-need to turn browser hardware acceleration off in B.net
Set_OS "win7"
POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-runtime-l1-1-0" "ucrtbase" "api-ms-win-crt-stdio-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "d3dcompiler_47"
POL_Wine_OverrideDLL "native,builtin" "msvcp140" "msvcp100" "msvcr90"
POL_Call POL_Install_corefonts

POL_Debug_Message "Running Install File -------------------------"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"

POL_SetupWindow_VMS "1024"
POL_System_TmpDelete

POL_Debug_Message "Creating Shortcut ----------------------------"
POL_Shortcut "Battle.net Launcher.exe"  "$TITLE" "" "" "Game"

POL_Debug_Message "Install Completed ----------------------------"

POL_SetupWindow_message "$(eval_gettext 'Battle.net Installation Complete')\n\n$(eval_gettext 'IMPORTANT: Please start the application and disable -Use browser hardware acceleration- under Settings(gear icon upper right)->Advanced and restart the app. THEN login to Battle.net and download/locate the $TITLE game files.')\n\n$(eval_gettext 'TIP: In the Battle.net application you may need to move the mouse into the content of the drop menus for them to show.')"

POL_SetupWindow_Close
exit 0

Replies

Anonymous
Friday 25 November 2016 at 19:20 -
The DLL overrides are apparently no longer needed with wine 1.9.23 to run D3, but I've so far experienced better overall performance with them.
Difides Friday 30 September 2016 at 0:32
Difides Anonymous

Message

POL installer not working atm

 

Replies

bahia Sunday 28 August 2016 at 9:36
bahia

Message

Do not work anymore. The install fails on selecting the program folder, I can't click on 'continue' button.

Replies

Sunday 28 August 2016 at 9:40 -
P.S. the installation do not finish. PlayOnLinux create the virtual unity but do not finish Battle.net installation. I can click on "continue" button but nothing happens.
Anonymous
Friday 2 September 2016 at 21:09 -
I've had this problem for quite some time. Normally you can just try to install again and it works but a new update to Battle.net has made things a bit more difficult. You can install it by following the outlined instructions in my reply to the post below, it's worked for me and others.
gandor Tuesday 9 August 2016 at 1:58
gandor Anonymous

Message

now have Battle.net launcher working and launching Diablo III !!!!!!!!

wine 1.9.16

windows version: Windows XP

Libraries:

vcruntime140 (native, builtin)
api-ms-win-crt-runtime-l1-1-0 (native, builtin)
d3dcompiler_47 (native, builtin)
msvcp140(native, builtin)

Replies

Anonymous
Tuesday 9 August 2016 at 9:50 -
Still having a problem with the (re)installation, as it is. I'm unsure of the process necessary to set up Wine before running the installation (if, in fact, that is what is necessary to get it installed). I would be eternally (well, for as long as I can comfortably hold out) grateful if someone could walk me through the step necessary to get this game running on my laptop, once again. Eternally. Almost.
Anonymous
Tuesday 9 August 2016 at 9:54 -
steps. I meant, steps. sorry. that was a typo.
Anonymous
Wednesday 10 August 2016 at 12:11 -
Yes! Thank you!
Anonymous
Wednesday 10 August 2016 at 12:49 -
New install in short: (till they update the official installer)

Install like Normal(given PoL DIII installer)

mine always fails during the install around the time you choose a folder for the install.

cancel the frozen install
In play on linux window click on "Configure"
click on DiabloIII and change wine-version to 1.9.16 (install if needed and staging if you prefer CSMT)
Set Video RAM
then click on Wine Configuration

add in Library: (can copy,paste,add)
vcruntime140 (native, builtin)
api-ms-win-crt-runtime-l1-1-0 (native, builtin)
d3dcompiler_47 (native, builtin)
msvcp140(native, builtin)
click ok

close Configureation window
then restart the install by clicking again Install a Program
!!This time click on install a program and isn't on the list.
update an existing program
(show virtual drives) select DiabloIII
no changes
32-bit
load the DIII-setup.exe
finish the install!
Anonymous
Friday 12 August 2016 at 6:59 -
Just want to confirm that I tried this on a fresh install and I got Diablo III working. Haven't tested it extensively yet, but I can walk around Tristam and kick beasties.
Anonymous
Friday 12 August 2016 at 7:00 -
This was on Ubuntu 16.04 btw.
Anonymous
Friday 12 August 2016 at 13:48 -
I have this weird problem, that especially when playing in a group, the icons for gear & resources take forever to appear on screen. (The stash looks empty but can hover over the invisible items) Like they're expected to be cached locally and they're not. When in single player mode this happens much less. Just curious if anyone else has this issue. -Ubuntu 16.04 Wine 1.9.16
Anonymous
Saturday 13 August 2016 at 7:21 -
Thank you so much! I'm following your instructions, as I type this (Configuring- currently installing 1.9.16 :)
Anonymous
Saturday 13 August 2016 at 7:32 -
Confirmed! That worked! Thank you, again! :)
Anonymous
Monday 5 September 2016 at 20:14 -
I can also confirm this works. (Gentoo, ATI Graphics Card)
Anonymous
Sunday 11 September 2016 at 19:24 -
Worked for me, too! Thanks a lot!
Anonymous
Tuesday 1 November 2016 at 15:40 -
Confirmed for 16.10. It's installing! I'm yet to see the gameplay though.
Anonymous
Wednesday 2 November 2016 at 17:34 -
Thanks ! It's work in Fedora 24.
Anonymous
Saturday 5 November 2016 at 19:08 -
That worked for me too, but I had to download the latest install to run during this part of your instructions:
Anonymous
Saturday 5 November 2016 at 19:09 -
close Configureation window
then restart the install by clicking again Install a Program
!!This time click on install a program and isn't on the list.
update an existing program
(show virtual drives) select DiabloIII
no changes
32-bit
load the DIII-setup.exe
finish the install!
Anonymous
Saturday 5 November 2016 at 19:15 -
Playing now and it works when it doesn't work in Windows, has the hanging jitter in Desolate Sands in Windows. But works fine with POL.
Anonymous
Saturday 5 November 2016 at 19:50 -
One problem I am having is that I am getting this error:

Battle.net requires the Windows Secondary Logon service to be enabled.
Errors: BLZBNTBTS0000K, BLZBNTBTS00000025, BLZBNTAGT00000A29

I have Wine configured to use Windows XP when that happens. So I switch to Windows 7 and I get a blank screen that kicks me out to the login when I press Enter. So I switched back to Windows XP and it started working correctly then.
Anonymous
Monday 21 November 2016 at 12:40 -
Thanks for the tip, for whatever reason it defaulted to Win XP for me and just left it, been working great.
Anonymous
Monday 21 November 2016 at 12:47 -
BTW I've since upgrade to Wine 1.9.23 and it's fixed a few annoying bugs for me. Also the next patch (current PTR) is changing to a 64-bit client (yea!) so I'll try and update my instructions when it hits live. It would be nice to get an official POL installer update eventually....
Anonymous
Saturday 18 February 2017 at 16:15 -
After SomeGuy42 workaround open wine configuration for D3 and open miscellaneous and click in open shell
Anonymous
Saturday 18 February 2017 at 16:16 -
Sorry for double post
Anonymous
Saturday 18 February 2017 at 16:18 -
After SomeGuy42 workaround open wine configuration for D3 and open miscellaneous and click in open shell

Type

wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks

chmod +x winetricks

WINEPREFIX=/home/username/.PlayOnLinux/wineprefix/DiabloIII ./winetricks -q vcrun2015

Make sure to change the username for your user and the DiabloII for the correct driver installed.
Anonymous
Thursday 23 March 2017 at 23:52 -
Made an account to confirm, but SomeGuy42 method plus geloramo method above has the installer running. I'm hopefull it will work.
mrvernon Thursday 28 July 2016 at 2:07
mrvernon Anonymous

Message

battle.net installer now cannot complete installation.  Like previous message the installer freezes needs to be re-run then it completes.  Once complete battle.net.exe promptly crashes.  Have reinstalled PoL and the installer a few times.  Any ideas?  Was working fine yesterday.

Replies

Anonymous
Friday 29 July 2016 at 7:42 -
I'm having the same issue. I completed the game (again :D) two nights ago. Yesterday was the first time it didn't load. I didn't think much of it, as I had things I should've been doing anyway (what- I'm the only one who does that. Right.), so I tried running it again, this evening. Same thing happened. I uninstalled it and attempted to reinstall a fresh download of the client. It crashes somewhere around clicking continue at the "Install Location" page. I, too have tried reinstalling PoL.
Anonymous
Friday 29 July 2016 at 15:06 -
I see this is all being worked on across the battle.net spectrum
Anonymous
Friday 29 July 2016 at 20:07 -
Same here, happened right after a new Battle.net update.
Anonymous
Friday 29 July 2016 at 21:36 -
Battle.net updated to vcrun2015... havoc
Anonymous
Saturday 30 July 2016 at 4:17 -
okay, so this will be fixed? (I can't believe how addicted I am to this game. I didn't realize, until I couldn't play it)
Anonymous
Monday 8 August 2016 at 9:34 -
Has anyone had any luck installing, lately?
SomeGuy42 Friday 22 July 2016 at 14:00
SomeGuy42 Anonymous

Message

Kubuntu 16.04, nvidia 361.42. Works even better than before, thanks for hard work guys!

Battle.net installer froze once at beginning of install, cancelled it all out and restarted the install process, no problems afterward.

Replies

Mqestro Friday 10 June 2016 at 19:37
Mqestro Anonymous

Message

Work well with Ubuntu 16.04, GTX 660 (driver 361.42) !

Replies

zaphiel Saturday 23 January 2016 at 0:24
zaphiel Anonymous

Message

It is neccesary install nvidia drivers? or with xorg can works? I try install it but battle.net appears with black screen and i cant install game... :(

Replies

Anonymous
Saturday 23 January 2016 at 0:31 -
I have Debian.
peteh Thursday 14 January 2016 at 10:24
peteh Anonymous

Message

Seems to have stoped working with the recent patch 2.4.

Keeps Freezing, tested on two PCs.

Ubuntu 14.04, Nvidia 352.63, Wine 1.7.15, 1.7.54 and 1.8
 

Replies

winmandrake Monday 11 January 2016 at 1:59
winmandrake Anonymous

Message

Il fonctionne très bien même depuis le simple client Battle.net !

D'ailleurs, pourquoi il n'y a pas d'installateur de ce simple client ?

Replies

dbcomm Tuesday 27 January 2015 at 21:01
dbcomm Anonymous

Message

I am running Linux Mint 17 Qiana with play on linux installed and am trying to run Diablo 3. I have 2 issues when trying to run it the first being the standard "White Screen" issue, I have tried using LIBGL_ALWAYS_SOFTWARE=1 trick and it causes the Blizzard launcher to crash out. The other issue I am trying to resolve which is the worse of the 2 issues is that when I try to run the game through BAttle.net launcher  it tells me I need to update my video drivers, there are none available, NVIDIA GeForce 640M with nvidia 331 drivers which came with Mint. After launching the game I get the Blizard pop-up that says I need to update my drivers, I tell it to proceed anyway and then I get a momentary black screen running then it crashes with a Linux dialog telling me that I ned to update my video drivers. The game ran fine up to Thursday evening and then all of a sudden Friday evening I started gettign this issue. I have all available upates according to the manager and Kernel 3.13.0-44.

Replies

Wednesday 28 January 2015 at 17:06 -
In the future, please post just in one spot; here or the forums. Not both.
z3Kr0w Monday 17 November 2014 at 18:36
z3Kr0w Anonymous

Message

Works fine with Ubuntu 14.10.
Need CompizConfig to be installed, and a little "trick" for going out of the "cropped window mode".
Change "DisplayModeWindowMode" from "0" to "1" in your "D3Prefs.txt" files, and then, inside the game, go back to full screen.

Replies

stylou Monday 20 October 2014 at 13:09
stylou

Message

Fonctionne sous ubuntu 14.04 avec le DVD

Replies

bhundven Thursday 9 October 2014 at 7:32
bhundven Anonymous

Message

Some update must of happened to cause this, but I keep getting a wine error in a dialog that says:

"This application failed to start because it could not find or load the Qt platform plugin "windows".

"Reinstalling the application may fix this problem".

 

So I removed all of my .wine and .PlayOnLinux directories, and everything out of my .config directory, started to install diablo 3 again, and got the same dialog box again.

Replies

Anonymous
Saturday 11 October 2014 at 8:49 -
Somehow winecfg wasn't set to windows xp. Now with windows xp set, I get some weird graphics for the battlenet app: http://i1215.photobucket.com/albums/cc520/bhundven/battlenet.png
Anonymous
Sunday 26 October 2014 at 1:13 -
I have the same problem. Did you find a fix for this?
Anonymous
Sunday 26 October 2014 at 12:48 -
If it helps you: I found out my problem was my notebook configuration. I have Intel/Nvidia hybrid graphics; when I start wine with optirun the graphic glitches are gone!
anregen Friday 5 September 2014 at 0:48
anregen Anonymous

Message

Only issues:

1) attempting to exit the program directly from a running game results in a freeze.  Quitting the game, then exiting from the menu works fine.

2) I can't figure out how to set up the resolution to use both of my monitors.  Granted, it would probably look like poo anyway since my character would live in the bezel gap, but I wanted to try it, and couldn't make it happen.  I WAS able to tweak D3Prefs.txt to take up one full monitor beautifully.

2.5) for 2.1 update (only one that has hit since I installed) I had to re-start the battle.net launcher once before it showed me the progress bar at the bottom.

3) Occassional rubberbanding.  This may be my internet connection?

Replies

KozRoss Wednesday 3 September 2014 at 8:29
KozRoss Anonymous

Message

When I try to install this, it gets the following error:

We're having trouble launching Battle.net Update Agent. Please wait one minute and try again. If it happens again, try restarting your computer or reinstalling Battle.net.

Replies

Anonymous
Wednesday 3 September 2014 at 16:48 -
Has anyone gotten this to work?
Anonymous
Friday 7 November 2014 at 21:28 -
In my case I have to install the package libldap:i386 on my 64bit Linux system
petch Saturday 19 July 2014 at 19:18
petch
Developer

Warning

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

Message

Add setarch statement when running on 64bit Linux host systems

Differences

@@ -52,6 +52,7 @@
 
 POL_Shortcut "Diablo III Launcher.exe"  "$TITLE"
 POL_Shortcut_InsertBeforeWine "$TITLE" '#taskset -pc 0 $$'
+[ "$AMD64_COMPATIBLE" == "True" ] && POL_Shortcut_InsertBeforeWine "$TITLE" 'BEFORE_WINE="setarch i386 -3 -L -B -R"'
 
 if [ "$INSTALL_METHOD" = "DVD" ]; then
     POL_Call POL_Sudo_RehideCdrom

New source code

#!/bin/bash

# CHANGELOG
# [SuperPlumus] (2013-06-08 17-14)
#   gettext + clean
# [petch] (2014-03-24)
#   Wine 1.5.5-DiabloIII_v3 => 1.7.15 (DarkNekros)

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

TITLE="Diablo III"
WORKING_WINE_VERSION="1.7.15"
EDITOR="Blizzard"
EDITOR_URL="http://www.blizzard.com"
PREFIX="DiabloIII"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "" "$PREFIX"

POL_System_SetArch "x86"

if [ "$POL_SELECTED_FILE" ]; then
    SetupIs="$POL_SELECTED_FILE"
else
    POL_SetupWindow_InstallMethod "LOCAL,DVD"

    if [ "$INSTALL_METHOD" = "LOCAL" ]; then
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file downloaded on $EDITOR website')" "$TITLE"
        SetupIs="$APP_ANSWER"
    fi
    if [ "$INSTALL_METHOD" = "DVD" ]; then
        POL_SetupWindow_cdrom
        POL_Call POL_Sudo_UnhideCdrom
        POL_SetupWindow_check_cdrom "Diablo III Setup.exe"
        SetupIs="$CDROM/Diablo III Setup.exe"
    fi
fi

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_Install_vcrun2008

POL_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"
while [ ! -e "$WINEPREFIX/drive_c/$PROGRAMFILES/Diablo III/Diablo III Launcher.exe" ]; do
    sleep 10
done

POL_Shortcut "Diablo III Launcher.exe"  "$TITLE"
POL_Shortcut_InsertBeforeWine "$TITLE" '#taskset -pc 0 $$'
[ "$AMD64_COMPATIBLE" == "True" ] && POL_Shortcut_InsertBeforeWine "$TITLE" 'BEFORE_WINE="setarch i386 -3 -L -B -R"'

if [ "$INSTALL_METHOD" = "DVD" ]; then
    POL_Call POL_Sudo_RehideCdrom
fi

POL_SetupWindow_VMS "1024"

POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed.\n\nA special thank to Erich Hoover for his wine patch (AcceptEx Fix)')\n\n$(eval_gettext 'If you have Error 3007 on connecting, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"

POL_SetupWindow_Close
exit 0

Replies

Monday 28 July 2014 at 10:54 -
All I see on the net are screenshots of the base game. Anyone got the RoS working? Half of the UI is non-responsive.
Wednesday 30 July 2014 at 22:07 -
Hmk got it working - though there's still need of the setarch i386 -3 command.
Wednesday 30 July 2014 at 22:59 -
I take it as a "it doesn't work" then
Anonymous
Friday 3 April 2015 at 1:56 -
My Diablo III instalation just hangs at the begining, even using several different scripts. Ubuntu 14.04 64 bits. Nvidia proprietary driver. POL 4.2.6. Any hint?
ketamin Friday 13 June 2014 at 7:57
ketamin Anonymous

Message

Installed Diablo 3 with this script and it runs well until I try to start a game. A error with code 30004 appears which means that the list of characters could not be loaded and also in some points the programs hangs up with the sound still running . Oddly, the Battle.net client that is installed allows to install Starcraft II and runs better than the installation I did with the other script. Do you have any idea of what's going on?

Replies

Anonymous
Sunday 20 July 2014 at 17:45 -
For me, the stats of characters appears a error with code 30005. Quit the game = freeze.