You are here    Supported software    Spore nl sv ru pl es de fr

Spore

Informations

Creator Message
benji64

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 52003
Wine: System

Feedbacks

Source code

#!/bin/bash
# Date : (2009-06-11 10-00)
# Last revision : (2009-06-11 10-00)
# Wine version used : N/A 
# Distribution used to test : N/A
# Author : NSLW
# Licence : Retail

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

#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}

override_dlls() {
mode=$1
shift
echo Using $mode override for following DLLs: $@
cat > $REPERTOIRE/tmp/dx9/override-dll.reg <<_EOF_
REGEDIT4
 
[HKEY_CURRENT_USER\Software\Wine\DllOverrides]
_EOF_
while test "$1" != ""
do
echo "\"$1\"=\"$mode\"" >> $REPERTOIRE/tmp/dx9/override-dll.reg
shift
done
 
wine regedit $REPERTOIRE/tmp/dx9/override-dll.reg
rm $REPERTOIRE/tmp/dx9/override-dll.reg
}
  
if [ "$POL_LANG" == "fr" ]
 
then
LNG_WARNING_DX9="L'installation va démarrer.
ATTENTION : si le programme vous propose d'installer Directx9 clickez sur ANNULER !"
LNG_WAIT="Installation de Spore en cours... veuillez patienter"
LNG_WARNING_NOCD="ATTENTION : Ce jeux peut nécessiter un no-cd fix pour fonctionner.
Nous ne fournirons pas d'aide à ce sujet et ne sommes pas responsable si vous choisissez de contourner la loi."
 
else
LNG_WARNING_DX9="The installation is about to begin.
BEWARE: If the software propose you to install DirectX 9, you have to click on CANCEL!"
LNG_WAIT="Installing Spore ... please wait"
LNG_WARNING_NOCD="BEWARE: This game can require a NoCD patch to work.
We will not provide help for that and aren't responsible if you choose to bypass the law."
fi 

wget http://upload.wikimedia.org/wikipedia/en/7/77/Sporebox.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"

POL_SetupWindow_presentation "Spore" "Stidio MAXIS" "http://eu.spore.com" "Benji64 and NSLW small modifications" "Spore"
 
select_prefix "$REPERTOIRE/wineprefix/Spore/"
POL_SetupWindow_prefixcreate
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "SPORESetup.exe"
 
#install directX
if [ ! -e "$HOME/.winetrickscache/directx_mar2009_redist.exe" ]; then
mkdir "$HOME/.winetrickscache"
cd "$HOME/.winetrickscache"
POL_SetupWindow_download "Downloading DirectX 9.0c libraries" "$TYTUL" "http://download.microsoft.com/download/3/C/4/3C46A69A-CB0F-4CCA-B1E8-248D43270D5F/directx_mar2009_redist.exe"
fi

cd "$REPERTOIRE/ressources"
#downloading winetricks
if [ "`sha1sum < winetricks | sed 's/ .*//'`" != "bf24bc6d84a40a836d7ce6de41ff04f910b34434" ]; then
wget http://winezeug.googlecode.com/svn/trunk/winetricks --output-document=winetricks
fi

POL_SetupWindow_wait_next_signal "Installing DirectX 9.0c libraries..." "$TYTUL"
bash winetricks -q directx9
POL_SetupWindow_detect_exit

#mkdir $REPERTOIRE/tmp/dx9 -p
#cd $REPERTOIRE/tmp/dx9
#POL_SetupWindow_download "$(eval_gettext 'Download Directx9c june 2008...')" "$(eval_gettext 'Downloading...')" "http://download.microsoft.com/download/c/1/f/c1fb09b0-8a8b-45ba-8bb0-64f60bd23175/directx_jun2008_redist.exe"
#Set_OS "win2k"
#POL_SetupWindow_reboot
#POL_SetupWindow_wait "$(eval_gettext 'PlayOnLinux is installing the patch ...')" "$(eval_gettext 'Extracting...')"
#mkdir directx_tmp
#export WINEDLLOVERRIDES="wintrust=b,mscoree=,ddraw,d3d8,d3d9,dsound,dinput=n"
#wine directx_jun2008_redist.exe /t:z:$REPERTOIRE/tmp/dx9/directx_tmp
#override_dlls native d3dim d3drm d3dx8 d3dx9_24 d3dx9_25 d3dx9_26 d3dx9_27 d3dx9_28 d3dx9_29
#override_dlls native d3dx9_30 d3dx9_31 d3dx9_32 d3dx9_33 d3dx9_34 d3dx9_35 d3dx9_36 d3dxof
#override_dlls native dciman32 ddrawex devenum dmband dmcompos dmime dmloader dmscript dmstyle
#override_dlls native dmsynth dmusic dmusic32 dnsapi dplay dplayx dpnaddr dpnet dpnhpast dpnlobby
#override_dlls native dswave dxdiagn mscoree msdmo qcap quartz streamci
#override_dlls builtin d3d8 d3d9 dinput dinput8 dsound
#cd directx_tmp
#wine DXSETUP.exe /silent

Set_OS "winxp"
POL_SetupWindow_reboot
#POL_SetupWindow_detect_exit
#cd $REPERTOIRE/tmp
#rm $REPERTOIRE/tmp/dx9 -r
 
POL_SetupWindow_message "$LNG_WARNING_DX9"
 
POL_SetupWindow_wait_next_signal "$LNG_WAIT" "Spore"

cd "$CDROM"
wine sporesetup.exe
POL_SetupWindow_detect_exit
 
POL_SetupWindow_make_shortcut "Spore" "$PROGRAMFILES/Electronic Arts/SPORE/Sporebin" "SporeApp.exe" "" "Spore"
POL_SetupWindow_reboot
 
POL_SetupWindow_message "$LNG_WARNING_NOCD"
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
LinuxScripter Sunday 11 February 2018 at 12:25
LinuxScripter Anonymous

Warning

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

Message

Rewrote the script from scratch.

Differences

@@ -1,117 +1,46 @@
 #!/bin/bash
-# Date : (2009-06-11 10-00)
-# Last revision : (2009-06-11 10-00)
-# Wine version used : N/A 
-# Distribution used to test : N/A
-# Author : NSLW
+# Date : (2018-02-09 17-33)
+# Last revision : (2018-02-09 17-33)
+# Wine version used : 3.1
+# Distribution used to test : Ubuntu 18.04 x64
+# Author : LinuxScripter
 # Licence : Retail
-
+ 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
-#fetching PROGRAMFILES environmental variable
-PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
-PROGRAMFILES=${PROGRAMFILES:3}
-
-override_dlls() {
-mode=$1
-shift
-echo Using $mode override for following DLLs: $@
-cat > $REPERTOIRE/tmp/dx9/override-dll.reg <<_EOF_
-REGEDIT4
- 
-[HKEY_CURRENT_USER\Software\Wine\DllOverrides]
-_EOF_
-while test "$1" != ""
-do
-echo "\"$1\"=\"$mode\"" >> $REPERTOIRE/tmp/dx9/override-dll.reg
-shift
-done
- 
-wine regedit $REPERTOIRE/tmp/dx9/override-dll.reg
-rm $REPERTOIRE/tmp/dx9/override-dll.reg
-}
-  
-if [ "$POL_LANG" == "fr" ]
- 
-then
-LNG_WARNING_DX9="L'installation va démarrer.
-ATTENTION : si le programme vous propose d'installer Directx9 clickez sur ANNULER !"
-LNG_WAIT="Installation de Spore en cours... veuillez patienter"
-LNG_WARNING_NOCD="ATTENTION : Ce jeux peut nécessiter un no-cd fix pour fonctionner.
-Nous ne fournirons pas d'aide à ce sujet et ne sommes pas responsable si vous choisissez de contourner la loi."
- 
+PREFIX="Spore"
+WORKING_WINE_VERSION="3.1"
+TITLE="Spore"
+EDITOR="Maxis"
+GAME_URL="http://eu.spore.com"
+AUTHOR="LinuxScripter"
+ 
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
+
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 324
+POL_Debug_Init
+ 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+STEAM_ID="17390"
+Set_OS "win7"
+ 
+POL_SetupWindow_InstallMethod "DVD,STEAM"
+if [ "$INSTALL_METHOD" = "DVD" ]; then
+	POL_SetupWindow_cdrom
+	POL_SetupWindow_check_cdrom "spore.ico"
+	POL_Wine start /unix "$CDROM/setup.exe"
+	POL_Wine_WaitExit "SPORESetup.exe"
 else
-LNG_WARNING_DX9="The installation is about to begin.
-BEWARE: If the software propose you to install DirectX 9, you have to click on CANCEL!"
-LNG_WAIT="Installing Spore ... please wait"
-LNG_WARNING_NOCD="BEWARE: This game can require a NoCD patch to work.
-We will not provide help for that and aren't responsible if you choose to bypass the law."
-fi 
-
-wget http://upload.wikimedia.org/wikipedia/en/7/77/Sporebox.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
-convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg"
-POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"
-
-POL_SetupWindow_presentation "Spore" "Stidio MAXIS" "http://eu.spore.com" "Benji64 and NSLW small modifications" "Spore"
- 
-select_prefix "$REPERTOIRE/wineprefix/Spore/"
-POL_SetupWindow_prefixcreate
-POL_SetupWindow_cdrom
-POL_SetupWindow_check_cdrom "SPORESetup.exe"
- 
-#install directX
-if [ ! -e "$HOME/.winetrickscache/directx_mar2009_redist.exe" ]; then
-mkdir "$HOME/.winetrickscache"
-cd "$HOME/.winetrickscache"
-POL_SetupWindow_download "Downloading DirectX 9.0c libraries" "$TYTUL" "http://download.microsoft.com/download/3/C/4/3C46A69A-CB0F-4CCA-B1E8-248D43270D5F/directx_mar2009_redist.exe"
+	POL_Call POL_Install_steam
+	cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+	POL_Wine "steam.exe" steam://install/$STEAM_ID
+	POL_Wine_WaitBefore "$TITLE"
 fi
-
-cd "$REPERTOIRE/ressources"
-#downloading winetricks
-if [ "`sha1sum < winetricks | sed 's/ .*//'`" != "bf24bc6d84a40a836d7ce6de41ff04f910b34434" ]; then
-wget http://winezeug.googlecode.com/svn/trunk/winetricks --output-document=winetricks
-fi
-
-POL_SetupWindow_wait_next_signal "Installing DirectX 9.0c libraries..." "$TYTUL"
-bash winetricks -q directx9
-POL_SetupWindow_detect_exit
-
-#mkdir $REPERTOIRE/tmp/dx9 -p
-#cd $REPERTOIRE/tmp/dx9
-#POL_SetupWindow_download "$(eval_gettext 'Download Directx9c june 2008...')" "$(eval_gettext 'Downloading...')" "http://download.microsoft.com/download/c/1/f/c1fb09b0-8a8b-45ba-8bb0-64f60bd23175/directx_jun2008_redist.exe"
-#Set_OS "win2k"
-#POL_SetupWindow_reboot
-#POL_SetupWindow_wait "$(eval_gettext 'PlayOnLinux is installing the patch ...')" "$(eval_gettext 'Extracting...')"
-#mkdir directx_tmp
-#export WINEDLLOVERRIDES="wintrust=b,mscoree=,ddraw,d3d8,d3d9,dsound,dinput=n"
-#wine directx_jun2008_redist.exe /t:z:$REPERTOIRE/tmp/dx9/directx_tmp
-#override_dlls native d3dim d3drm d3dx8 d3dx9_24 d3dx9_25 d3dx9_26 d3dx9_27 d3dx9_28 d3dx9_29
-#override_dlls native d3dx9_30 d3dx9_31 d3dx9_32 d3dx9_33 d3dx9_34 d3dx9_35 d3dx9_36 d3dxof
-#override_dlls native dciman32 ddrawex devenum dmband dmcompos dmime dmloader dmscript dmstyle
-#override_dlls native dmsynth dmusic dmusic32 dnsapi dplay dplayx dpnaddr dpnet dpnhpast dpnlobby
-#override_dlls native dswave dxdiagn mscoree msdmo qcap quartz streamci
-#override_dlls builtin d3d8 d3d9 dinput dinput8 dsound
-#cd directx_tmp
-#wine DXSETUP.exe /silent
-
-Set_OS "winxp"
-POL_SetupWindow_reboot
-#POL_SetupWindow_detect_exit
-#cd $REPERTOIRE/tmp
-#rm $REPERTOIRE/tmp/dx9 -r
- 
-POL_SetupWindow_message "$LNG_WARNING_DX9"
- 
-POL_SetupWindow_wait_next_signal "$LNG_WAIT" "Spore"
-
-cd "$CDROM"
-wine sporesetup.exe
-POL_SetupWindow_detect_exit
- 
-POL_SetupWindow_make_shortcut "Spore" "$PROGRAMFILES/Electronic Arts/SPORE/Sporebin" "SporeApp.exe" "" "Spore"
-POL_SetupWindow_reboot
- 
-POL_SetupWindow_message "$LNG_WARNING_NOCD"
 POL_SetupWindow_Close
 exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2018-02-09 17-33)
# Last revision : (2018-02-09 17-33)
# Wine version used : 3.1
# Distribution used to test : Ubuntu 18.04 x64
# Author : LinuxScripter
# Licence : Retail
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

PREFIX="Spore"
WORKING_WINE_VERSION="3.1"
TITLE="Spore"
EDITOR="Maxis"
GAME_URL="http://eu.spore.com"
AUTHOR="LinuxScripter"
 
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 324
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
STEAM_ID="17390"
Set_OS "win7"
 
POL_SetupWindow_InstallMethod "DVD,STEAM"
if [ "$INSTALL_METHOD" = "DVD" ]; then
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "spore.ico"
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "SPORESetup.exe"
else
        POL_Call POL_Install_steam
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine "steam.exe" steam://install/$STEAM_ID
        POL_Wine_WaitBefore "$TITLE"
fi
POL_SetupWindow_Close
exit

Replies

maniat1k Tuesday 5 August 2014 at 16:55
maniat1k Anonymous

Message

Everything works fine, but the sound does not work at all.

Replies