| GNU_Raziel | Friday 1 June 2007 at 14:33 | 
                
                    | GNU_Raziel  
 
             | Nom du script : FableTheLostChapter
 Nom reel : Fable - The Lost Chapter
 Editeur : Microsoft
 Site web de l'editeur: http://www.microsoft.com/games/fable/default.asp
 Script: 
 #!/bin/bash
 if [ "$PLAYONLINUX" = "" ]
 then
 exit 0
 fi
 source "$PLAYONLINUX/lib/sources"
 cfg_check
 
 presentation "Fable : The Lost Chapter" "Microsoft" "http://www.microsoft.com/games/fable/default.asp" "GNU_Raziel" "FableTheLostChapter"
 
 CDROM=$(champ "Quel est le point de montage de votre lecteur CDROM? (Défault : /media/cdrom/)" "/media/cdrom" ) ;
 
 if [ "$?" = 1 ]
 then
 exit
 fi
 
 
 if [ "$CDROM" = "" ]
 then
 CDROM="/media/cdrom"
 fi
 
 message "Veuillez monter votre lecteur CDROM, puis cliquez sur valider pour commencer l'installation."
 
 if [ -e "$CDROM/install.exe" ]
 then
 message "Votre CDROM a bien été detecté.\nAppuyez sur une touche pour commencer l'installation !"
 else
 erreur "Erreur : le CDROM n'a pas été detecté !"
 exit 0
 fi
 TEMP="$HOME/.PlayOnLinux/tmp/FableTheLostChapter"
 chmod 777 $TEMP -R
 rm $TEMP -R
 mkdir -p $REPERTOIRE/wineprefix/FableTheLostChapter
 mkdir -p $TEMP
 cd $REPERTOIRE/wineprefix/FableTheLostChapter
 select_prefixe "$(pwd)"
 creer_prefixe
 
 cd $WINEPREFIX/drive_c/windows/
 mkdir temp
 cd $WINEPREFIX/dosdevices
 rm ./*
 ln -s ../drive_c c:
 ln -s / z:
 ln -s $TEMP d:
 
 attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"
 chmod 777 $TEMP -R
 message "Veuillez monter le CDROM 2, puis cliquez sur valider."
 attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"
 chmod 777 $TEMP -R
 message "Veuillez monter le CDROM 3, puis cliquez sur valider."
 attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"
 chmod 777 $TEMP -R
 message "Veuillez monter le CDROM 4, puis cliquez sur valider."
 attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"
 
 cd $TEMP
 message "Téléchargement des fichiers nécéssaires au fonctionnement du jeu."
 telecharger "Téléchargement de mfc42.dll..." http://www.dllbank.com/zip/m/mfc42.dll.zip
 telecharger "Téléchargement de la mise a jour DirectX9.0c pour Wine..." http://www.threelights.de/page/projects/d3dx9_xx_dll_files/D3DX9_dll_update.zip
 cd $WINEPREFIX/drive_c/windows/system32/
 unzip $TEMP/mfc42.dll.zip
 cp $TEMP/mgspid.dll .
 cp $TEMP/pidgen.dll .
 cd $WINEPREFIX/drive_c/windows/temp/
 unzip $TEMP/D3DX9_dll_update.zip
 message "L'installation de la mise a jour DirectX9.0c pour Wine va débuter"
 WINEPREFIX=$WINEPREFIX wine c:\\windows\\temp\\D3DX9_dll_update\\Installer\\DXSETUP.exe
 cd $REPERTOIRE/wineprefix/FableTheLostChapter
 
 message "A la fin de l'installation on vous demande d'insérer le CD1, appuyez juste sur ANNULER et fermez correctement l'installeur, le jeu est déjà parfaitement installé et fonctionnel."
 wine d:\\install.exe
 message "Appuyez sur OK UNIQUEMENT quand l'installation du jeu sera terminée sous peine de devoir recommencer l'installation."
 
 echo "[HKEY_CURRENT_USER\Software\Wine\X11 Driver]" > $REPERTOIRE/tmp/managed.reg
 echo "\"Managed\"=\"Y\"" >> $REPERTOIRE/tmp/managed.reg
 regedit $REPERTOIRE/tmp/managed.reg
 echo "[HKEY_CURRENT_USER\Software\Wine\X11 Driver]" > $REPERTOIRE/tmp/dxgrab.reg
 echo "\"DXGrab\"=\"Y\"" >> $REPERTOIRE/tmp/dxgrab.reg
 regedit $REPERTOIRE/tmp/dxgrab.reg
 
 simuler_reboot
 chmod 777 $TEMP -R
 rm $TEMP -R
 cd $WINEPREFIX/dosdevices
 rm ./d:
 ln -s $CDROM ./d:
 creer_lanceur "FableTheLostChapter" "Program\ Files/Microsoft\ Games/Fable\ -\ The\ Lost\ Chapters" "fable.exe"
 
 message "Installation terminée"
 exit
 Editado por: GNU_Raziel | 
                                
		    | Quentin PÂRIS | Friday 1 June 2007 at 16:05 | 
                
                    | Quentin PÂRIS  
 
             | Tu peux nous donner les résultats de ton tests dessus ? Et si quelqu'un d'autre pouvait essayer    Merci en tout cas    | 
                                
		    | GNU_Raziel | Friday 1 June 2007 at 16:10 | 
                
                    | GNU_Raziel  
 
             |  | 
                                
		    | Quentin PÂRIS | Friday 1 June 2007 at 16:25 | 
                
                    | Quentin PÂRIS  
 
             | Donne lui plutôt FableTheLostChapter comme nom de code. Vu qu'il ne doit pas y avoir qu'un seul "Fable"                                                     | 
                                
		    | GNU_Raziel | Friday 1 June 2007 at 16:30 | 
                
                    | GNU_Raziel  
 
             | Si tu veu, voila c'est fait.                                                             | 
                                
		    | goku | Friday 1 June 2007 at 17:40 | 
                
                    | goku  
 
             | Voilà, ton script est passé dans la liste des jeux stables!!    
                                 Windows de Microsoft.
 
 Mac de Apple.
 
 Linux du monde entier.
 | 
                                
		    | GNU_Raziel | Monday 4 June 2007 at 20:56 | 
                
                    | GNU_Raziel  
 
             | Le script a été mis a jour    |