The forum

[script] Need for Speed II

Author Replies
NSLW Wednesday 6 May 2009 at 9:34
NSLW

Hello,
I've made script which installs Need For Speed II. It works on
Wine version : 1.1.20
Distribution : Fedora
Distribution Version : 10 (32 bit)

Icon for the game:


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

VERSIONWINE=$(wine --version)
TYTUL="Need for Speed II"
PREFIX="NFS2"
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TYTUL" "EA Games" "N/A" "NSLW" "$PREFIX" 

select_prefixe "$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_prefixcreate

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "NFSW.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
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/NFS2.ICO" "$REPERTOIRE/icones/32/$TYTUL"

cd "$WINEPREFIX/drive_c/Electronic Arts/Need For Speed II"
POL_SetupWindow_download "PlayOnLinux is downloading patch fix for NFS II" " " "http://jeffz.name/code/pe.exe"

wine pe.exe nfsw.exe

POL_SetupWindow_make_shortcut "$PREFIX" "Electronic Arts/Need For Speed II" "nfsw.exe" "" "$TYTUL" ""

POL_SetupWindow_Close
exit

Edited by NSLW

marieuh Wednesday 6 May 2009 at 17:59
marieuh

sweet :D

hopefully someone will come round to validate it soon ^^

If there is a problem, fill out complaint form and place it in an envelope addressed to the name of the hospital in which you were born....
GNU_Raziel Wednesday 20 May 2009 at 14:55
GNU_Raziel

Script added to repository, thx for your work :)
artsyfartsy Thursday 25 February 2016 at 20:50
artsyfartsyAnonymous

You can find an updated (working) version here:

https://www.playonlinux.com/en/topic-13698-Script_Need_for_Speed_II_Special_Edition.html

 

Plus ... there is even a native reverse engineered version which works very well here:

https://github.com/zaps166/NFSIISE

Edited by artsyfartsy

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