Game Icon :
#!/bin/bash
# Date: (2009-10-27 17-45)
# Distribution used to test: Frugalware Current
# Wine version used: 1.1.31
# 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="Splinter Cell Pandora Tomorrow"
Prefix="SplinterCell2"
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="Copie du contenu du CD en cours"
LNG_VERS="Quelle version avez-vous?"
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="Copy of the contents of the CD"
LNG_VERS="Which version have you got?"
fi
cd "$REPERTOIRE/tmp"
rm *.jpg
wget http://upload.wikimedia.org/wikipedia/en/5/5e/Pandora_Tomorrow_box_art.jpg --output-document="$REPERTOIRE/tmp/$Prefix.jpg"
convert "$REPERTOIRE/tmp/$Prefix.jpg" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
#Presentation
POL_SetupWindow_presentation "$Title" "Ubisoft" "http://splintercell.fr.ubi.com/history/splintercellpandoratomorrow.php" "Berillions" "$Prefix"
#Installation de Wine
POL_SetupWindow_install_wine "1.1.31"
#Détection du cd-rom
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
select_prefix "$REPERTOIRE/wineprefix/$Prefix"
POL_SetupWindow_prefixcreate
#Taille de la mémoire graphique
POL_SetupWindow_menu_list "$LNG_MEM" "$Title" "32-64-128-256-384-512-768-896-1024-2048" "-" "128"
VMS="$APP_ANSWER"
if [ "$VMS" -lt "128" ]; then
POL_SetupWindow_message_image "$LNG_VMS_ERROR" "$Title" "$PLAYONLINUX/themes/tango/warning.png"
fi
#Réglage DirectDrawRenderer
cd "$WINEPREFIX/drive_c/windows/temp"
echo "[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]" > OGL.reg
echo "\\"VideoMemorySize\\"=\\"$VMS\\"" >> OGL.reg
echo "\\"UseGLSL\\"=\\"disabled\\"" >> OGL.reg
echo "[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\DirectInput]" > OGL.reg
echo "\\"MouseWarpOverride\\"=\\"force\\"" >> OGL.reg
regedit OGL.reg
POL_SetupWindow_menu "$LNG_VERS" "Version" "Version CD~Version DVD" "~"
if [ "$APP_ANSWER" == "Version CD" ]; then
TEMP="$HOME/.PlayOnLinux/tmp/$Prefix"
chmod 777 $TEMP -R
rm $TEMP -R
mkdir -p $TEMP
POL_SetupWindow_wait_next_signal "$LNG_WAIT_CP" "$Title"
cp -r $CDROM/* $TEMP
chmod 777 $TEMP -R
mv $TEMP/autorun.inf $TEMP/autorun1.inf
## CD-ROM 2
POL_SetupWindow_message "Insert the Second CD please" "$Title"
POL_SetupWindow_cdrom
POL_SetupWindow_wait_next_signal "$LNG_WAIT_CP" "$Title"
cp -r $CDROM/* $TEMP
chmod 777 $TEMP -R
## CD-ROM 3
POL_SetupWindow_message "Insert the third CD please" "$Title"
POL_SetupWindow_cdrom
POL_SetupWindow_wait_next_signal "$LNG_WAIT_CP" "$Title"
cp -r $CDROM/* $TEMP
chmod 777 $TEMP -R
#Configuration de Wine
Set_OS winxp
wine "$TEMP/setup.exe"
POL_SetupWindow_message "$LNG_WAIT_END" "$Title"
elif [ "$APP_ANSWER" == "Version DVD" ]; then
#Configuration de Wine
Set_OS winxp
wine "$CDROM/setup.exe"
POL_SetupWindow_message "$LNG_WAIT_END" "$Title"
fi
convert "$HOME/.local/share/icons/*_logo_ubi.0.xpm" -geometry 32x32 "$REPERTOIRE/icones/32/$Title"
POL_SetupWindow_make_shortcut "$Prefix" "$PROGRAMFILES/Ubisoft/Splinter Cell Pandora Tomorrow" "pandora.exe" "" "$Title"
Set_WineVersion_Assign "1.1.31" "$Title"
if [ -d "$TEMP" ];then
chmod 777 $TEMP -R
rm $TEMP -R
fi
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
There are a graphic bug with our character. It's not very important (I think) and the game is playable. I don't know if the game can be official with this bug.
Screen (With and without graphic bug) :
Edité par Berillions