The forum

[Script]F.E.A.R Extraction Point

Author Replies
Berillions Friday 30 October 2009 at 17:31


I wrote a script for the first extension of F.E.A.R. To install this extension, you must install the patch 1.7 for F.E.A.R.

Game Icon :

Wine version : 1.1.25 (I have not sound in game with latests versions)
Distribution : Frugalware-current
Graphics card : GeForce GTX275
Drivers of the graphics card : 190.42

# Date: (2009-10-03 18-45)
# Distribution used to test: Frugalware Current
# Wine version used: 1.1.25 
# Author: Berillions
# Graphic Card : GeForce GTX275
# Drivers : 185.18.36

#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`

#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0 
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
Title="F.E.A.R Extraction Point"

if [ "$POL_LANG" == "fr" ]; then
LNG_MEM="La taille de votre mémoire graphique? (Ex : 512)"
LNG_WAIT_END="Appuyez sur \\"Suivant\\" UNIQUEMENT quand l'installation du jeu sera\\nterminée sous peine de devoir recommencer l'installation."
LNG_WAIT_CP="Patientez pendant la préparation de l'installation..."
LNG_MEM="How much memory do your graphic card have got? (Ex : 512)"
LNG_WAIT_END="Click on \\"Next\\" ONLY when the game installation
is finished or you will have to redo the installation."
LNG_WAIT_CP="Wait while the installation is prepared..."

cd "$REPERTOIRE/tmp"
rm *.jpg
wget --output-document="$REPERTOIRE/tmp/$Title.jpg"
convert "$REPERTOIRE/tmp/$Title.jpg" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpg"

POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_presentation "$Title" "Monolith Productions" "" "Berillions" "$Prefix"

#Installation de Wine
POL_SetupWindow_install_wine "1.1.25"

if [! -d "$REPERTOIRE/wineprefix/$Prefix"];then
POL_SetupWindow_message "Please install $Prefix before this extension"

#Détection du cd-rom
POL_SetupWindow_check_cdrom "setup.exe"

select_prefix "$REPERTOIRE/wineprefix/$Prefix"

#Configuration de Wine
Set_OS winxp

wine "$CDROM/setup.exe"

POL_SetupWindow_message "$LNG_WAIT_END" "$Title"

#Création Icone
cd "$REPERTOIRE/tmp"
mv "$REPERTOIRE/tmp/FEAREP.jpg" "$REPERTOIRE/icones/32/$Title"

POL_SetupWindow_make_shortcut "$Prefix" "$PROGRAMFILES/Sierra/FEAR/FEARXP/" "FEARXP.exe" "" "$Title"

Set_WineVersion_Assign "1.1.25" "$Title"

POL_SetupWindow_message_image "Please note that this game has a copy protection system\\nand sadly, it prevents Wine from running the game.\\n\\nPlayOnLinux will not provide any help concerning any illegal\\nstuff." "Note about copy protection" "$PLAYONLINUX/themes/tango/warning.png"

Edited by Berillions

NSLW Friday 30 October 2009 at 20:39

What's that?
cd "$WINEPREFIX/drive_c/windows/temp"
regedit Fon.reg
and that
cd "$WINEPREFIX/drive_c/windows/temp"
regedit Reg.reg
Berillions Friday 30 October 2009 at 22:28

I'm going to edit this script, i found an other solution.
To install this game, you need the F.E.A.R's prefix, i install corefont with winetricks in F.E.A.R's script and thanks to this install, there isn't a problem.

Initially, there was a problem with the size of font (W,Z ...) and during the installation, i can't insert totally the CD-KEY. There was not enough place.

Edited by Berillions