Starcraft : BroodWar

Informations

Créateur Messages
Quentin PÂRIS Anonymous

Attention

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

Informations

Plate-formes :
Téléchargements : 70056
Wine: 2.21-staging

Retours d'expérience

Code source

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

Contribuer
Membre Messages
martenk Mercredi 27 Décembre 2017 à 23:58
martenk Anonymous

Information

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

Messages

Here'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

Nouveau code source

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

Réponses

xampf Lundi 10 Juillet 2017 à 5:09
xampf Anonymous

Messages

I 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.
 

Réponses

Anonymous
Lundi 10 Juillet 2017 à 5:13
Furthermore sc:bw is now freeware, so the script could go and download the installer from battle.net. Furthermore from version 1.18 on, any wine version before 1.9-staging doesn't work anymore to actually run the game.
krichter Vendredi 18 Mars 2016 à 22:58
krichter Anonymous

Messages

After 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`.

Réponses

Anonymous
Vendredi 9 September 2016 à 3:24
I was experiencing the same issue. Here's how I worked around it (confirmed working in 1.9.18):
Anonymous
Vendredi 9 September 2016 à 3:28
1. Make sure that "Emulate a virtual desktop" is selected in your Wine settings for your Starcraft wine prefix
2. From the Wine configuration screen in POL, select "Command prompt"
3. When the virtual desktop opens with a command prompt, navigate to you Brood War CD by typing D: (replace D: with whichever drive letter your disc or image is mounted to)
4. enter "start setup.exe" at the prompt. The Starcraft: Brood War installer application should run.
5. Install Brood War as normal
6. Once the installer finishes running, I recommend launching the game and applying the most recent patch (1.16.1) by hitting the Multiplayer option at the main screen and allowing the Bnet updater to run and patch the game. You will now be able to play Starcraft and Starcraft: Brood War with no CD perfectly.

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