The forum

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

Author Replies
Berillions Friday 30 October 2009 at 17:31
Berillions

Hello,

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

#!/bin/bash
# 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%"`
PROGRAMFILES=${PROGRAMFILES:3}

#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"
Prefix="F.E.A.R"

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..."
else
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..."
fi

cd "$REPERTOIRE/tmp"
rm *.jpg
wget http://upload.wikimedia.org/wikipedia/en/b/bc/FEARxp_boxart.jpg --output-document="$REPERTOIRE/tmp/$Title.jpg"
convert "$REPERTOIRE/tmp/$Title.jpg" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpg"

POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
 
#Presentation
POL_SetupWindow_presentation "$Title" "Monolith Productions" "http://www.whatisfear.com/" "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"
POL_SetupWindow_Close
exit
fi

#Détection du cd-rom
POL_SetupWindow_cdrom
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"
wget http://sd-1.archive-host.com/membres/images/51568577817080088/FEAREP.jpg
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"
 
POL_SetupWindow_Close
exit


Edited by Berillions


NSLW Friday 30 October 2009 at 20:39
NSLW

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
Berillions

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


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