Starcraft II Heart of the Swarm

Informations

Creator Message
EdRIn

Warning

This installer has not been approved yet by the team.

Informations

Platforms:
Downloads: 0
Wine: System

Feedbacks

Description

StarCraft II: Heart of the Swarm is an expansion pack to the military science fiction real-time strategy game StarCraft II: Wings of Liberty by Blizzard Entertainment. Heart of the Swarm is the second part of a planned StarCraft II trilogy, with part three titled Legacy of the Void.

The expansion includes additional units and multiplayer changes from Wings of Liberty, as well as a continuing campaign focusing on the Zerg race, following Sarah Kerrigan in her effort to regain control of the swarm and exact her revenge on the Terran Dominion's emperor, Arcturus Mengsk. On July 15, 2015, Heart of the Swarm was made a standalone title, allowing play without having first purchased Wings of Liberty.

Source code

                

Contributions

Filters:

Contribute
Member Message
EdRIn Friday 2 October 2015 at 9:07
EdRIn

Warning

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

Differences

@@ -0,0 +1,98 @@
+#!/bin/bash
+# Date : (2010-04-08 10-00)
+# Last revision : (2015-10-01 22:00)
+# Wine version used : 1.7.51
+# Distribution used to test : Ubuntu 14.10
+# Author : GNU_Raziel Hots update by EdRIn
+# Licence : Retail
+# Only For : http://www.playonlinux.com
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="StarCraft II Heart of The Swarm"
+EDITOR="StarCraft II Editor"
+PREFIX="SC2_Hot"
+WORKING_WINE_VERSION="1.7.51"
+GAME_VMS="4096"
+ 
+# 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"
+
+# Create Tmp directory
+POL_System_TmpCreate "$PREFIX"
+
+ 
+# Downloading wine if necessary and creating prefix
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+
+POL_SetupWindow_message "You can download the game installer file at https://eu.battle.net/account/download/" "Installer file"
+
+# 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" "hots_icon.png" ""
+POL_Shortcut "StarCraft II Editor.exe" "$EDITOR" "Starcraft-2-Editor-2-icon.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

New source code

#!/bin/bash
# Date : (2010-04-08 10-00)
# Last revision : (2015-10-01 22:00)
# Wine version used : 1.7.51
# Distribution used to test : Ubuntu 14.10
# Author : GNU_Raziel Hots update by EdRIn
# Licence : Retail
# Only For : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="StarCraft II Heart of The Swarm"
EDITOR="StarCraft II Editor"
PREFIX="SC2_Hot"
WORKING_WINE_VERSION="1.7.51"
GAME_VMS="4096"
 
# 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"

# Create Tmp directory
POL_System_TmpCreate "$PREFIX"

 
# Downloading wine if necessary and creating prefix
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_SetupWindow_message "You can download the game installer file at https://eu.battle.net/account/download/" "Installer file"

# 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" "hots_icon.png" ""
POL_Shortcut "StarCraft II Editor.exe" "$EDITOR" "Starcraft-2-Editor-2-icon.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

Friday 2 October 2015 at 9:09
Sorry I couldn't add the code when I the message.
Friday 2 October 2015 at 9:50
GAME_VMS="4096"
4GB of VRAM looks very high for minimum system requirements, I read 512MB somewhere?
POL_SetupWindow_message "You can download the game installer file at https://eu.battle.net/account/download/" "Installer file"
You forgot localization support on that one
Friday 2 October 2015 at 10:26
Hi, Thanks for the comments.
Actually this script is just an "updated" version of SC2 WoL, but I think it can be great for a newbie to see SC2:HotS in the game list then download the installer on battle.net and install it.
I checked the min spec and they are GeForce7600GT 256 Mb Ram. I'll change to 256 then.
About localization, I'll work on it because the wiki isn't really explicit about it.