Starcraft Patch 1.18

Informations

Créateur Messages
palas Anonymous

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 3584
Wine: 2.8-staging

Retours d'expérience

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.

Code source

#!/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:

Contribuer
Membre Messages
LinuxScripter Vendredi 17 Novembre 2017 à 13:32
LinuxScripter Anonymous

Information

Cette mise à jour a été acceptée par l'équipe

Messages

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

Nouveau code source

#!/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

Réponses

palas Jeudi 18 Mai 2017 à 2:36
palas Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

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

Nouveau code source

#!/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

Réponses

Anonymous
Jeudi 18 Mai 2017 à 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.

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