Starcraft

Informations

Créateur Messages
Quentin PÂRIS
Admin

Attention

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

Informations

Plate-formes :
Téléchargements : 70139
Wine: 3.0.3

Retours d'expérience

Description

Code source

#!/bin/bash

# CHANGELOG
# [Quentin PÂRIS] (2010 ?)
#   Initial writting.
# [SuperPlumus] (2013-06-09 15-11)
#   gettext
#   clean code
#   fix $PLAYONLINUX variable check
#   fix POL_SetupWindow_browe -> POL_SetupWindow_browse (missing 's')
# [Dadu042] (2020-02-20 17:15)
#   Wine 1.7.46 (outdated) -> 3.0.3 (untested)
#   Add function to set a virtual desktop window.
#   Add POL_RequiredVersion "4.1.0" 
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Starcraft"
PREFIX="Starcraft"
WORKING_WINE_VERSION="3.0.3"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Blizzard" "http://www.blizzard.com" "Quentin PÂRIS" "$PREFIX"

POL_RequiredVersion "4.1.0" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_SetupWindow_InstallMethod "CD,LOCAL"

if [ "$INSTALL_METHOD" = "CD" ]; then
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "setup.exe"
    SetupIs="$CDROM/setup.exe"
fi

if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
    SetupIs="$APP_ANSWER"
fi

POL_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"
POL_Wine_WaitExit "$TITLE"

POL_Shortcut "Starcraft.exe" "$TITLE" "" "" "Game;"

cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Starcraft/"
POL_Download "http://files.playonlinux.com/ddraw.dll" "efe4aa40d8633213dbfd2c927c7c70b0"


#######################################
# Create a 'virtual desktop' (window) #
#######################################
   
# Workaround to fix the "No mouse nor keyboard on main menu":
   
POL_SetupWindow_menu_list "$(eval_gettext "Choose the game resolution")" "$TITLE" "800x600-1152x864-1024x768-1280x720-1280x800-1280x900-1280x1024-1360x768-1368x768-1440x900-1400x1050-1600x900-1600x1024-1680x1050-1920x1080" "-" "800x600"
     
resolution="$APP_ANSWER"
WIDTH="$(echo $resolution | cut -d"x" -f1)"
HEIGHT="$(echo $resolution | cut -d"x" -f2)"
   
Set_Desktop "On" "$WIDTH" "$HEIGHT"

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribuer
Membre Messages
Dadu042 Lundi 20 Avril 2020 à 20:04
Dadu042
Modérateur

Information

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

Differences

@@ -1,24 +1,32 @@
 #!/bin/bash
 
 # CHANGELOG
+# [Quentin PÂRIS] (2010 ?)
+#   Initial writting.
 # [SuperPlumus] (2013-06-09 15-11)
 #   gettext
 #   clean code
 #   fix $PLAYONLINUX variable check
 #   fix POL_SetupWindow_browe -> POL_SetupWindow_browse (missing 's')
-
+# [Dadu042] (2020-02-20 17:15)
+#   Wine 1.7.46 (outdated) -> 3.0.3 (untested)
+#   Add function to set a virtual desktop window.
+#   Add POL_RequiredVersion "4.1.0" 
+ 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
 TITLE="Starcraft"
 PREFIX="Starcraft"
-WORKING_WINE_VERSION="1.7.46"
+WORKING_WINE_VERSION="3.0.3"
 
 POL_SetupWindow_Init
 POL_Debug_Init
 
 POL_SetupWindow_presentation "$TITLE" "Blizzard" "http://www.blizzard.com" "Quentin PÂRIS" "$PREFIX"
 
+POL_RequiredVersion "4.1.0" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
+
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
@@ -39,10 +47,25 @@
 POL_Wine "$SetupIs"
 POL_Wine_WaitExit "$TITLE"
 
-POL_Shortcut "Starcraft.exe" "$TITLE"
+POL_Shortcut "Starcraft.exe" "$TITLE" "" "" "Game;"
 
 cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Starcraft/"
 POL_Download "http://files.playonlinux.com/ddraw.dll" "efe4aa40d8633213dbfd2c927c7c70b0"
 
+
+#######################################
+# Create a 'virtual desktop' (window) #
+#######################################
+   
+# Workaround to fix the "No mouse nor keyboard on main menu":
+   
+POL_SetupWindow_menu_list "$(eval_gettext "Choose the game resolution")" "$TITLE" "800x600-1152x864-1024x768-1280x720-1280x800-1280x900-1280x1024-1360x768-1368x768-1440x900-1400x1050-1600x900-1600x1024-1680x1050-1920x1080" "-" "800x600"
+     
+resolution="$APP_ANSWER"
+WIDTH="$(echo $resolution | cut -d"x" -f1)"
+HEIGHT="$(echo $resolution | cut -d"x" -f2)"
+   
+Set_Desktop "On" "$WIDTH" "$HEIGHT"
+
 POL_SetupWindow_Close
 exit
\ No newline at end of file

Nouveau code source

#!/bin/bash

# CHANGELOG
# [Quentin PÂRIS] (2010 ?)
#   Initial writting.
# [SuperPlumus] (2013-06-09 15-11)
#   gettext
#   clean code
#   fix $PLAYONLINUX variable check
#   fix POL_SetupWindow_browe -> POL_SetupWindow_browse (missing 's')
# [Dadu042] (2020-02-20 17:15)
#   Wine 1.7.46 (outdated) -> 3.0.3 (untested)
#   Add function to set a virtual desktop window.
#   Add POL_RequiredVersion "4.1.0" 
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Starcraft"
PREFIX="Starcraft"
WORKING_WINE_VERSION="3.0.3"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Blizzard" "http://www.blizzard.com" "Quentin PÂRIS" "$PREFIX"

POL_RequiredVersion "4.1.0" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_SetupWindow_InstallMethod "CD,LOCAL"

if [ "$INSTALL_METHOD" = "CD" ]; then
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "setup.exe"
    SetupIs="$CDROM/setup.exe"
fi

if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
    SetupIs="$APP_ANSWER"
fi

POL_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"
POL_Wine_WaitExit "$TITLE"

POL_Shortcut "Starcraft.exe" "$TITLE" "" "" "Game;"

cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Starcraft/"
POL_Download "http://files.playonlinux.com/ddraw.dll" "efe4aa40d8633213dbfd2c927c7c70b0"


#######################################
# Create a 'virtual desktop' (window) #
#######################################
   
# Workaround to fix the "No mouse nor keyboard on main menu":
   
POL_SetupWindow_menu_list "$(eval_gettext "Choose the game resolution")" "$TITLE" "800x600-1152x864-1024x768-1280x720-1280x800-1280x900-1280x1024-1360x768-1368x768-1440x900-1400x1050-1600x900-1600x1024-1680x1050-1920x1080" "-" "800x600"
     
resolution="$APP_ANSWER"
WIDTH="$(echo $resolution | cut -d"x" -f1)"
HEIGHT="$(echo $resolution | cut -d"x" -f2)"
   
Set_Desktop "On" "$WIDTH" "$HEIGHT"

POL_SetupWindow_Close
exit

Réponses

Quentin PÂRIS Mardi 7 Juillet 2015 à 19:41
Quentin PÂRIS
Admin

Warning

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

Messages

Maybe it also needs some fixe to using a native version of ddraw.

Differences

@@ -12,7 +12,7 @@
 
 TITLE="Starcraft"
 PREFIX="Starcraft"
-WORKING_WINE_VERSION="1.4"
+WORKING_WINE_VERSION="1.7.46"
 
 POL_SetupWindow_Init
 POL_Debug_Init

Nouveau code source

#!/bin/bash

# CHANGELOG
# [SuperPlumus] (2013-06-09 15-11)
#   gettext
#   clean code
#   fix $PLAYONLINUX variable check
#   fix POL_SetupWindow_browe -> POL_SetupWindow_browse (missing 's')

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

TITLE="Starcraft"
PREFIX="Starcraft"
WORKING_WINE_VERSION="1.7.46"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Blizzard" "http://www.blizzard.com" "Quentin PÂRIS" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_SetupWindow_InstallMethod "CD,LOCAL"

if [ "$INSTALL_METHOD" = "CD" ]; then
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "setup.exe"
    SetupIs="$CDROM/setup.exe"
fi

if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
    SetupIs="$APP_ANSWER"
fi

POL_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"
POL_Wine_WaitExit "$TITLE"

POL_Shortcut "Starcraft.exe" "$TITLE"

cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Starcraft/"
POL_Download "http://files.playonlinux.com/ddraw.dll" "efe4aa40d8633213dbfd2c927c7c70b0"

POL_SetupWindow_Close
exit

Réponses

Kadas Lundi 6 Juillet 2015 à 4:18
Kadas Anonymous

Messages

Hi. I tryed to run both Starcraft and Starcraft: Brood War, but it seems to be a X11 issue. When it asks to enter the RandR mode, it comes a black screen with the music in background. It seems to change the resolution, becouse the mouse cursor it becomes bigger...

This are my specs:

  Nome modello:    MacBook Pro
  Identificatore modello:    MacBookPro11,1
  Nome processore:    Intel Core i5
  Velocità processore:    2,6 GHz
  Numero di processori:    1
  Numero totale di Core:    2
  Cache L2 (per Core):    256 KB
  Cache L3:    3 MB
  Memoria:    8 GB
  Versione Boot ROM:    MBP111.0138.B15
  Versione SMC (sistema):    2.16f68

  Intel Iris 1536 MB

Hope you can help me and improve the emulation.

Réponses

ralstonra Lundi 16 Février 2015 à 20:28
ralstonra Anonymous

Messages

I've tried multiple times to install StarCraft and each time it ends with cinnamon desktop failure and entry into fallback mode.  I attempted to debug but a playonlinux message pops up while debugging and says "Playonlinux has encountered an error.  Error in main.  StarCraft crashed."

Here is what the debugging software shows:

[02/16/15 11:26:15] - Running wine-1.4 StarCraft.exe (Working directory : /home/ralstonra/.PlayOnLinux/wineprefix/Starcraft/drive_c/Program Files/Starcraft)
fixme:advapi:SetSecurityInfo stub
intel_do_flush_locked failed: Invalid argument

Does anyone know how to fix it? 

Réponses

Lundi 16 Février 2015 à 20:34
Full computer specs, please...
temba Vendredi 28 Novembre 2014 à 21:58
temba Anonymous

Messages

LinuxMint 17 XFCE on i5 2.5Ghz/Intel 4600HD/8Gb Probook 640

Installed with SC Combo Installer file from Battlenet.

I let POL do all the work and...everything worked :)

Only tested the first mission, no issues. Will update if/when I get a chance to play more. SC2 is going to be installed now so that will take more of my time.

Réponses