Forums

[script] Need for Speed III: Hot Pursuit

Auteur Réponses
NSLW Dimanche 5 Avril 2009 à 16:19
NSLW

Hello,
I've made script which will install Need for Speed III: Hot Pursuit. Scripts do its work.
It will:
1)copy icon from cd
2) let you choose between Direct3D and Voodoo display driver
If you choose Voodoo driver you'll have got possibility to choose higher screen resolutions in game menu.

Icon for the game:


#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"

VERSIONWINE=$(wine --version)
TYTUL="Need for Speed III: Hot Pursuit"
PREFIX="NFS3HP"
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TYTUL" "EA Games" "N/A" "NSLW" "$PREFIX" 

select_prefixe "$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_prefixcreate
Set_OS "win98"

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "nfs3.exe"

cd $WINEPREFIX/dosdevices
ln -s $CDROM d:

echo "[HKEY_LOCAL_MACHINE\\\\Software\\\\Wine\\\\Drives]" > $REPERTOIRE/tmp/cdrom.reg
echo "\\"d:\\"=\\"cdrom\\"" >> $REPERTOIRE/tmp/cdrom.reg
regedit $REPERTOIRE/tmp/cdrom.reg

POL_SetupWindow_message "Wait 5 seconds then click next" "$TYTUL"

POL_SetupWindow_wait_next_signal "Installation in progress..." "$TYTUL"
cd $CDROM


POL_SetupWindow_menu "What language do you prefer?" "Language" "english german spanish italian swedish french" " "

if [ ! -e "$CDROM/setup/$APP_ANSWER/setup.exe" ]; then
cd $REPERTOIRE/ressources/
wine $CDROM/setup/english/setup.exe
else
wine $CDROM/setup/$APP_ANSWER/setup.exe
fi

POL_SetupWindow_detect_exit

POL_SetupWindow_message "$TYTUL has been installed successfully" "$TYTUL"

cp "$CDROM/nfs3.ico" "$REPERTOIRE/icones/32/$TYTUL"

POL_SetupWindow_menu "What display driver would you like to use?" "Display drivers" "Direct3D Voodoo(recommended)" " "
DISPDRV=$APP_ANSWER
if [ "$DISPDRV" == "Direct3D" ]; then
POL_SetupWindow_make_shortcut "$PREFIX" "Program Files/Electronic Arts/Need For Speed III" "nfs3.exe" "" "$TYTUL" "" "-d3d0"


else

	POL_SetupWindow_question "Do you've got bsdiff package installed?" "bsdiff dependency"

if [ "$APP_ANSWER" == "FALSE" ] ;then
POL_SetupWindow_make_shortcut "$PREFIX" "Program Files/Electronic Arts/Need For Speed III" "nfs3.exe" "" "$TYTUL" "" "-d3d0"
else

	cd "$WINEPREFIX/drive_c/Program Files/Electronic Arts/Need For Speed III"
POL_SetupWindow_download "PlayOnLinux is downloading display resolution patch" " " "http://www.inf.fu-berlin.de/~rschuste/nfs3hp-1152x864.bsdiff"
bspatch "$WINEPREFIX/drive_c/Program Files/Electronic Arts/Need For Speed III/d3da.dll" "$WINEPREFIX/drive_c/Program Files/Electronic Arts/Need For Speed III/voodoo2a.dll" "$WINEPREFIX/drive_c/Program Files/Electronic Arts/Need For Speed III/nfs3hp-1152x864.bsdiff"

	POL_SetupWindow_make_shortcut "$PREFIX" "Program Files/Electronic Arts/Need For Speed III" "nfs3.exe" "" "$TYTUL" "" "-voodoo2"
fi
fi


POL_SetupWindow_Close
exit

Edité par NSLW

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