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: 233081
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
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

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