Wine version : 1.1.44
Distribution : Archlinux
Distribution Version : 64 Bits
Graphics card : Nvidia, GeForce GTX275
Drivers of the graphics card : 195.36.15
Icon Game :
Script :
#!/bin/bash
# Date: (2010-05-11)
# Distribution used to test: Archlinux 64
# Wine version used: 1.1.44
# Author: Berillions
#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
Title="Dead Space"
Prefix="DeadSpace"
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."
else
LNG_WAIT_END="Click on \\"Next\\" ONLY when the game installation is finished or you will have to redo the installation.."
fi
cd $REPERTOIRE/tmp
rm *.jpg
wget http://upload.wikimedia.org/wikipedia/en/5/57/Dead_Space_Box_Art.jpg --output-document="$REPERTOIRE/tmp/Dead_Space_Box_Art.jpg"
convert "$REPERTOIRE/tmp/Dead_Space_Box_Art.jpg" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
#Presentation
POL_SetupWindow_presentation "$Title" "Visceral Games" "http://www.deadspacegame.com/" "Berillions" "$Prefix"
#Détection du cd-rom
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "EASetup.exe"
#Installation de Wine
POL_SetupWindow_install_wine "1.1.44"
Use_WineVersion "1.1.44"
#Préparation de Wine
select_prefix "$REPERTOIRE/wineprefix/$Prefix"
POL_SetupWindow_prefixcreate
#fetching PROGRAMFILES environmental variable
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
#Install Directx9
POL_Call POL_Install_d3dx9
#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 DirectDrawRenderer
cd "$WINEPREFIX/drive_c/windows/temp"
echo "[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]" > OGL.reg
echo "\\"VideoMemorySize\\"=\\"$VMS\\"" >> OGL.reg
regedit OGL.reg
#Configuration de Wine
Set_OS winxp
POL_SetupWindow_wait_next_signal "Installing ..." "$Title"
wine "$CDROM/EASetup.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_message "$LNG_WAIT_END" "$Title"
#Création Icone
cd "$REPERTOIRE/tmp"
wget http://sd-1.archive-host.com/membres/images/51568577817080088/Dead_Space.png
mv "$REPERTOIRE/tmp/Dead_Space.png" "$REPERTOIRE/icones/32/$Title"
#Création Launcher
POL_SetupWindow_make_shortcut "$Prefix" "$PROGRAMFILES/Electronic Arts/Dead Space" "Dead Space.exe" "" "$Title"
Set_WineVersion_Assign "1.1.44" "$Title"
POL_SetupWindow_Close
exit
Edité par Berillions