Forums

ProjectIGI

j\'avais bien dit que je le ferais un jour ce script :-°

Auteur Réponses
cendre Mercredi 23 Juillet 2008 à 22:16
cendre

Bonjour !

script pour projectIGI:

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"

cfg_check

POL_SetupWindow_Init

NAME_S="ProjectIGI"
NAME="Project IGI"
SETUP_NAME="setup.exe"

if [ "$POL_LANG" == "fr" ];then
LNG_INSTALL="Installation de $NAME ..."
LNG_DL="Téléchargement d'un patch pour enlever un bug de wine"
LNG_COPY="Copie de wine-0.9.55..."
LNG_COPY_PATCH="Copie du patch..."
else
LNG_INSTALL="Installing $NAME ..."
LNG_DL="Downloading a patch for resolve a wine bug"
LNG_COPY="Copy of wine-0.9.55..."
LNG_COPY_PATCH="Copying patch..."
fi

POL_SetupWindow_presentation "$NAME" "Innerloop Studios" "http://www.eidos.fr/games/embed.html?gmid=83" "cendre" "$NAME_S"

select_prefixe "$REPERTOIRE/wineprefix/$NAME_S"
POL_SetupWindow_prefixcreate

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "$SETUP_NAME"

cd "$REPERTOIRE/tmp"
rm -rf "temp.sh"
echo "wine $CDROM/$SETUP_NAME &" >> "temp.sh"
echo "while [ 1 = 1 ]" >> "temp.sh"
echo "do" >> "temp.sh"
echo "sleep 1" >> "temp.sh"
echo "if [ -e \"$REPERTOIRE/wineprefix/$NAME_S/drive_c/Program Files/Eidos Interactive/$NAME/pc/config.qvm\" ];then" >> "temp.sh"
echo "sleep 10;exit;fi" >> "temp.sh"
echo "done;exit" >> "temp.sh"

POL_SetupWindow_wait_next_signal "$LNG_INSTALL" "$NAME"
sh "temp.sh"
POL_SetupWindow_detect_exit

POL_SetupWindow_install_wine "0.9.55"

cd $REPERTOIRE/WineVersions
POL_SetupWindow_wait_next_signal "$LNG_COPY" "$NAME"
cp -r "0.9.55" "0.9.55-ProjectIGI"
POL_SetupWindow_detect_exit

POL_SetupWindow_download "$LNG_DL" "$NAME" "http://www.picdo.net/Fichiers/14914be1b485da6564e91b4a055d23ae/dinput.swf"
POL_SetupWindow_wait_next_signal "$LNG_COPY_PATCH" "$NAME"
mv "dinput.swf" "dinput.tar"
tar xvvf "dinput.tar"
rm -rf "dinput.tar"
cp "dinput.dll.so" "0.9.55-ProjectIGI/usr/lib/wine"
tar xvvf "dinput.dll.so"
POL_SetupWindow_detect_exit

POL_SetupWindow_make_shortcut "$NAME_S" "Program Files/Eidos Interactive/$NAME/pc" "IGI.exe" "" "$NAME"

Set_WineVersion_Assign "0.9.55-ProjectIGI" "$NAME"

POL_SetupWindow_reboot
POL_SetupWindow_Close
exit

Captures:

Installation:

Dans le jeu:


icône :

Edité par cendre

Vous êtes ici: Index > Vos créations > ProjectIGI

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