Starcraft

Informatie

Creator Bericht
Quentin PÂRIS Anonymous

Warning

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

Informatie

Platforms:
Downloads: 79005
Wine: 3.0.3

Feedbacks

Omschrijving

Broncode

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

Contribute
Member Bericht
Dadu042 Maandag 20 April 2020 om 20:04
Dadu042

Information

This update has been approved by the team.

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

New source code

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

Antwoorden

Quentin PÂRIS Dinsdag 7 Juli 2015 om 19:41
Quentin PÂRIS Anonymous

Warning

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

Bericht

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

New source code

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

Antwoorden

Kadas Maandag 6 Juli 2015 om 4:18
Kadas Anonymous

Bericht

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.

Antwoorden

ralstonra Maandag 16 Februari 2015 om 20:28
ralstonra Anonymous

Bericht

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? 

Antwoorden

Maandag 16 Februari 2015 om 20:34
Full computer specs, please...
temba Vrijdag 28 November 2014 om 21:58
temba Anonymous

Bericht

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.

Antwoorden

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