Hello,
I've made script which installs Need For Speed: High Stakes/Road Challenge. It works on
Wine version : 1.1.20
Distribution : Fedora
Distribution Version : 10 (32 bit)
Graphics card : Nvidia, GeForce 9xxx
Drivers of the graphics card : 185.18.08
Comments
-select all "NFS HS Updates" beside "Vista Tweaks" during patch installation
-in case of problems look
here
Icon for the game:
#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
VERSIONWINE=$(wine --version)
TYTUL="Need for Speed 4: High Stakes"
PREFIX="NFS4"
TYTULLATKI="NFS_HS_SP_Setup_(V2.1A_Build_1.31).exe"
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_menu "What is the subtitle of your Need For Speed?" "Subtitle" "Road-Challenge High-Stakes None-of-above" " "
if [ "$APP_ANSWER" == "Road-Challenge" ]; then
SUBTYTUL="Need For Speed Road Challenge"
elif [ "$APP_ANSWER" == "High-Stakes" ]
then
SUBTYTUL="Need For Speed High Stakes"
else
SUBTYTUL="Need For Speed"
fi
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.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" "$SUBTYTUL"
POL_SetupWindow_wait_next_signal "Installation in progress..." "$SUBTYTUL"
cp "$CDROM/nfshs.ico" "$REPERTOIRE/icones/32/$SUBTYTUL"
cd $CDROM
wine autorun.exe
POL_SetupWindow_browse "Select $TYTULLATKI (download from www.team-ger.org)" "$SUBTYTUL" ""
POL_SetupWindow_wait_next_signal "Installation in progress..." "$SUBTYTUL"
Set_OS "win2k"
wine $APP_ANSWER
POL_SetupWindow_message "Patch for $SUBTYTUL installed successfully" "$SUBTYTUL"
POL_SetupWindow_menu "What display driver would you like to use?" "Display drivers" "Direct3D(recommended) Glide" " "
if [ "$APP_ANSWER" == "Direct3D(recommended)" ]; then
cd "$WINEPREFIX/drive_c/Program Files/Electronic Arts/$SUBTYTUL"
cp -f "3dSetup.bak/d3da.dll" "d3da.dll"
echo "[HKEY_LOCAL_MACHINE\\Software\\Electronic Arts\\Need for Speed High Stakes]" > $REPERTOIRE/tmp/d3d.reg
echo "\\"3D Card\\"=\\"NVidia TNT2\\"" >> $REPERTOIRE/tmp/d3d.reg
echo "\\"3D Device Description\\"=\\"NVIDIA RIVA TNT2\\"" >> $REPERTOIRE/tmp/d3d.reg
echo "\\"D3D Device\\"=dword:00000001" >> $REPERTOIRE/tmp/d3d.reg
echo "\\"Group\\"=\\"D3D\\"" >> $REPERTOIRE/tmp/d3d.reg
echo "\\"Hardware Acceleration\\"=dword:00000001" >> $REPERTOIRE/tmp/d3d.reg
echo "\\"InstallPath\\"=\\"C:\\\\\\\\Program Files\\\\\\\\Electronic Arts\\\\\\\\$SUBTYTUL\\"" >> $REPERTOIRE/tmp/d3d.reg
echo "\\"Thrash Driver\\"=\\"d3d\\"" >> $REPERTOIRE/tmp/d3d.reg
echo "\\"Thrash Resolution\\"=\\"1024x768\\"" >> $REPERTOIRE/tmp/d3d.reg
echo "\\"Triple Buffer\\"=dword:00000000" >> $REPERTOIRE/tmp/d3d.reg
echo "\\"Version\\"=\\"4.50\\"" >> $REPERTOIRE/tmp/d3d.reg
regedit $REPERTOIRE/tmp/d3d.reg
elif [ "$APP_ANSWER" == "Glide" ]
then
cd "$WINEPREFIX/drive_c/Program Files/Electronic Arts/$SUBTYTUL/3dSetup"
wine Spot3DSetup.exe
#set "Thread policy" to "One thread for both"
cd "$WINEPREFIX/drive_c/users/$USER/Application Data"
cp glide_wrapper.zbag.ini glide_wrapper.zbag.bak
head glide_wrapper.zbag.ini -n 15 > glide_wrapper.zbag2.ini
echo thread_policy=1 >> glide_wrapper.zbag2.ini
tail glide_wrapper.zbag.ini -n+17 >> glide_wrapper.zbag2.ini
mv -f glide_wrapper.zbag2.ini glide_wrapper.zbag.ini
fi
POL_SetupWindow_make_shortcut "$PREFIX" "Program Files/Electronic Arts/$SUBTYTUL" "nfshs.exe" "" "$SUBTYTUL" ""
POL_SetupWindow_message "$SUBTYTUL installed successfully" "$SUBTYTUL"
POL_SetupWindow_Close
exit
Edited by NSLW