Starcraft : BroodWar
Informations
| Creator | Wiadmości |
|---|---|
Quentin PÂRIS
|
WarningThis installer is a beta script. It means that it might not work as expected InformationsPlatforms: Feedbacks1 1 Source code#!/bin/bash
# CHANGELOG
# [Martenk] (2017-12-26 20-23)
# Adding download free version from battle.net
# Changing name from Starcraft to StarCraft
# [SuperPlumus] (2013-06-09 15-26)
# gettext + clean
# Fix POL_SetupWindow_browe -> POL_SetupWindow_browse (missing 's')
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="StarCraft : BroodWar"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Blizzard" "http://www.blizzard.com" "Zoloom" "StarCraft"
POL_Wine_SelectPrefix "StarCraft"
POL_Wine_PrefixCreate "2.21-staging"
POL_Wine_InstallFonts
Set_OS "win7"
POL_System_TmpCreate "StarCraft"
POL_SetupWindow_InstallMethod "CD,LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]; then
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SetupIs="$APP_ANSWER"
fi
if [ "$INSTALL_METHOD" = "CD" ]; then
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
SetupIs="$CDROM/setup.exe"
fi
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
cd "$POL_System_TmpDir"
POL_Download "https://battle.net/download/getInstallerForGame?os=WIN&version=LIVE&gameProgram=STARCRAFT"
mv getInstallerForGame\?os=WIN\&version=LIVE\&gameProgram=STARCRAFT StarCraft-Setup.exe
SetupIs="$POL_System_TmpDir/StarCraft-Setup.exe"
fi
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"
POL_System_TmpDelete
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
POL_Shortcut "Battle.net\ Launcher.exe" "$TITLE"
else
POL_Shortcut "StarCraft.exe" "$TITLE"
fi
POL_SetupWindow_Close
exit 0 |
Contributions
Filters:
Contribute| Member | Wiadmości |
| martenk | Wednesday 27 December 2017 at 23:58 |
martenk
|
InformationThis update has been approved by the team. WiadmościHere's a change that enables you to install the free version from battle.net. If you are running ubuntu you will need to install ttf-mscorefonts-installer to get battle.net launcher to work properly. Differences@@ -1,6 +1,9 @@
#!/bin/bash
# CHANGELOG
+# [Martenk] (2017-12-26 20-23)
+# Adding download free version from battle.net
+# Changing name from Starcraft to StarCraft
# [SuperPlumus] (2013-06-09 15-26)
# gettext + clean
# Fix POL_SetupWindow_browe -> POL_SetupWindow_browse (missing 's')
@@ -8,17 +11,21 @@
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
-TITLE="Starcraft : BroodWar"
+TITLE="StarCraft : BroodWar"
POL_SetupWindow_Init
POL_Debug_Init
-POL_SetupWindow_presentation "$TITLE" "Blizzard" "http://www.blizzard.com" "Zoloom" "Starcraft"
+POL_SetupWindow_presentation "$TITLE" "Blizzard" "http://www.blizzard.com" "Zoloom" "StarCraft"
-POL_Wine_SelectPrefix "Starcraft"
-POL_Wine_PrefixCreate "1.4"
+POL_Wine_SelectPrefix "StarCraft"
+POL_Wine_PrefixCreate "2.21-staging"
+POL_Wine_InstallFonts
+Set_OS "win7"
-POL_SetupWindow_InstallMethod "CD,LOCAL"
+POL_System_TmpCreate "StarCraft"
+
+POL_SetupWindow_InstallMethod "CD,LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]; then
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
@@ -31,10 +38,22 @@
SetupIs="$CDROM/setup.exe"
fi
+if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
+ cd "$POL_System_TmpDir"
+ POL_Download "https://battle.net/download/getInstallerForGame?os=WIN&version=LIVE&gameProgram=STARCRAFT"
+ mv getInstallerForGame\?os=WIN\&version=LIVE\&gameProgram=STARCRAFT StarCraft-Setup.exe
+ SetupIs="$POL_System_TmpDir/StarCraft-Setup.exe"
+fi
+
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"
-POL_Shortcut "StarCraft.exe" "$TITLE"
+POL_System_TmpDelete
+if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
+ POL_Shortcut "Battle.net\ Launcher.exe" "$TITLE"
+else
+ POL_Shortcut "StarCraft.exe" "$TITLE"
+fi
POL_SetupWindow_Close
exit 0
\ No newline at end of file
New source code#!/bin/bash
# CHANGELOG
# [Martenk] (2017-12-26 20-23)
# Adding download free version from battle.net
# Changing name from Starcraft to StarCraft
# [SuperPlumus] (2013-06-09 15-26)
# gettext + clean
# Fix POL_SetupWindow_browe -> POL_SetupWindow_browse (missing 's')
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="StarCraft : BroodWar"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Blizzard" "http://www.blizzard.com" "Zoloom" "StarCraft"
POL_Wine_SelectPrefix "StarCraft"
POL_Wine_PrefixCreate "2.21-staging"
POL_Wine_InstallFonts
Set_OS "win7"
POL_System_TmpCreate "StarCraft"
POL_SetupWindow_InstallMethod "CD,LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]; then
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SetupIs="$APP_ANSWER"
fi
if [ "$INSTALL_METHOD" = "CD" ]; then
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
SetupIs="$CDROM/setup.exe"
fi
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
cd "$POL_System_TmpDir"
POL_Download "https://battle.net/download/getInstallerForGame?os=WIN&version=LIVE&gameProgram=STARCRAFT"
mv getInstallerForGame\?os=WIN\&version=LIVE\&gameProgram=STARCRAFT StarCraft-Setup.exe
SetupIs="$POL_System_TmpDir/StarCraft-Setup.exe"
fi
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"
POL_System_TmpDelete
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
POL_Shortcut "Battle.net\ Launcher.exe" "$TITLE"
else
POL_Shortcut "StarCraft.exe" "$TITLE"
fi
POL_SetupWindow_Close
exit 0 Odpowiedzi |
| xampf | Monday 10 July 2017 at 5:09 |
xampf
|
WiadmościI managed to install sc:bw 1.18.8 using wine 2.11 staging (32bit). It also seems to run flawlessly under this version (including battle.net). Maybe reflect this change in a new installscript. OdpowiedziMonday 10 July 2017 at 5:13
|
| krichter | Friday 18 March 2016 at 22:58 |
krichter
|
WiadmościAfter installation of Starcraft and Starcraft patch 1.15.2 (tried with and without the latter) the installation of `Starcraft BroadWar` fails with `wine` error `Internal errors - invalid paramters received`. OdpowiedziFriday 9 September 2016 at 3:24
Friday 9 September 2016 at 3:28
|
This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com
Install this program