You are here    Supported software    F.E.A.R.2 : Project Origin nl sv ru pl es de fr

F.E.A.R.2 : Project Origin

Informations

Creator Message
Berillions

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 12138
Wine: System

Feedbacks

Source code

#!/bin/bash
# Date: (2010-08-13)
# Distribution used to test: Debian Sid 32bits
# Wine version used: 1.3.0
# Author: Berillions
 
#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0 
 
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
 
Title="F.E.A.R.2 : Project Origin"
Prefix="F.E.A.R.2"
 
if [ "$POL_LANG" == "fr" ]; then
LNG_WAIT_END="Appuyez sur \"Suivant\" UNIQUEMENT quand l'installation du jeu sera
terminée sous peine de devoir recommencer l'installation."
LNG_CHANGE_DVD="Appuyez sur \"Suivant\" lorsque l'installation demande d'insérer le second DVD."
LNG_WMF9="PlayOnLinux télécharge Windows Media Format 9"
else
LNG_WAIT_END="Click on \"Next\" ONLY when the game installation
is finished or you will have to redo the installation.."
LNG_CHANGE_DVD="Click on \"Next\" when the installation ask you to insert the Second DVD."
LNG_WMF9="PlayOnLinux is downloading Windows Media Format 9"
fi
 
cd $REPERTOIRE/tmp
wget http://upload.wikimedia.org/wikipedia/en/9/90/POF2picture.jpg --output-document="$REPERTOIRE/tmp/$Prefix.jpg"
wget http://sd-1.archive-host.com/membres/images/51568577817080088/FEAR2.png

convert "$REPERTOIRE/tmp/$Prefix.jpg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpg"
 
POL_SetupWindow_Init "$REPERTOIRE/tmp/FEAR2.png" "$REPERTOIRE/tmp/left.jpg" 
 
#Presentation
POL_SetupWindow_presentation "$Title" "Monolith Productions" "http://www.projectorigingame.com/" "Berillions" "$Prefix"
 
#Détection du cd-rom
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Setup.exe" 
 
#Wine Installation
POL_SetupWindow_install_wine "1.3.0"
 
#Préparation du prefix
select_prefix "$REPERTOIRE/wineprefix/$Prefix"
POL_SetupWindow_prefixcreate

#Ajout du CDROM à Winecfg
cd "$WINEPREFIX/dosdevices"
ln -s "$CDROM" d:

cd "$WINEPREFIX/drive_c/windows/temp/"
echo "[HKEY_LOCAL_MACHINE\\Software\\Wine\\Drives]" > cdrom.reg
echo "\"d:\"=\"cdrom\"" >> cdrom.reg
regedit cdrom.reg
 
#fetching PROGRAMFILES environmental variable
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES

#Installation corefonts and Directx9
POL_Call POL_Install_d3dx9
fonts_to_prefix
 
#Taille de la mémoire graphique
POL_SetupWindow_menu_list "Your Memory Graphic" "$Title" "32 64 128 256 384 512 768 896 1024 2048" " "
VMS="$APP_ANSWER"
 
#Réglage Direct3D
cd "$WINEPREFIX/drive_c/windows/temp"
cat << EOF > OGL.reg
[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]
"VideoMemorySize"="$VMS"
EOF
regedit OGL.reg
 
POL_SetupWindow_wait_next_signal "Installing ..." "$Title"
wine start /unix "$CDROM/Setup.exe"

POL_SetupWindow_message "$LNG_CHANGE_DVD" "$Title"
env WINEPREFIX="$REPERTOIRE/wineprefix/$Prefix" wine eject d:

POL_SetupWindow_message "$LNG_WAIT_END" "$Title"
 
#Création Icone
cd "$REPERTOIRE/tmp"
convert "$REPERTOIRE/tmp/FEAR2.png" -geometry 32x32 "$REPERTOIRE/icones/32/$Title"

#Windows Media Format 9 Download and Installation
POL_SetupWindow_wait_next_signal "$LNG_WMF9" "$Title"
wget http://www.acoustica.com/downloading.asp?p=1002
wine wmfadist.exe /Q
POL_SetupWindow_detect_exit
 
#Création Launcher 
POL_SetupWindow_make_shortcut "$Prefix" "$PROGRAMFILES/Steam" "Steam.exe" "" "$Title"

#Réglage Sound
cd "$WINEPREFIX/drive_c/windows/temp"
cat << EOF > Sound.reg
[HKEY_CURRENT_USER\\Software\\Wine\\DirectSound]
"HardwareAcceleration"="Emulation"
EOF
regedit Sound.reg

Set_WineVersion_Assign "1.3.0" "$Title"
 
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
RebelCoder Wednesday 10 January 2018 at 20:29
RebelCoder

Message

Install script did not work. Had two bugs: Graphical glitchis + audio glitches. I have installed from scratch, using "Install a non-listed program" and with few attempts, got a perfect combination. Game runs amazing!

My system: Debian 9 (Stretch) (Kernel 4.9)
PlayOnLinux: 4.2.12
Wine Used: 3.0-rc5 (32 bit)
Additional files installed:
POL_Install_corefonts
POL_Install_d3dx9
POL_Install_d3dx9_43
POL_Install_ffdshow
POL_Install_gecko
POL_Install_mfc40
POL_Install_msvc80
POL_Install_msvc90
POL_Install_vcrun2005
POL_Install_vcrun2008
POL_Install_wmp9

POL_Install_wmpcodeck

Game runs perfectly fine now. I use optirun/primusrun option (I have a laptop with intel+nvidia cards)
 

 

Replies