You are here Supported software Starcraft II Wings of Liberty
| Creator | Message |
|---|---|
Tutul
Moderator
|
InformationThis installer has been approved by the team. InformationsPlatforms: Feedbacks1 10 DescriptionFrançais : 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 |
Filters:
Contribute| Member | Message |
| LinuxScripter | Thursday 11 May 2017 at 18:42 |
LinuxScripter
|
WarningThis update has not been approved yet by the team. MessageI 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 |
| lacton | Saturday 18 March 2017 at 11:09 |
lacton
|
MessageThis 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) 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)
What is the procedure to get this installer removed or replaced? Replies |
| lacton | Monday 23 January 2017 at 21:47 |
lacton
|
MessageThanks, 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 |
| jwp | Thursday 3 November 2016 at 22:24 |
jwp
|
MessageI 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 [ "$PLAYONLINUX" == "" ] && exit 0 # Starting the script # Starting debugging API POL_SetupWindow_presentation "$TITdLE" "$DEVELOPER" "http://www.starcraft2.com" "$AUTHOR" "$PREFIX" # Downloading wine if necessary and creating prefix # Installing (mandatory - considering Diablo as well) dependencies POL_Wine_OverrideDLL "native,builtin" "dnsapi" # Choose between DVD, Digital LOCAL and DOWNLOAD version # Asking about memory size of graphic card # Set Graphic Card information keys for wine # Making shortcut 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 POL_SetupWindow_Close Replies |
| RedSoxFan13 | Saturday 15 October 2016 at 2:06 |
RedSoxFan13
|
MessageIt 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
|
MessageCan 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 |
| 4402927 | Thursday 31 December 2015 at 15:19 |
4402927
|
MessageInstaller 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
|
MessageUsing 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 |
| aclarembeau | Sunday 9 August 2015 at 0:05 |
aclarembeau
|
MessageFeedback 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
|
MessageBonjour à 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 |
| samueldg | Monday 11 May 2015 at 10:47 |
samueldg
|
MessageHere 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 |
| Yuoso | Saturday 10 January 2015 at 15:46 |
Yuoso
|
MessageHello all. I am having difficulty installing SC2- WOL on Ubuntu with PlayOnLinux. Replies |
| bodtx | Wednesday 26 November 2014 at 23:28 |
bodtx
|
MessageHello 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)
here is the playonlinux log: http://mrte.rc.free.fr/playonlinux.log.zip thx for any help
Replies |
| Tutul | Friday 13 June 2014 at 15:31 |
Tutul
Moderator
|
WarningThis update has not been approved yet by the team. 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 |
| rashintawak | Friday 13 June 2014 at 15:30 |
rashintawak
|
MessageJ'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 |