You are here    Supported software    Starcraft II Wings of Liberty nl sv ru pl es de fr

Starcraft II Wings of Liberty

Informations

Creator Message
Tutul
Moderator

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 252725
Wine: 1.5.10

Feedbacks

Description

Français :
Starcraft II : Wings of Liberty est un jeu de stratégie en temps réel sur PC au sein d'une galaxie où trois factions s'affrontent sans merci. D'un côté, les Terrans, descendants de colons humains. De l'autre, les Protoss, une race très avancée technologiquement et dotée de pouvoirs psioniques. Enfin, les Zergs, hordes de créatures diverses issues de mutations biologiques et regroupées en essaim. Cet opus comprend la campagne solo Terran et tout le nécessaire pour jouer en multi.

English :
StarCraft II : Wings of Liberty features the first of three fully featured single-player campaigns, kicking things off with the terrans. Humanity's representatives in the Koprulu sector have been through a lot since they first left Earth centuries ago and have adapted to a variety of hardships while subjected to dictatorial rule, zerg invasion, and protoss cleansing. Despite these struggles, they’ve still managed to cultivate heroes, advance their technology, and-- most importantly -- survive.

Screenshots

Source code

#!/bin/bash
# Date : (2010-04-08 10-00)
# Last revision : (2011-08-28 21:00)
# Wine version used : 1.3.3, 1.3.11, 1.3.17, 1.3.25, 1.3.26, 1.3.27
# Distribution used to test : Debian Testing x64
# Author : GNU_Raziel
# Licence : Retail
# Only For : http://www.playonlinux.com

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

TITLE="StarCraft II Wings of Liberty"
EDITOR="StarCraft II Editor"
PREFIX="SC2_WoL"
WORKING_WINE_VERSION="1.5.10"
GAME_VMS="128"

# Starting the script

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/starcraft2_wol/top.jpg" "http://files.playonlinux.com/resources/setups/starcraft2_wol/left.jpg" "$TITLE"
POL_SetupWindow_Init

# Starting debugging API
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Blizzard Entertainment" "http://eu.starcraft2.com/" "GNU_Raziel" "$PREFIX" 

# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"

# Downloading wine if necessary and creating prefix
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# Choose between DVD and Digital Download version
POL_SetupWindow_InstallMethod "DVD,LOCAL"

# Installing mandatory dependencies

POL_Call POL_Install_vcrun2005 # Fix "Zeratul Missions" crash
POL_Wine_InstallFonts # Fix "Custom map" crash

if [ "$INSTALL_METHOD" == "DVD" ]; then
        # Asking for CDROM and checking if it's correct one
        POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"

        POL_SetupWindow_cdrom
        POL_Call POL_Sudo_UnhideCdrom
        POL_SetupWindow_check_cdrom "Installer.exe"

        SetupIs="$CDROM/Installer.exe"

        POL_Wine start /unix "$SetupIs"
        POL_Wine_WaitExit "$TITLE"
else
        # Asking then installing DDV of the game
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
fi

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

## Fix for this game
POL_Wine_OverrideDLL "native,builtin" "mshtml" # Fix "Updater" crash - part 2

# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver

# Performance Tweak
POL_Wine_Direct3D "UseGLSL" "disabled"

# Sound problem fix - pulseaudio related
[ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
[ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
## End Fix

# Making shortcut
POL_Shortcut "StarCraft II.exe" "$TITLE" "$TITLE.png" ""
POL_Shortcut "StarCraft II Editor.exe" "$EDITOR" "$EDITOR.png" ""

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

POL_SetupWindow_message "$(eval_gettext 'If you have a runtime error when running the game, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
LinuxScripter Tuesday 15 May 2018 at 15:26
LinuxScripter Anonymous

Warning

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

Message

With this script I was able to run this game and play a couple of co-op matches. Multiplayer mode and campain wasn't tested but I'm sure they will work as well. You might have to try killing Agent.exe and remocing the content of Blizzard App's cache folder until your game profile will load. Once the profile loads you wont have to do that again. Also don't set graphics above medium even if your PC can run this game on higher settings on Windows. The game will most likey crash with an out-of-memory error.

Differences

@@ -1,93 +1,109 @@
 #!/bin/bash
-# Date : (2010-04-08 10-00)
-# Last revision : (2011-08-28 21:00)
-# Wine version used : 1.3.3, 1.3.11, 1.3.17, 1.3.25, 1.3.26, 1.3.27
-# Distribution used to test : Debian Testing x64
-# Author : GNU_Raziel
+# Date : (2018-02-02 12:48)
+# Last revision : (2018-05-15 11:46)
+# Wine version used : 3.7
+# Distribution used to test : Ubuntu 18.04 x64
+# Author : LinuxScripter
 # Licence : Retail
-# Only For : http://www.playonlinux.com
-
+   
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
-TITLE="StarCraft II Wings of Liberty"
-EDITOR="StarCraft II Editor"
-PREFIX="SC2_WoL"
-WORKING_WINE_VERSION="1.5.10"
-GAME_VMS="128"
-
+   
+TITLE="StarCraft II"
+EDITOR="Blizzard"
+AUTHOR="LinuxScripter"
+GAME_URL="http://eu.battle.net/sc2/en/"
+PREFIX="StarCraft2"
+WORKING_WINE_VERSION="3.7"
+   
 # Starting the script
-
+   
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/starcraft2_wol/top.jpg" "http://files.playonlinux.com/resources/setups/starcraft2_wol/left.jpg" "$TITLE"
+  
 POL_SetupWindow_Init
-
-# Starting debugging API
 POL_Debug_Init
-
-POL_SetupWindow_presentation "$TITLE" "Blizzard Entertainment" "http://eu.starcraft2.com/" "GNU_Raziel" "$PREFIX" 
-
+   
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+   
 # Setting prefix path
 POL_Wine_SelectPrefix "$PREFIX"
-
+   
 # Downloading wine if necessary and creating prefix
 POL_System_SetArch "x86"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
- 
-# Choose between DVD and Digital Download version
-POL_SetupWindow_InstallMethod "DVD,LOCAL"
-
+POL_System_TmpCreate "$PREFIX"
+  
 # Installing mandatory dependencies
+POL_Call POL_Install_d3dcompiler_43
 
-POL_Call POL_Install_vcrun2005 # Fix "Zeratul Missions" crash
-POL_Wine_InstallFonts # Fix "Custom map" crash
-
-if [ "$INSTALL_METHOD" == "DVD" ]; then
-	# Asking for CDROM and checking if it's correct one
-	POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
-
-	POL_SetupWindow_cdrom
-	POL_Call POL_Sudo_UnhideCdrom
-	POL_SetupWindow_check_cdrom "Installer.exe"
-
-	SetupIs="$CDROM/Installer.exe"
-
-	POL_Wine start /unix "$SetupIs"
-	POL_Wine_WaitExit "$TITLE"
-else
-	# Asking then installing DDV of the game
-	cd "$HOME"
-	POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
-	SETUP_EXE="$APP_ANSWER"
-	POL_Wine start /unix "$SETUP_EXE"
-	POL_Wine_WaitExit "$TITLE"
-fi
-
+# Needed for Battle.net
+POL_Call POL_Install_corefonts
+POL_Call POL_Install_ie8
+POL_Call POL_Install_flashplayer
+POL_Call POL_Install_dotnet45
+ 
+#Fixes for the registry
+cd "$POL_System_TmpDir"
+cat << EOF > fix.reg
+REGEDIT4
+    
+[HKEY_CURRENT_USER/Environment]
+"PATH"="c:\Program Files\Starcraft II\Support"
+[HKEY_CURRENT_USER/Software/Wine/X11 Driver]
+"UseXRandR"="N"
+[HKEY_CURRENT_USER/Software/Wine/Direct3D]
+"VertexShaderMode"="hardware"
+ 
+EOF
+   
+POL_Wine regedit.exe fix.reg
+ 
 # Asking about memory size of graphic card
 POL_SetupWindow_VMS $GAME_VMS
-
-## Fix for this game
-POL_Wine_OverrideDLL "native,builtin" "mshtml" # Fix "Updater" crash - part 2
-
+ 
 # Set Graphic Card information keys for wine
 POL_Wine_SetVideoDriver
-
-# Performance Tweak
-POL_Wine_Direct3D "UseGLSL" "disabled"
-
+ 
 # Sound problem fix - pulseaudio related
 [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
 [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
 ## End Fix
+  
+POL_SetupWindow_message "$(eval_gettext 'If you choose to install the DVD version you have to exit the installer after the instalation is done. The old patcher app does not work at all in wine. The script will terminate any .exe proceses in case you forgot. Then a patch will be downloaded. You will continue the update process through Blizzard App rather than build-in patcher./nYou will also have to use DNSProxy or else your profile will not load and all ""Play"" buttons will be unclickable/grayed out. Either that or remove the content of ""$WINEPREFIX/drive_c/ProgramData/Blizzard\ Entertainment/Battle.net/Cache/"" and kill Agent.exe/nSetting your graphics above medium might result in a crash when loading a level.')"
+# Choose between DVD and Digital Download version
+POL_SetupWindow_InstallMethod "DVD,LOCAL"
+   
+if [ "$INSTALL_METHOD" == "DVD" ]; then
+    # Asking for CDROM and checking if it's correct one
+    POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
+    POL_SetupWindow_cdrom
+    POL_Call POL_Sudo_UnhideCdrom
+    POL_SetupWindow_check_cdrom "Starcraft II Installer.app/Contents/Info.plist"
+    POL_Wine start /unix "$CDROM/Installer.exe"
+    POL_Wine_WaitExit "$CDROM/Installer.exe"
+    [$(ps aux | grep -c *.exe) -lt 2] || killall *.exe
+    cd "$POL_System_TmpDir"
+    POL_Download "https://megagames2.online/downloads.php?file=sc2-1.4.2-enUS.exe&646965504532567d5954262e5a=1"
+    POL_Wine start /unix "sc2-1.4.2-enUS.exe"
+    POL_Wine_WaitExit "sc2-1.4.2-enUS.exe"
+else
+    cd "$HOME"
+    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
+    SETUP_EXE="$APP_ANSWER"
+    POL_Wine start /unix "$SETUP_EXE"
+    POL_Wine_WaitExit "$TITLE"
+fi
 
 # Making shortcut
-POL_Shortcut "StarCraft II.exe" "$TITLE" "$TITLE.png" ""
-POL_Shortcut "StarCraft II Editor.exe" "$EDITOR" "$EDITOR.png" ""
-
+POL_Shortcut "$WINEPREFIX/drive_c/Program Files/Battle.net/Battle.net.exe" "Battle.net($TITLE)" "" ""
+   
 if [ "$INSTALL_METHOD" = "DVD" ]; then
-	POL_Call POL_Sudo_RehideCdrom
+        POL_Call POL_Sudo_RehideCdrom
 fi
 
-POL_SetupWindow_message "$(eval_gettext 'If you have a runtime error when running the game, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"
-
+#Removes an .exe file that keeps throwing crash messages
+cd "$WINEPREFIX/drive_c/Program Files/Battle.net/Battle.net.10047"
+rm -f "SystemSurvey.exe"
+   
 POL_SetupWindow_Close
 exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2018-02-02 12:48)
# Last revision : (2018-05-15 11:46)
# Wine version used : 3.7
# Distribution used to test : Ubuntu 18.04 x64
# Author : LinuxScripter
# Licence : Retail
   
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="StarCraft II"
EDITOR="Blizzard"
AUTHOR="LinuxScripter"
GAME_URL="http://eu.battle.net/sc2/en/"
PREFIX="StarCraft2"
WORKING_WINE_VERSION="3.7"
   
# Starting the script
   
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/starcraft2_wol/top.jpg" "http://files.playonlinux.com/resources/setups/starcraft2_wol/left.jpg" "$TITLE"
  
POL_SetupWindow_Init
POL_Debug_Init
   
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
   
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
   
# Downloading wine if necessary and creating prefix
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$PREFIX"
  
# Installing mandatory dependencies
POL_Call POL_Install_d3dcompiler_43

# Needed for Battle.net
POL_Call POL_Install_corefonts
POL_Call POL_Install_ie8
POL_Call POL_Install_flashplayer
POL_Call POL_Install_dotnet45
 
#Fixes for the registry
cd "$POL_System_TmpDir"
cat << EOF > fix.reg
REGEDIT4
    
[HKEY_CURRENT_USER/Environment]
"PATH"="c:\Program Files\Starcraft II\Support"
[HKEY_CURRENT_USER/Software/Wine/X11 Driver]
"UseXRandR"="N"
[HKEY_CURRENT_USER/Software/Wine/Direct3D]
"VertexShaderMode"="hardware"
 
EOF
   
POL_Wine regedit.exe fix.reg
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
 
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
 
# Sound problem fix - pulseaudio related
[ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
[ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
## End Fix
  
POL_SetupWindow_message "$(eval_gettext 'If you choose to install the DVD version you have to exit the installer after the instalation is done. The old patcher app does not work at all in wine. The script will terminate any .exe proceses in case you forgot. Then a patch will be downloaded. You will continue the update process through Blizzard App rather than build-in patcher./nYou will also have to use DNSProxy or else your profile will not load and all ""Play"" buttons will be unclickable/grayed out. Either that or remove the content of ""$WINEPREFIX/drive_c/ProgramData/Blizzard\ Entertainment/Battle.net/Cache/"" and kill Agent.exe/nSetting your graphics above medium might result in a crash when loading a level.')"
# Choose between DVD and Digital Download version
POL_SetupWindow_InstallMethod "DVD,LOCAL"
   
if [ "$INSTALL_METHOD" == "DVD" ]; then
    # Asking for CDROM and checking if it's correct one
    POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_Call POL_Sudo_UnhideCdrom
    POL_SetupWindow_check_cdrom "Starcraft II Installer.app/Contents/Info.plist"
    POL_Wine start /unix "$CDROM/Installer.exe"
    POL_Wine_WaitExit "$CDROM/Installer.exe"
    [$(ps aux | grep -c *.exe) -lt 2] || killall *.exe
    cd "$POL_System_TmpDir"
    POL_Download "https://megagames2.online/downloads.php?file=sc2-1.4.2-enUS.exe&646965504532567d5954262e5a=1"
    POL_Wine start /unix "sc2-1.4.2-enUS.exe"
    POL_Wine_WaitExit "sc2-1.4.2-enUS.exe"
else
    cd "$HOME"
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
    SETUP_EXE="$APP_ANSWER"
    POL_Wine start /unix "$SETUP_EXE"
    POL_Wine_WaitExit "$TITLE"
fi

# Making shortcut
POL_Shortcut "$WINEPREFIX/drive_c/Program Files/Battle.net/Battle.net.exe" "Battle.net($TITLE)" "" ""
   
if [ "$INSTALL_METHOD" = "DVD" ]; then
        POL_Call POL_Sudo_RehideCdrom
fi

#Removes an .exe file that keeps throwing crash messages
cd "$WINEPREFIX/drive_c/Program Files/Battle.net/Battle.net.10047"
rm -f "SystemSurvey.exe"
   
POL_SetupWindow_Close
exit

Replies

Jolly Tuesday 6 February 2018 at 14:58
Jolly Anonymous

Message

Français

Pour jouer à Starcraft II, j'ai effectué une installation manuelle car le programme par défaut de playonlinux ne fonctionne plus (dernière mise à jour du script en 2011). Le jeu fonctionne correctement aussi bien en mode coop, campagne et multijoueurs (parties classées ou non).

English

To play scarcraft II, you have to install it manually in playonlinux because the script doesn't work anymore (last update in 2011). It works for me for all game modes : coop / arcade / rank games / custom games...

Info debug : ma config / my configuration

    Versions
Hardware
Proc i5-6500
CGU GTX 1050 Ti
RAM
2x4 Go à 2133 MHz CAS 13
OS
Bodhi-linux
4.4.0-36-generic_64b
Debian release 16.04 (xenial)
POL & Wine
PlayonLinux 4.2.10
Wine
2.21.stg_x86_32b
Windows W7

 

Required packages
gcc
ubuntu-restricted-extras
libc6-i386
libc6-dev-i386
libapache2-mod-auth-ntlm-win
playonlinux

 

 

1) Téléchargez / download Windows Bnet.exe : https://eu.battle.net/account/download/#bnetapp

2) Installation manuelle d'un nouveau programme sur un nouveau disque / Manually install a new program on a new drive

-> Wine Config

  • "accélération graphique CMST" activée dans l'onglet "staging"
  • Windows 7

-> Required components / Composants requis

  • Core Fonts M$
  • FontsSmoothRGB
  • gdiplus
  • gecko

-> Select the file previously downloaded at the step 1

-> Wait for the login screen of the Battle.net wizzard. Attendre la fenêtre de connection Blizzard.

  • Ne pas se connecter / Do not log-in
  • Continue without log-in (offline mode) / Continuer sans se connecter (mode hors-ligne)

-> Quitter l'application Battle.net / Exit the launcher Battle.net

-> Dans un terminal, taper la commande suivante / In a terminal, write the following command :

  •   killall Battle.net.exe Agent.exe

-> Créer le raccourci de Battle.net / Create a shortcut for Battle.net

3) Optimisation in Config > Display / Optimisation de la configuration de l'affichage

GLSL Enabled
Direct Draw Renderer OpenGL

 

Replies

Tuesday 6 February 2018 at 17:02 -
On travail déjà à une mise à jour qui marcherait chez tout le monde. Pour le moment on a des soucis avec le Helper qui crash chez certain mais pas tout le monde.
Anonymous
Tuesday 6 February 2018 at 18:03 -
Je confirme avoir moi aussi des messages d'erreur (non bloquants) venant de Helper.exe et de SystemSurvey.exe. Je peux fournir les détails si besoin pour enquête...
Anonymous
Wednesday 7 February 2018 at 23:45 -
Tried your guide and when I'm in game and enter my username and password and click the login button nothing happens. The debug log is filled with battle.net helpter.exe crashes.
Wednesday 7 February 2018 at 23:46 -
I test an update these week-end
LinuxScripter Friday 2 February 2018 at 17:21
LinuxScripter Anonymous

Warning

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

Message

I've just made this game work. I tested it in a single co-op game and it works. Keep in mind that due to how Wine works and the diffirences between linux and windows GPU drivers you might experience decreased performance and have to turn the graphics settings down a notch. Also you must install vcrun2015 manually via winetricks since POL dosen't have an installer for this dependency.  The in-game patcher is broken no matter how you ste up the mshtml. So I had to go around this problem by killing all update processes (I dont know their exact names so the script will kill all *.exe proceses, will change that once I remember the names), then downloading the patcher (it's pretty hard to find a link that will work in a script since a lot of them have tokens with limited lifespan, please let me know if this link is dead so I can look for a replacement).

I'm not sure if the sound fix is necesseary anymore. I left it just in case. Also changed the name of the game/prefix because when you download updates for WoL you also download files for the expansions and as such, the old title is no longer accurate.
 

Differences

@@ -1,93 +1,105 @@
 #!/bin/bash
 # Date : (2010-04-08 10-00)
-# Last revision : (2011-08-28 21:00)
-# Wine version used : 1.3.3, 1.3.11, 1.3.17, 1.3.25, 1.3.26, 1.3.27
-# Distribution used to test : Debian Testing x64
-# Author : GNU_Raziel
+# Last revision : (2018-02-02 12:48)
+# Wine version used : 1.3.3, 1.3.11, 1.3.17, 1.3.25, 1.3.26, 1.3.27, 2.0.1, 3.0
+# Distribution used to test : Debian Testing x64, Ubuntu 17.04 x64, Ubuntu 18.04 x64
+# Author : GNU_Raziel, LinuxScripter
 # Licence : Retail
-# Only For : http://www.playonlinux.com
-
+  
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
-TITLE="StarCraft II Wings of Liberty"
-EDITOR="StarCraft II Editor"
-PREFIX="SC2_WoL"
-WORKING_WINE_VERSION="1.5.10"
-GAME_VMS="128"
-
+  
+TITLE="StarCraft II"
+EDITOR="Blizzard"
+AUTHOR="LinuxScripter and GNU_Raziel"
+GAME_URL="http://eu.battle.net/sc2/en/"
+PREFIX="StarCraft2"
+WORKING_WINE_VERSION="3.0"
+  
 # Starting the script
-
+  
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/starcraft2_wol/top.jpg" "http://files.playonlinux.com/resources/setups/starcraft2_wol/left.jpg" "$TITLE"
+ 
 POL_SetupWindow_Init
-
-# Starting debugging API
 POL_Debug_Init
-
-POL_SetupWindow_presentation "$TITLE" "Blizzard Entertainment" "http://eu.starcraft2.com/" "GNU_Raziel" "$PREFIX" 
-
+  
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+  
 # Setting prefix path
 POL_Wine_SelectPrefix "$PREFIX"
-
+  
 # Downloading wine if necessary and creating prefix
 POL_System_SetArch "x86"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+POL_System_TmpCreate "$PREFIX"
  
-# Choose between DVD and Digital Download version
-POL_SetupWindow_InstallMethod "DVD,LOCAL"
-
 # Installing mandatory dependencies
-
+  
 POL_Call POL_Install_vcrun2005 # Fix "Zeratul Missions" crash
-POL_Wine_InstallFonts # Fix "Custom map" crash
-
-if [ "$INSTALL_METHOD" == "DVD" ]; then
-	# Asking for CDROM and checking if it's correct one
-	POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
-
-	POL_SetupWindow_cdrom
-	POL_Call POL_Sudo_UnhideCdrom
-	POL_SetupWindow_check_cdrom "Installer.exe"
-
-	SetupIs="$CDROM/Installer.exe"
-
-	POL_Wine start /unix "$SetupIs"
-	POL_Wine_WaitExit "$TITLE"
-else
-	# Asking then installing DDV of the game
-	cd "$HOME"
-	POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
-	SETUP_EXE="$APP_ANSWER"
-	POL_Wine start /unix "$SETUP_EXE"
-	POL_Wine_WaitExit "$TITLE"
-fi
+POL_Call POL_Install_vcrun2008
+POL_Call POL_Install_vcrun2013
+POL_Call POL_Install_corefonts
+POL_Call POL_Install_ie8
+POL_Call POL_Install_tahoma
+POL_Call POL_Install_dotnet40
+
+#Fixing fatal dll error caused by the game not seeing dll files in the Support folder 
+cd "$POL_System_TmpDir"
+cat << EOF > dllfix.reg
+REGEDIT4
+   
+[HKEY_CURRENT_USER/Environment]
+"PATH"="c:\Program Files\Starcraft II\Support"
+[HKEY_CURRENT_USER/Software/Wine/X11 Driver]
+"UseXRandR"="N"
+EOF
+  
+POL_Wine regedit.exe dllfix.reg
 
 # Asking about memory size of graphic card
 POL_SetupWindow_VMS $GAME_VMS
 
-## Fix for this game
-POL_Wine_OverrideDLL "native,builtin" "mshtml" # Fix "Updater" crash - part 2
-
 # Set Graphic Card information keys for wine
 POL_Wine_SetVideoDriver
 
-# Performance Tweak
-POL_Wine_Direct3D "UseGLSL" "disabled"
-
 # Sound problem fix - pulseaudio related
 [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
 [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
 ## End Fix
+ 
+POL_SetupWindow_message "$(eval_gettext 'If you choose to install the DVD version you have to exit the installer after the instalation is done. The old patcher app does not work at all in wine. The script will terminate any .exe proceses in case you forgot. Then a patch will be downloaded. You will continue the update process through Blizzard App rather than build-in patcher.')"
+# Choose between DVD and Digital Download version
+POL_SetupWindow_InstallMethod "DVD,LOCAL"
+  
+if [ "$INSTALL_METHOD" == "DVD" ]; then
+    # Asking for CDROM and checking if it's correct one
+    POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
+    POL_SetupWindow_cdrom
+    POL_Call POL_Sudo_UnhideCdrom
+    POL_SetupWindow_check_cdrom "Starcraft II Installer.app/Contents/Info.plist"
+    POL_Wine start /unix "$CDROM/Installer.exe"
+    POL_Wine_WaitExit "$CDROM/Installer.exe"
+	[$(ps aux | grep -c *.exe) -lt 2] || killall *.exe
+	cd "$POL_System_TmpDir"
+	POL_Download "https://megagames2.online/downloads.php?file=sc2-1.4.2-enUS.exe&646965504532567d5954262e5a=1"
+	POL_Wine start /unix "sc2-1.4.2-enUS.exe"
+	POL_Wine_WaitExit "sc2-1.4.2-enUS.exe"
+else
+    cd "$HOME"
+    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
+    SETUP_EXE="$APP_ANSWER"
+    POL_Wine start /unix "$SETUP_EXE"
+    POL_Wine_WaitExit "$TITLE"
+fi
+  
 
+  
 # Making shortcut
-POL_Shortcut "StarCraft II.exe" "$TITLE" "$TITLE.png" ""
-POL_Shortcut "StarCraft II Editor.exe" "$EDITOR" "$EDITOR.png" ""
-
+POL_Shortcut "$WINEPREFIX/drive_c/Program Files/Battle.net/Battle.net.exe" "Battle.net($TITLE)" "" ""
+  
 if [ "$INSTALL_METHOD" = "DVD" ]; then
-	POL_Call POL_Sudo_RehideCdrom
+        POL_Call POL_Sudo_RehideCdrom
 fi
-
-POL_SetupWindow_message "$(eval_gettext 'If you have a runtime error when running the game, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"
-
+  
 POL_SetupWindow_Close
 exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2010-04-08 10-00)
# Last revision : (2018-02-02 12:48)
# Wine version used : 1.3.3, 1.3.11, 1.3.17, 1.3.25, 1.3.26, 1.3.27, 2.0.1, 3.0
# Distribution used to test : Debian Testing x64, Ubuntu 17.04 x64, Ubuntu 18.04 x64
# Author : GNU_Raziel, LinuxScripter
# Licence : Retail
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="StarCraft II"
EDITOR="Blizzard"
AUTHOR="LinuxScripter and GNU_Raziel"
GAME_URL="http://eu.battle.net/sc2/en/"
PREFIX="StarCraft2"
WORKING_WINE_VERSION="3.0"
  
# Starting the script
  
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/starcraft2_wol/top.jpg" "http://files.playonlinux.com/resources/setups/starcraft2_wol/left.jpg" "$TITLE"
 
POL_SetupWindow_Init
POL_Debug_Init
  
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
  
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
  
# Downloading wine if necessary and creating prefix
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$PREFIX"
 
# Installing mandatory dependencies
  
POL_Call POL_Install_vcrun2005 # Fix "Zeratul Missions" crash
POL_Call POL_Install_vcrun2008
POL_Call POL_Install_vcrun2013
POL_Call POL_Install_corefonts
POL_Call POL_Install_ie8
POL_Call POL_Install_tahoma
POL_Call POL_Install_dotnet40

#Fixing fatal dll error caused by the game not seeing dll files in the Support folder 
cd "$POL_System_TmpDir"
cat << EOF > dllfix.reg
REGEDIT4
   
[HKEY_CURRENT_USER/Environment]
"PATH"="c:\Program Files\Starcraft II\Support"
[HKEY_CURRENT_USER/Software/Wine/X11 Driver]
"UseXRandR"="N"
EOF
  
POL_Wine regedit.exe dllfix.reg

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver

# Sound problem fix - pulseaudio related
[ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
[ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
## End Fix
 
POL_SetupWindow_message "$(eval_gettext 'If you choose to install the DVD version you have to exit the installer after the instalation is done. The old patcher app does not work at all in wine. The script will terminate any .exe proceses in case you forgot. Then a patch will be downloaded. You will continue the update process through Blizzard App rather than build-in patcher.')"
# Choose between DVD and Digital Download version
POL_SetupWindow_InstallMethod "DVD,LOCAL"
  
if [ "$INSTALL_METHOD" == "DVD" ]; then
    # Asking for CDROM and checking if it's correct one
    POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_Call POL_Sudo_UnhideCdrom
    POL_SetupWindow_check_cdrom "Starcraft II Installer.app/Contents/Info.plist"
    POL_Wine start /unix "$CDROM/Installer.exe"
    POL_Wine_WaitExit "$CDROM/Installer.exe"
        [$(ps aux | grep -c *.exe) -lt 2] || killall *.exe
        cd "$POL_System_TmpDir"
        POL_Download "https://megagames2.online/downloads.php?file=sc2-1.4.2-enUS.exe&646965504532567d5954262e5a=1"
        POL_Wine start /unix "sc2-1.4.2-enUS.exe"
        POL_Wine_WaitExit "sc2-1.4.2-enUS.exe"
else
    cd "$HOME"
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
    SETUP_EXE="$APP_ANSWER"
    POL_Wine start /unix "$SETUP_EXE"
    POL_Wine_WaitExit "$TITLE"
fi
  

  
# Making shortcut
POL_Shortcut "$WINEPREFIX/drive_c/Program Files/Battle.net/Battle.net.exe" "Battle.net($TITLE)" "" ""
  
if [ "$INSTALL_METHOD" = "DVD" ]; then
        POL_Call POL_Sudo_RehideCdrom
fi
  
POL_SetupWindow_Close
exit

Replies

Sunday 4 February 2018 at 16:35 -
Avoid using that patch executable. And btw all user don't install in english.
Anonymous
Monday 5 February 2018 at 11:05 -
I'm gonna look for other, more relaible link.
Anonymous
Monday 5 February 2018 at 21:17 -
I've been looking for a diffirent link for the script for last 2 hours and nothing. And with the in-game patcher being broken in wine it's hard to test how the game works.
Monday 5 February 2018 at 21:51 -
It's only the one with the DVD. Maybe we can use only the installer version and invit the usrr to download it. A connection is required and that avoid to wait an installation + two update. No ?
Aital Sunday 28 January 2018 at 18:41
Aital Anonymous

Message

I got this working as far as offline goes. Installed battlenet and then starcraft 1 but it should work for starcraft II.

I had to use wine-2.19-Staging to get the window to appear that lets you use offline mode to isntall games. It technically works for other versions but it's invisible and you have to click the mouse on the gear at the battle.net login screen and then move the mouse over the correct position for it to appear. But if you want to see it the easy way use 2.19-Staging. I have gotten offline mode to work for starcraft 1 and am dling starcraft 2. But I'm saying this for the battlenet thing. Offline for starcraft I gives error 6:3.

I installed a few other things like gecko and mono and wininet. I don't think they contributed but I could be wrong. Do NOT install winhttp or it will start saying to reinstall because it cannot find a dll. Removing winhttp from the libraries in wine config will stop this problem.

Sorry for the inclusion of SC1 but I'm still testing and downloading SC2. This was the first hurdle for SC2 play. I'm waiting to see how networking works or if it is like SC1.

Needed:

wine 2.19-Staging

Windows 7

Possilble others:(may not be needed)

Gecko

Mono28?!

Vcrun 2015.

I forgot. I also installed the bottle initially with this installer. So anything it does as well. I will have to test SC1 battle.net access with higher versions of wine now that I know how to get into offline regardless of wine versions.

Replies

Anonymous
Sunday 28 January 2018 at 18:42 -
I also tried the registry edit in the below post. I'm not sure it made a difference. Although I have no idea either way. And where did the edit options go?!
Anonymous
Sunday 28 January 2018 at 18:44 -
I'll correct myself. It was 2.21-staging. But 2.19-staging also works.
Anonymous
Sunday 28 January 2018 at 18:45 -
And there is an issue with the login button not working and a possibly accompanying error. I bypass it by simply minimizing it and ignoreing it atm. It will continue to pop up otherwise.
Anonymous
Sunday 28 January 2018 at 19:20 -
In the SC2 trying to play a custom db saga match.
Anonymous
Sunday 28 January 2018 at 19:28 -
Having some problems with maps downloading and other things loading slowly but it works so far.
Anonymous
Sunday 28 January 2018 at 20:22 -
NVM, I keep getting crashes to desktop...
Anonymous
Sunday 28 January 2018 at 21:16 -
NVM, I removed the registry addition. The crash was from the core memory problem it can introduce. It has stopped crashing.
Anonymous
Sunday 28 January 2018 at 22:33 -
Still getting occasional crashes now. But they are pretty far spread apart at this point.
LinuxScripter Thursday 11 May 2017 at 18:42
LinuxScripter Anonymous

Warning

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

Message

I have redone this script. After more than 10 hour of testing I am 100% sure that this game/it's patcher and/or Battle.net app requires vcrun2015 and since there is no vcrun2015 on wiki I can assume there is no POL function for it but I included it anyway.

If you are installing from DVD and the patcher crashes before patch 1 from 24 is installed (or the battle.net app cant login if you sellected an online instalation), close all POL windows and install vcrun2015 and corefonts (I think links used by POL to download them are down but I haven't checked it yet) via winetricks.

After doing all of this I managed to get Battle.net working, I logged in and started downloading patches. Now the only problem with battle.net app its improper scalling (the bar with the window's name have to be removed but I haven't figured out how).

The game itself tries to launch but only displays a black square and the crashes with "the graphics device is not avaiable". But maybe it will work once the download bar will turn green. So this script isn't 100% working as you can see but I post it in case someone who is better at scripting will figure something up.

Differences

@@ -1,93 +1,91 @@
 #!/bin/bash
 # Date : (2010-04-08 10-00)
-# Last revision : (2011-08-28 21:00)
-# Wine version used : 1.3.3, 1.3.11, 1.3.17, 1.3.25, 1.3.26, 1.3.27
-# Distribution used to test : Debian Testing x64
-# Author : GNU_Raziel
+# Last revision : (2017-05-11 17:11)
+# Wine version used : 1.3.3, 1.3.11, 1.3.17, 1.3.25, 1.3.26, 1.3.27, 2.0.1
+# Distribution used to test : Debian Testing x64, Ubuntu 17.04 x64
+# Author : GNU_Raziel, LinuxScripter
 # Licence : Retail
-# Only For : http://www.playonlinux.com
-
+ 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
+ 
 TITLE="StarCraft II Wings of Liberty"
-EDITOR="StarCraft II Editor"
+EDITOR="Blizzard"
+AUTHOR="LinuxScripter and GNU_Raziel"
+GAME_URL="http://eu.battle.net/sc2/en/"
 PREFIX="SC2_WoL"
-WORKING_WINE_VERSION="1.5.10"
-GAME_VMS="128"
-
+WORKING_WINE_VERSION="2.1"
+ 
 # Starting the script
-
+ 
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/starcraft2_wol/top.jpg" "http://files.playonlinux.com/resources/setups/starcraft2_wol/left.jpg" "$TITLE"
-POL_SetupWindow_Init
 
-# Starting debugging API
+POL_SetupWindow_Init
 POL_Debug_Init
-
-POL_SetupWindow_presentation "$TITLE" "Blizzard Entertainment" "http://eu.starcraft2.com/" "GNU_Raziel" "$PREFIX" 
-
+ 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+ 
 # Setting prefix path
 POL_Wine_SelectPrefix "$PREFIX"
-
+ 
 # Downloading wine if necessary and creating prefix
 POL_System_SetArch "x86"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
- 
-# Choose between DVD and Digital Download version
-POL_SetupWindow_InstallMethod "DVD,LOCAL"
 
 # Installing mandatory dependencies
-
+ 
 POL_Call POL_Install_vcrun2005 # Fix "Zeratul Missions" crash
-POL_Wine_InstallFonts # Fix "Custom map" crash
+POL_Call POL_Install_vcrun2008
+POL_Call POL_Install_vcrun2013
+POL_Call POL_Install_corefonts
+POL_Call POL_Install_ie8
+POL_Call POL_Install_tahoma
+POL_Call POL_Install_dotnet40
+POL_CALL POL_Install_vcrun2015
 
+PL_SetupWindow_message "$(eval_gettext 'If the patcher or Battle.net app crashes after instalation, use winetricks to make sure vcrun2015 and corefonts are installed (the build-in POL function to install corefonts seems to be broken).')" 
+# Choose between DVD and Digital Download version
+POL_SetupWindow_InstallMethod "DVD,LOCAL"
+ 
 if [ "$INSTALL_METHOD" == "DVD" ]; then
-	# Asking for CDROM and checking if it's correct one
-	POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
-
-	POL_SetupWindow_cdrom
-	POL_Call POL_Sudo_UnhideCdrom
-	POL_SetupWindow_check_cdrom "Installer.exe"
-
-	SetupIs="$CDROM/Installer.exe"
-
-	POL_Wine start /unix "$SetupIs"
-	POL_Wine_WaitExit "$TITLE"
+        # Asking for CDROM and checking if it's correct one
+        POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
+        POL_SetupWindow_cdrom
+        POL_Call POL_Sudo_UnhideCdrom
+        POL_SetupWindow_check_cdrom "Starcraft II Installer.app/Contents/Info.plist"
+        POL_Wine start /unix "$CDROM/Installer.exe"
+        POL_Wine_WaitExit "$CDROM/Installer.exe"
 else
-	# Asking then installing DDV of the game
-	cd "$HOME"
-	POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
-	SETUP_EXE="$APP_ANSWER"
-	POL_Wine start /unix "$SETUP_EXE"
-	POL_Wine_WaitExit "$TITLE"
+        cd "$HOME"
+        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
+        SETUP_EXE="$APP_ANSWER"
+        POL_Wine start /unix "$SETUP_EXE"
+        POL_Wine_WaitExit "$TITLE"
 fi
-
+ 
 # Asking about memory size of graphic card
 POL_SetupWindow_VMS $GAME_VMS
-
+ 
 ## Fix for this game
 POL_Wine_OverrideDLL "native,builtin" "mshtml" # Fix "Updater" crash - part 2
-
+ 
 # Set Graphic Card information keys for wine
 POL_Wine_SetVideoDriver
-
+ 
 # Performance Tweak
 POL_Wine_Direct3D "UseGLSL" "disabled"
-
+ 
 # Sound problem fix - pulseaudio related
 [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
 [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
 ## End Fix
-
+ 
 # Making shortcut
 POL_Shortcut "StarCraft II.exe" "$TITLE" "$TITLE.png" ""
-POL_Shortcut "StarCraft II Editor.exe" "$EDITOR" "$EDITOR.png" ""
-
+ 
 if [ "$INSTALL_METHOD" = "DVD" ]; then
-	POL_Call POL_Sudo_RehideCdrom
+        POL_Call POL_Sudo_RehideCdrom
 fi
-
-POL_SetupWindow_message "$(eval_gettext 'If you have a runtime error when running the game, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"
-
+ 
 POL_SetupWindow_Close
 exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2010-04-08 10-00)
# Last revision : (2017-05-11 17:11)
# Wine version used : 1.3.3, 1.3.11, 1.3.17, 1.3.25, 1.3.26, 1.3.27, 2.0.1
# Distribution used to test : Debian Testing x64, Ubuntu 17.04 x64
# Author : GNU_Raziel, LinuxScripter
# Licence : Retail
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="StarCraft II Wings of Liberty"
EDITOR="Blizzard"
AUTHOR="LinuxScripter and GNU_Raziel"
GAME_URL="http://eu.battle.net/sc2/en/"
PREFIX="SC2_WoL"
WORKING_WINE_VERSION="2.1"
 
# Starting the script
 
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/starcraft2_wol/top.jpg" "http://files.playonlinux.com/resources/setups/starcraft2_wol/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
 
# Downloading wine if necessary and creating prefix
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# Installing mandatory dependencies
 
POL_Call POL_Install_vcrun2005 # Fix "Zeratul Missions" crash
POL_Call POL_Install_vcrun2008
POL_Call POL_Install_vcrun2013
POL_Call POL_Install_corefonts
POL_Call POL_Install_ie8
POL_Call POL_Install_tahoma
POL_Call POL_Install_dotnet40
POL_CALL POL_Install_vcrun2015

PL_SetupWindow_message "$(eval_gettext 'If the patcher or Battle.net app crashes after instalation, use winetricks to make sure vcrun2015 and corefonts are installed (the build-in POL function to install corefonts seems to be broken).')" 
# Choose between DVD and Digital Download version
POL_SetupWindow_InstallMethod "DVD,LOCAL"
 
if [ "$INSTALL_METHOD" == "DVD" ]; then
        # Asking for CDROM and checking if it's correct one
        POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
        POL_SetupWindow_cdrom
        POL_Call POL_Sudo_UnhideCdrom
        POL_SetupWindow_check_cdrom "Starcraft II Installer.app/Contents/Info.plist"
        POL_Wine start /unix "$CDROM/Installer.exe"
        POL_Wine_WaitExit "$CDROM/Installer.exe"
else
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
fi
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
 
## Fix for this game
POL_Wine_OverrideDLL "native,builtin" "mshtml" # Fix "Updater" crash - part 2
 
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
 
# Performance Tweak
POL_Wine_Direct3D "UseGLSL" "disabled"
 
# Sound problem fix - pulseaudio related
[ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
[ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
## End Fix
 
# Making shortcut
POL_Shortcut "StarCraft II.exe" "$TITLE" "$TITLE.png" ""
 
if [ "$INSTALL_METHOD" = "DVD" ]; then
        POL_Call POL_Sudo_RehideCdrom
fi
 
POL_SetupWindow_Close
exit

Replies

Anonymous
Thursday 11 May 2017 at 19:48 -
err:xrandr:xrandr12_set_current_mode Resolution change not successful -- perhaps display has changed?
Anonymous
Thursday 11 May 2017 at 20:11 -
this is the error I get in debugger
Anonymous
Friday 12 May 2017 at 0:17 -
full log: https://pastebin.com/DkUdPMBr
Anonymous
Thursday 18 May 2017 at 13:58 -
UPDATE: I managed to get this game to run. Go to "Config" then "Others" and launch shell. Type regedit. Then go to HKEY_current_user > software > wine > X11 Driver (the last one might not be there, create it). Inside the X11 Driver key create a new string value and name it UseXRandR. Then double-click the newly createt value and type "N". Quit regedit. Now the game should run but all the GUI is invisible (you can still click it).
Anonymous
Thursday 18 May 2017 at 17:26 -
UPDATE2:The GUI now works after switching GLSL to Enable. But it might crash with "Core:Out of memory" error if your graphics settings are higher than "High". Keep in mind that this applies to 32bit wineprefix. I haven't tested it on x64 yet.
lacton Saturday 18 March 2017 at 11:09
lacton Anonymous

Message

This installer doesn't work anymore.

The game installs properly. However, starting the game produces a crash with the error message "Error in main StarCraft II Wings of Liberty crashed." The debug log says

Running wine-1.5.10 StarCraft II.exe (Working directory : /home/user/.PlayOnLinux/wineprefix/SC2_WoL/drive_c/Program Files/StarCraft II)
err:winediag:wined3d_dll_init The GLSL shader backend has been disabled. You get to keep all the pieces if it breaks.
fixme:process:GetLogicalProcessorInformation ((nil),0x33dca0): stub
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x19c0

Even with GLSL enabled, the game crashes, with the following log:

Running wine-1.5.10 StarCraft II.exe (Working directory : /home/user/.PlayOnLinux/wineprefix/SC2_WoL/drive_c/Program Files/StarCraft II)
fixme:process:GetLogicalProcessorInformation ((nil),0x33dca0): stub
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x19c0

 

What is the procedure to get this installer removed or replaced?

Replies

lacton Monday 23 January 2017 at 21:47
lacton Anonymous

Message

Thanks, JWP. With the official script, SC2 would install but would freeze at the beginning. With your script, I was able to install and play the game. The installation from the DVD failed, because the file referenced by your script isn't on the DVD. But it doesn't matter, since the installation from the web site worked. Thanks a million for your contribution!

Replies

Anonymous
Tuesday 9 May 2017 at 15:28 -
I'm glad I could help!
jwp Thursday 3 November 2016 at 22:24
jwp Anonymous

Message

I had to make a few changes to the POL to make it work again, I also included some stuff inteded to make Diablo work, but did not test Diablo...

This is working for Starcraft 2 on Ubuntu 16.10 with default AMDGPU driver.

#!/bin/bash
# Date : (2016-11-03 10-00)
# Last revision : (2016-11-03 21:00)
# Wine version used : 1.9.21-staging
# Distribution used to test : Debian Testing x64
# Author : JWP
# Licence : Retail
# Only For : http://www.playonlinux.com
## Staging version is now required for battle.net as per: http://thomas.randle.id.au/blog/2016/01/04/starcraft-2-legacy-void-ubuntu-1404-wine-and-linux-problems-solved/ - Bug 2

[ "$PLAYONLINUX" == "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="StarCraft II"
DEVELOPER="Activision / Blizzard Entertainment"
AUTHOR="JWP"
PREFIX="SC2"
WINEVERSION="1.9.21-staging"
WINEARCH="x86"
WINEOS="win7"
DLURLBASE="http://dist.blizzard.com/downloads/sc2-installers/full/"
GAME_VMS="2048"

# Starting the script
cfg_check
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/starcraft2_wol/top.jpg" "http://files.playonlinux.com/resources/setups/starcraft2_wol/left.jpg" "$TITLE"
POL_SetupWindow_Init

# Starting debugging API
POL_Debug_Init

POL_SetupWindow_presentation "$TITdLE" "$DEVELOPER" "http://www.starcraft2.com" "$AUTHOR" "$PREFIX"
  
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"

# Downloading wine if necessary and creating prefix
POL_System_SetArch "$WINEARCH"
Set_OS "$WINEOS"
POL_Wine_PrefixCreate "$WINEVERSION"

# Installing (mandatory - considering Diablo as well) dependencies
POL_install_corefonts
POL_install_dotnet40
POL_install_dxfullsetup
POL_install_gdiplus
POL_install_gecko
POL_install_msxml3 , 4 , and 6
POL_install RegisterFonts
POL_install riched20
POL_install riched30
POL_install tahoma
POL_install tahoma2
POL_install vcrun2010
POL_install_vcrun2012
POL_Install_vcrun2005 # Fix "Zeratul Missions" crash
POL_Wine_InstallFonts # Fix "Custom map" crash

POL_Wine_OverrideDLL "native,builtin" "dnsapi"
POL_Wine_OverrideDLL "native,builtin" "mshtml" # Fix "Updater" crash - part 2
POL_Wine_OverrideDLL "native,builtin" "msvcr80"
#####
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-runtime-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-heap-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-math-l1-1-0" # Fix "Call from to unimplemented function"
POL_Wine_OverrideDLL "native,builtin" "ucrtbase"
POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
#####
POL_Wine_OverrideDLL "native,builtin""d3dx11"
POL_Wine_OverrideDLL "native,builtin""directmusic"
POL_Wine_OverrideDLL "native,builtin""directplay"
POL_Wine_OverrideDLL "native,builtin""dotnet40"
POL_System_TmpCreate "$PREFIX"
  
POL_SetupWindow_menu "Please Select your language/region" "$TITLE" "English (US)~Español (AL)~Português (BR)~English (EU)~English (SG)~Español (EU)~Deutsch~Français~Italiano~Polski~???????~???~????~????" "~"
    if [ "$APP_ANSWER" == "English (US)" ]
      then INSTNAME="StarCraft-II-Setup-enUS.exe"
    elif [ "$APP_ANSWER" == "Español (AL)" ]
      then INSTNAME="StarCraft-II-Setup-esMX.exe"
    elif [ "$APP_ANSWER" == "Português (BR)" ]
      then INSTNAME="StarCaft-II-Setup-ptBR.exe"
    elif [ "$APP_ANSWER" == "English (EU)" ]
      then INSTNAME="StarCraft-II-Setup-enGB.exe"
    elif [ "$APP_ANSWER" == "English (SG)" ]
      then INSTNAME="StarCraft-II-Setup-enSG.exe"
    elif [ "$APP_ANSWER" == "Español (EU)" ]
      then INSTNAME="StarCraft-II-Setup-esES.exe"
    elif [ "$APP_ANSWER" == "Deutsch" ]
      then INSTNAME="StarCraft-II-Setup-deDE.exe"
    elif [ "$APP_ANSWER" == "Français" ]
      then INSTNAME="StarCraft-II-Setup-frFR.exe"
    elif [ "$APP_ANSWER" == "Italiano" ]
      then INSTNAME="StarCraft-II-Setup-itIT.exe"
    elif [ "$APP_ANSWER" == "Polski" ]
      then INSTNAME="StarCraft-II-Setup-plPL.exe"
    elif [ "$APP_ANSWER" == "???????" ]
      then INSTNAME="StarCraft-II-Setup-ruRU.exe"
    elif [ "$APP_ANSWER" == "???" ]
      then INSTNAME="StarCraft-II-Setup-koKR.exe"
    elif [ "$APP_ANSWER" == "????" ]
      then INSTNAME="StarCraft-II-Setup-zhTW.exe"
    elif [ "$APP_ANSWER" == "????" ]
      then INSTNAME="StarCraft-II-Setup-zhCN.exe"
    fi
DLURL="$DLURLBASE""$INSTNAME"

# Choose between DVD, Digital LOCAL and DOWNLOAD version
POL_SetupWindow_InstallMethod "DVD,LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" == "LOCAL" ]
then
    cd "$HOME"
    POL_SetupWindow_browse "Please select the installation file to run." "$INSTNAME"
    POL_SetupWindow_wait "Installing $TITLE." "$TITLE"
    POL_Wine start /unix "$APP_ANSWER"
elif [ "$INSTALL_METHOD" == "DOWNLOAD" ]
then
    cd "$POL_System_TmpDir"
    POL_Download "$DLURL"
    POL_SetupWindow_wait "Installing $TITLE." "$TITLE"
    POL_Wine start /unix "$POL_System_TmpDir/$INSTNAME"
elif [ "$INSTALL_METHOD" == "DVD" ]
then
    INSTNAME="StarCraft II Setup.exe"
    POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "$INSTNAME"
    POL_Wine start /unix "$CDROM/$INSTNAME"
fi
  
POL_Wine_WaitExit "$TITLE"
  
POL_System_TmpDelete

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver

# Making shortcut
POL_Shortcut "StarCraft II.exe" "$TITLE"
POL_Shortcut "StarCraft II Editor.exe" "$TITLE Editor"

POL_SetupWindow_message "$(eval_gettext 'If you have a runtime error when running the game, open a terminal and type:\nsudo sed -i 's/kernel.yama.ptrace_scope = 1/kernel.yama.ptrace_scope = 0/' /etc/sysctl.d/10-ptrace.conf\nsysctl -p /etc/sysctl.d/10-ptrace.conf\n
There also some other errors in the log file that can be fixed with:\nsudo apt-get install p11-kit-modules:i386 libp11-kit-gnome-keyring:i386')"

POL_SetupWindow_Close
exit

Replies

Anonymous
Friday 12 May 2017 at 11:01 -
I'm afraind your script dosen't work anymore. The game crashes with the exact same error I was having when using the original script redone by me.
RedSoxFan13 Saturday 15 October 2016 at 2:06
RedSoxFan13 Anonymous

Message

It installed, but that's about as far as it got. When I open StarCraft II, it tries to download and install updates, but it's stuck at 27%. Is anyone else having this problem?

Replies

BloodyIron Monday 1 February 2016 at 15:16
BloodyIron

Message

Can we get this updated? WoL hasn't been current for over 15 years... (not really, but quite a few years now).

 

Also, there's way newer versions of wine than 1.5.10

Replies

Anonymous
Tuesday 2 February 2016 at 3:17 -
Try my Battle.net script (you will have to run it locally) - it works with Hearthstone and Heroes of the Storm, it should work with StarCraft2... https://www.playonlinux.com/en/app-2599-BattleNet.html
4402927 Thursday 31 December 2015 at 15:19
4402927 Anonymous

Message

Installer doesn't work... Game works with https://www.playonlinux.com/en/app-1195-Diablo_III.html

Replies

samueldg Wednesday 7 October 2015 at 23:36
samueldg Anonymous

Message

Using wine 1.7.19-staging. All fine for some months .... and .... PATCH 3 BORN!!!! ..... and SC2 doesn't want run.

Now appears a dialog saying that now Starcraft II requires a video card with "vertex shader 3.0", and ... I were playing without problems yesterday!!!!!!

I need help guys, as you know the Blizzard Support for these issues are worst!!!.

 

Thanks!!!!!!!

Replies

Anonymous
Wednesday 7 October 2015 at 23:38 -
I tried 1.7.52-staging and so on with the same problem.
Thursday 8 October 2015 at 3:27 -
That has been reported in the PlayOnLinux forum too https://www.playonlinux.com/en/topic-13464-Starcraft_II__Patch_30_Issues.html
Anonymous
Thursday 8 October 2015 at 15:52 -
Thanks, I'll follow that thread and write here the solution latter.
aclarembeau Sunday 9 August 2015 at 0:05
aclarembeau Anonymous

Message

Feedback for Linux Mint 17.2

I tried to run the pre-made installation but I had a message: "Unable to create graphic context".

I switched from Wine 1.5.10 to 1.7.49 and the problem has been solved.

Then, because I used the "nouveau" free driver for my graphic card (hybrid Intel processor graphic / Geforce 635M), the game launches but there's a very strange coloured screen, probably a graphic bug. I Installed Nvidia-311 proprietary driver and all was solved.

So, my solution:

- install proprietary driver

- use a newer wine version (maybe it must be set to 1.7.49 as default, wouldn't it be easier).

PS: Excuse me for my poor English.

__________________________________________________________

(en français)

Si quand vous lancez le jeu, vous avez un message relatif à un problème de contexte

de carte graphique -> utiliser la version 1.7.49 de wine (dans menu configurer)

Si vous avez des images étranges, iclinées, qui ne représentent rien de particulier

-> pensez à utiliser le pilote propriétaire adéquat (et non pas le pilote libre de base, "nouveau")

______________________________________________________________

Anyway, PlayOnLinux is a marvellous software. Keep on doing

support for our preffered games <3

Replies

Naminal Thursday 30 July 2015 at 21:17
Naminal Anonymous

Message

Bonjour à tous,

Jje rencontre un problème quand j'installe SCT 2 WINGS OF LIBERTY la fenêtre SUDO s'ouvre (au bout de quelques étapes) est me demande mon mot de passe... je l'écrit mais rien ne s'affiche dans la fenêtre, je valide au cas où mais sa ne fonctionne pas.

Cela empêche l'installation de ce terminer correctement! Je débute avec cette OS.

Que je trouve bien au passe, léger, efficace, jolie et gratuit.

Merci pour votre aide.
 

Replies

Thursday 30 July 2015 at 23:31 -
Quelle OS ?
Anonymous
Friday 31 July 2015 at 17:36 -
Linux Unbuntu 14.04
samueldg Monday 11 May 2015 at 10:47
samueldg Anonymous

Message

Here is a sound problem.

I had the program running fine with an INTEL GRAPHICS CARD with 128 and/or 256 video ram whith this script:

#!/bin/sh

export force_s3tc_enable=true

/usr/share/playonlinux/playonlinux --run "StarCraft II" $1

My problem is with the sound. On first time, when I run SC2 i have no sound issue, but, after a time playing the sound and the voice chat goes off and/or distortioned (I cannot hear it fine, with no known sounds).

On second time, I can observe that launching TeamSpeak 3 before SC2, directly the sound where distortioned, and is not usable.

Fine, I observe that if I launch the POL WINECFG over SC2 installation, I have all my PC sound hardware selectable, but if I launch it with TeamSpeak 3 (for linux, obviously) running, POL WINECFG lost my default sound hardware and the sound test were distortioned.

I have CENTOS 6 x64.

I think I have any type of conflict with Pulseaudio and/or snd_hda_intel, because my system need the same driver for the normal audio (REALTEK ALC887-VD).

I cannot find that model on my /usr/share/doc/kernel-doc-2.6.32/Documentation/sound/alsa/HD-Audio-Models.txt file to see what are the exact parameters to allow me use it without problems.

Please, help me a bit with this issue, I need use TS3 for multiplayer when I play SC2 with my friends.

Regards

Replies

Anonymous
Monday 11 May 2015 at 12:51 -
You can see the alsa-info report here:
Anonymous
Monday 11 May 2015 at 12:51 -
https://www.dropbox.com/s/9srlf28b9ywmyt6/alsa-info.txt?dl=0
Monday 11 May 2015 at 12:58 -
Do you have the problem with an other version of wine ? try the 1.7.39
Monday 11 May 2015 at 16:25 -
(fyi plain Wine does not support PulseAudio https://www.playonlinux.com/en/issue-1314.html)
Anonymous
Monday 11 May 2015 at 20:46 -
All the versions tried had de same simptoms, when I run POL-WINECFG while TS3 is running, I cannot select the correct OUTPUT DEVICE and when I launch the game, the sound goes distortioned.
Anonymous
Monday 11 May 2015 at 21:02 -
Tried: 1.7.39, 1.7.39-staging, 1.7.42, 1.7.42-staging, 1.7.19, 1.7.19-staging, 1.5.10 and 1.4. All with the same simptoms, the real output device is not recogniced when TS3 is running and then, the output sound goes distorioned.
Anonymous
Tuesday 12 May 2015 at 22:32 -
With 1.7.19-staging, wine cannot detect fine the audio device used, but putting the "system default" the audio doesn't go bad at first run. All appears fine now, but when I exit SC2 and enter again I have no sound. All appears to be fine now, but I have this issue that force me to reboot system to allow me play with sound again.
Yuoso Saturday 10 January 2015 at 15:46
Yuoso Anonymous

Message

Hello all.  I am having difficulty installing SC2- WOL on Ubuntu with PlayOnLinux.  

The error I get is "Internal error - invalid parameters recieved"
POL Version: 4.2.5

OS: Ubuntu 14.04
Machine: Sony Vaio VPCF23JFX

What information is needed to help track this down?  

Thanks!

Replies

Thursday 7 May 2015 at 21:19 -
It's a Battle.net error ? I think the wine version is no more compatible with him. The error append at the start of the application ?
bodtx Wednesday 26 November 2014 at 23:28
bodtx Anonymous

Message

Hello I'm trying this on linux mint 15

It goes untill the download of starcraft and the switch the screen and says wine received invalid parameters

looks like a gaphic problem

I have  a

VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 630] (rev a1)


and official nvidia drivers

here is the playonlinux log:

http://mrte.rc.free.fr/playonlinux.log.zip

thx for any help

 

 

Replies

Thursday 27 November 2014 at 7:16 -
[11/26/14 22:59:22] - Running wine-1.5.10 cmd /c echo %ProgramFiles%
%SystemDrive%\Program Files
The virtual drive is corrupted, remove it and reinstall from scratch. By the way PlayOnLinux 4.1.1 is obsolete (released May 20th, 2012)
Anonymous
Friday 28 November 2014 at 8:34 -
Hi thx, indeed, I've upgraded playonlinux to 4.2.5 but same error: after clicking on install SC2 (when it is supposed to DL the 15GB).
Anonymous
Friday 28 November 2014 at 8:35 -
Here are the logs: http://mrte.rc.free.fr/playonlinux.log2.zip
Anonymous
Friday 28 November 2014 at 8:43 -
I think these errors are about résolution not found:
fixme:d3d9:D3DPERF_GetStatus (void) : stub
fixme:win:EnumDisplayDevicesW ((null),0,0x33c470,0x00000000), stub!
err:wgl:glxdrv_wglSetPixelFormat Couldn't set format of the window, returning failure
err:d3d:context_create Failed to set pixel format 1 on device context 0x348.
err:d3d:context_choose_pixel_format Can't find a suitable iPixelFormat
fixme:process:GetLogicalProcessorInformation (0x585e338,0x585e938): stub
err:wgl:glxdrv_wglSetPixelFormat Couldn't set format of the window, returning failure
err:d3d:context_create Failed to set pixel format 1 on device context 0x514.
fixme:d3d:wined3d_get_format Can't find format WINED3DFMT_R24_UNORM_X8_TYPELESS (0x49) in the format lookup table
fixme:d3d:getDepthStencilBits Unsupported depth/stencil format WINED3DFMT_UNKNOWN.

I've already try to enable emulate virtual device in wine, but it did not change the error
Friday 28 November 2014 at 14:51 -
Do you have deleted the old wineprefix and reinstall StarCraft 2 ?
Anonymous
Friday 28 November 2014 at 15:52 -
Yes I've deleted this directory:
Anonymous
Friday 28 November 2014 at 15:53 -
/home/alexis/.PlayOnLinux/wineprefix/SC2_WoL
and the screen I have is this one
http://snag.gy/0AUuW.jpg
Friday 28 November 2014 at 18:03 -
and the link, can you give me the link (the error code), so I can check the problem
Anonymous
Friday 28 November 2014 at 22:06 -
I'm experiencing the same problem. I have just installed POL so I guess it's the latest version, installed SC1 and now tried to install SC2. Same error as above.
Anonymous
Saturday 29 November 2014 at 22:40 -
ok here is the link: https://us.battle.net/support/en/article/blzbntbna0000000a

I've made it work!, well I wanted to try with wine 1.7.31, but each time I launch the install playonlinux.cfg was overwritten and wine version was set to 1.5.10
So i've changed the file after starting the install and it works
may be trying to set it readonly and change the wine version could work.
Anyway no I've set the wine version with playonlinux config menu and it stays on 1.7.31.
SC2 seems to work perfectly now
thx for the job
Saturday 29 November 2014 at 22:44 -
I will check that version soon :) (sorry but I'm busy)
Anonymous
Thursday 7 May 2015 at 19:18 -
i changed wine in the sc2 prefix to windows 7 and verson 1.7.40, it is now running battlenet and downloading sc2, installing ... so far so good :) assuming it will work for now, unless you hear from me again here; glhf
Anonymous
Thursday 7 May 2015 at 19:21 -
oh, i chose, 'run exe in this virtual space' or what it says there, in the configurator for play on linux and sc2... so i was able to x-out the playonlinux windows and battlenet is still installing sc2; though it does not show in playonlinux as being installed or installing
Anonymous
Thursday 7 May 2015 at 19:43 -
able to play a game, though graphics were mostly stuck on low; game locked up computer when my tank started firing, or when enemy group started destroying our buildings, not sure which; it showed halfway through the tank blast though; was able to ctrl+alt+del but not init 1; going to attempt a reinstall using playonlinux but this time with 1.7.40 wine, i hope
Anonymous
Thursday 7 May 2015 at 20:07 -
yeah, it is fried, scrapping; maybe do from scratch if anyone has a good howto
Tutul Friday 13 June 2014 at 15:31
Tutul
Moderator

Warning

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

Differences

@@ -1,7 +1,7 @@
 #!/bin/bash
 # Date : (2010-04-08 10-00)
 # Last revision : (2011-08-28 21:00)
-# Wine version used : 1.3.3, 1.3.11, 1.3.17, 1.3.25, 1.3.26, 1.3.27
+# Wine version used : 1.3.3, 1.3.11, 1.3.17, 1.3.25, 1.3.26, 1.3.27, 1.7.19
 # Distribution used to test : Debian Testing x64
 # Author : GNU_Raziel
 # Licence : Retail
@@ -10,10 +10,10 @@
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
-TITLE="StarCraft II Wings of Liberty"
+TITLE="StarCraft II" # The script also works for Heart of the Swarm (Tutul)
 EDITOR="StarCraft II Editor"
-PREFIX="SC2_WoL"
-WORKING_WINE_VERSION="1.5.10"
+PREFIX="SC2" # The script also works for Heart of the Swarm (Tutul)
+WORKING_WINE_VERSION="1.7.19" # Fix Battle.net crash and better quality in-game (Tutul)
 GAME_VMS="128"
 
 # Starting the script
@@ -80,7 +80,7 @@
 ## End Fix
 
 # Making shortcut
-POL_Shortcut "StarCraft II.exe" "$TITLE" "$TITLE.png" ""
+POL_Shortcut "StarCraft II.exe" "$TITLE" "$TITLE.png" "" # bad icon => POL icon (Tutul)
 POL_Shortcut "StarCraft II Editor.exe" "$EDITOR" "$EDITOR.png" ""
 
 if [ "$INSTALL_METHOD" = "DVD" ]; then

New source code

#!/bin/bash
# Date : (2010-04-08 10-00)
# Last revision : (2011-08-28 21:00)
# Wine version used : 1.3.3, 1.3.11, 1.3.17, 1.3.25, 1.3.26, 1.3.27, 1.7.19
# Distribution used to test : Debian Testing x64
# Author : GNU_Raziel
# Licence : Retail
# Only For : http://www.playonlinux.com

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

TITLE="StarCraft II" # The script also works for Heart of the Swarm (Tutul)
EDITOR="StarCraft II Editor"
PREFIX="SC2" # The script also works for Heart of the Swarm (Tutul)
WORKING_WINE_VERSION="1.7.19" # Fix Battle.net crash and better quality in-game (Tutul)
GAME_VMS="128"

# Starting the script

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/starcraft2_wol/top.jpg" "http://files.playonlinux.com/resources/setups/starcraft2_wol/left.jpg" "$TITLE"
POL_SetupWindow_Init

# Starting debugging API
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Blizzard Entertainment" "http://eu.starcraft2.com/" "GNU_Raziel" "$PREFIX" 

# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"

# Downloading wine if necessary and creating prefix
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# Choose between DVD and Digital Download version
POL_SetupWindow_InstallMethod "DVD,LOCAL"

# Installing mandatory dependencies

POL_Call POL_Install_vcrun2005 # Fix "Zeratul Missions" crash
POL_Wine_InstallFonts # Fix "Custom map" crash

if [ "$INSTALL_METHOD" == "DVD" ]; then
        # Asking for CDROM and checking if it's correct one
        POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"

        POL_SetupWindow_cdrom
        POL_Call POL_Sudo_UnhideCdrom
        POL_SetupWindow_check_cdrom "Installer.exe"

        SetupIs="$CDROM/Installer.exe"

        POL_Wine start /unix "$SetupIs"
        POL_Wine_WaitExit "$TITLE"
else
        # Asking then installing DDV of the game
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
fi

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

## Fix for this game
POL_Wine_OverrideDLL "native,builtin" "mshtml" # Fix "Updater" crash - part 2

# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver

# Performance Tweak
POL_Wine_Direct3D "UseGLSL" "disabled"

# Sound problem fix - pulseaudio related
[ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
[ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
## End Fix

# Making shortcut
POL_Shortcut "StarCraft II.exe" "$TITLE" "$TITLE.png" "" # bad icon => POL icon (Tutul)
POL_Shortcut "StarCraft II Editor.exe" "$EDITOR" "$EDITOR.png" ""

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

POL_SetupWindow_message "$(eval_gettext 'If you have a runtime error when running the game, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"

POL_SetupWindow_Close
exit

Replies

Anonymous
Sunday 27 July 2014 at 8:55 -
I'm so frustrated i would really love your help.
Anonymous
Sunday 27 July 2014 at 9:00 -
I have used both your scripts after trying to install starcraft, and they seem to be working, i know there must be something small that is stopping me from enjoying my game. My problem is i can't see my mouse pointer. I have managed to get sound working, but the game, when i start it, comes up on screen, but behind it i can see the desktop has shrunk to a smaller size. This and the mouse becoming invisible make it a little hard to play. I know other people have got it working i would really love some help please. I am about to try uninstalling wine 1.7 and using your original script again to see if that makes a difference. Please help. I'd be very grateful. Thank you in advance.
Sunday 3 August 2014 at 15:53 -
And with wine 1.7.20 or 1.7.22 ?
Anonymous
Friday 12 December 2014 at 23:38 -
With this updated version I can install Starcraft II with Debian Testing / Jessie.
Anonymous
Thursday 30 July 2015 at 23:25 -
This worked great for me on Bodhi 3.0 (based on Ubuntu 14.04). AMD graphics, Intel CPU. I tinkered with a lot of things before trying this: I wish I would have tried it first and saved some time!

Thanks again for posting this.
rashintawak Friday 13 June 2014 at 15:30
rashintawak Anonymous

Message

J'ai juste du passer à une version plus récente de wine que la 1.5 mais tout fonctione bien, et j'en suis d'ailleur le premier surpris, les parties classés me sont possible dans le sens où je n'ai pas de handicap majeur suplémentaire, tout s'affiche et est fluide ! ( même si il doit y avoir quelque FPS en moins, rien de perseptible pour le comun des mortelles de mon coté).

Replies