Вы находитесь здесь

Starcraft Patch 1.18

Informations

Creator Message
palas Anonymous

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 3354
Wine: 2.8-staging

Feedbacks

Description

With the new version of Wine 2.8, it seems that the free version of Starcraft - Broodwar (1.18) works seamlessly without much effort.

Source code

#!/bin/bash
# Date : (2017-05-18 2:35)
# Last revision : (2017-11-17 13:19)
# Wine version used : 2.8-staging
# Distribution used to test : Ubuntu 17.04 64bit
# Author : palas
# Script licence : GPLv3

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

TITLE="Starcraft"
PREFIX="Starcraft1.18"
EDITOR="Blizzard"
AUTHOR="palas"
GAME_URL="http://eu.blizzard.com/pl-pl/games/sc/"
WORKING_WINE_VERSION="2.8-staging"
 
POL_SetupWindow_Init
POL_Debug_Init
POL_System_TmpCreate "$TITLE"
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"

POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
 
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then

cd "$POL_System_TmpDir" 
POL_Download https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=STARCRAFT
POL_Wine start /unix "$POL_System_TmpDir/StarCraft-Setup.exe"
#POL_Wine_WaitExit "StarCraft-Setup.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
 
POL_SetupWindow_message "Please, click next when the installation process has finshed."
 
POL_System_TmpDelete
 
POL_Shortcut "StarCraft.exe" "Starcraft - BroodWar"
POL_Shortcut "StarEdit.exe" "Starcraft Map Editor"
 
POL_SetupWindow_Close
 
exit

Contributions

Filters:

Contribute
Member Message
LinuxScripter Friday 17 November 2017 at 13:32
LinuxScripter Anonymous

Information

This update has been approved by the team.

Message

The download section of the script refused to work. Fixed it.

Differences

@@ -0,0 +1,58 @@
+#!/bin/bash
+# Date : (2017-05-18 2:35)
+# Last revision : (2017-11-17 13:19)
+# Wine version used : 2.8-staging
+# Distribution used to test : Ubuntu 17.04 64bit
+# Author : palas
+# Script licence : GPLv3
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+TITLE="Starcraft"
+PREFIX="Starcraft1.18"
+EDITOR="Blizzard"
+AUTHOR="palas"
+GAME_URL="http://eu.blizzard.com/pl-pl/games/sc/"
+WORKING_WINE_VERSION="2.8-staging"
+ 
+POL_SetupWindow_Init
+POL_Debug_Init
+POL_System_TmpCreate "$TITLE"
+ 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+
+POL_Wine_SelectPrefix "$PREFIX"
+
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+ 
+POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
+ 
+if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
+
+cd "$POL_System_TmpDir" 
+POL_Download https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=STARCRAFT
+POL_Wine start /unix "$POL_System_TmpDir/StarCraft-Setup.exe"
+#POL_Wine_WaitExit "StarCraft-Setup.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
+ 
+POL_SetupWindow_message "Please, click next when the installation process has finshed."
+ 
+POL_System_TmpDelete
+ 
+POL_Shortcut "StarCraft.exe" "Starcraft - BroodWar"
+POL_Shortcut "StarEdit.exe" "Starcraft Map Editor"
+ 
+POL_SetupWindow_Close
+ 
+exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2017-05-18 2:35)
# Last revision : (2017-11-17 13:19)
# Wine version used : 2.8-staging
# Distribution used to test : Ubuntu 17.04 64bit
# Author : palas
# Script licence : GPLv3

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

TITLE="Starcraft"
PREFIX="Starcraft1.18"
EDITOR="Blizzard"
AUTHOR="palas"
GAME_URL="http://eu.blizzard.com/pl-pl/games/sc/"
WORKING_WINE_VERSION="2.8-staging"
 
POL_SetupWindow_Init
POL_Debug_Init
POL_System_TmpCreate "$TITLE"
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"

POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
 
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then

cd "$POL_System_TmpDir" 
POL_Download https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=STARCRAFT
POL_Wine start /unix "$POL_System_TmpDir/StarCraft-Setup.exe"
#POL_Wine_WaitExit "StarCraft-Setup.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
 
POL_SetupWindow_message "Please, click next when the installation process has finshed."
 
POL_System_TmpDelete
 
POL_Shortcut "StarCraft.exe" "Starcraft - BroodWar"
POL_Shortcut "StarEdit.exe" "Starcraft Map Editor"
 
POL_SetupWindow_Close
 
exit

Replies

palas Thursday 18 May 2017 at 2:36
palas Anonymous

Warning

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

Differences

@@ -0,0 +1,46 @@
+#!/bin/bash
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+POL_SetupWindow_Init
+
+POL_SetupWindow_message "This script will help you download and install StarCraft." "Installing StarCraft"
+
+POL_Wine_SelectPrefix "Starcraft"
+
+POL_Wine_PrefixCreate "2.8-staging"
+
+POL_System_TmpCreate "StarcraftInstallation"
+	
+cd "$POL_System_TmpDir"
+
+POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
+
+if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
+
+    POL_SetupWindow_wait "Please wait. Downloading installer..." "Installing StarCraft"
+    POL_System_wget "https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=STARCRAFT"
+    mv "getInstallerForGame?os=win&version=LIVE&gameProgram=STARCRAFT" "setup.exe"
+    POL_SetupWindow_wait_next_signal "Please wait. Installing..." "Installing StarCraft"
+    wine "$POL_System_TmpDir/setup.exe"
+    POL_SetupWindow_detect_exit
+
+else
+
+    POL_SetupWindow_browse "Please select the installation file to run." "Installing StarCraft"
+    POL_SetupWindow_wait_next_signal "Please wait. Installing..." "Installing StarCraft"
+    wine "$APP_ANSWER"
+    POL_SetupWindow_detect_exit
+
+fi
+
+POL_SetupWindow_message "Please, click next when the installation process has finshed." "Installing StarCraft"
+
+POL_System_TmpDelete
+
+POL_Shortcut "StarCraft.exe" "Starcraft - BroodWar"
+POL_Shortcut "StarEdit.exe" "Starcraft Map Editor"
+
+POL_SetupWindow_Close
+
+exit

New source code

#!/bin/bash
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

POL_SetupWindow_Init

POL_SetupWindow_message "This script will help you download and install StarCraft." "Installing StarCraft"

POL_Wine_SelectPrefix "Starcraft"

POL_Wine_PrefixCreate "2.8-staging"

POL_System_TmpCreate "StarcraftInstallation"
        
cd "$POL_System_TmpDir"

POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"

if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then

    POL_SetupWindow_wait "Please wait. Downloading installer..." "Installing StarCraft"
    POL_System_wget "https://www.battle.net/download/getInstallerForGame?os=win&version=LIVE&gameProgram=STARCRAFT"
    mv "getInstallerForGame?os=win&version=LIVE&gameProgram=STARCRAFT" "setup.exe"
    POL_SetupWindow_wait_next_signal "Please wait. Installing..." "Installing StarCraft"
    wine "$POL_System_TmpDir/setup.exe"
    POL_SetupWindow_detect_exit

else

    POL_SetupWindow_browse "Please select the installation file to run." "Installing StarCraft"
    POL_SetupWindow_wait_next_signal "Please wait. Installing..." "Installing StarCraft"
    wine "$APP_ANSWER"
    POL_SetupWindow_detect_exit

fi

POL_SetupWindow_message "Please, click next when the installation process has finshed." "Installing StarCraft"

POL_System_TmpDelete

POL_Shortcut "StarCraft.exe" "Starcraft - BroodWar"
POL_Shortcut "StarEdit.exe" "Starcraft Map Editor"

POL_SetupWindow_Close

exit

Replies

Anonymous
Thursday 18 May 2017 at 2:38
I posted the source code as a separate message because I couldn't find the way to edit my message. If a moderator sees this, feel free to merge both messages.