| cendre | Thursday 24 July 2008 at 12:58 | 
                
                    | cendre  
 
             | bonjour 
 script pour Worm 4 Mayhem: 
 #!/bin/bash
 if [ "$PLAYONLINUX" = "" ]
 then
 exit 0
 fi
 source "$PLAYONLINUX/lib/sources"
 
 cfg_check
 
 POL_SetupWindow_Init
 
 NAME_S="Worms4Mayhem"
 NAME="Worms 4 Mayhem"
 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..."
 LNG_CHECK="Ne chochez pas \"Lancer $NAME \" à la fin de l'installation"
 LNG_PROTECT="La protection CD ou DVD de ce jeu ne marche pas correctment avec wine
 vous ne pourrez pas jouer à ce jeu sans désactiver cette protection
 PlayOnLinux ne pourra être tenu reponsable de l'utilisation d'un tel patch
 merci"
 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..."
 LNG_CHECK="Don't check \"Launch $NAME \" at the end of the install"
 LNG_PROTECT="The CD or DVD protection of this game doesn't work correctly with wine
 You will nor be able to play this game without deactiving this protection
 PlayOnLinux can't be responsible of your utilization of these patch
 Thank you."
 fi
 
 POL_SetupWindow_install_wine "0.9.55"
 
 
 POL_SetupWindow_presentation "$NAME" "Team17" "http://www.team17.com" "cendre" "$NAME_S"
 
 select_prefixe "$REPERTOIRE/wineprefix/$NAME_S"
 POL_SetupWindow_prefixcreate
 
 POL_SetupWindow_cdrom
 POL_SetupWindow_check_cdrom "$SETUP_NAME"
 
 POL_SetupWindow_message "$LNG_CHECK"
 
 POL_SetupWindow_wait_next_signal "$LNG_INSTALL" "$NAME"
 wine $CDROM/$SETUP_NAME
 POL_SetupWindow_detect_exit
 
 
 cd $REPERTOIRE/WineVersions
 POL_SetupWindow_wait_next_signal "$LNG_COPY" "$NAME"
 cp -r "0.9.55" "0.9.55-$NAME_S"
 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-$NAME_S/usr/lib/wine"
 tar xvvf "dinput.dll.so"
 POL_SetupWindow_detect_exit
 
 POL_SetupWindow_make_shortcut "$NAME_S" "Program Files/Codemasters/$NAME/" "launcher.exe" "" "$NAME"
 
 Set_WineVersion_Assign "0.9.55-$NAME_S" "$NAME"
 
 POL_SetupWindow_message "$LNG_PROTECT"
 
 POL_SetupWindow_reboot
 POL_SetupWindow_Close
 exit
 captures:
 installation:
   dans le jeu:
   Editiert von: cendre | 
                                
		    | cendre | Sunday 17 August 2008 at 10:44 | 
                
                    | cendre  
 
             | j'ai remarqué un petit truc qui fait tache :
 
 POL_SetupWindow_install_wine "0.9.55"
 POL_SetupWindow_presentation "$NAME" "Team17" "http://www.team17.com" "cendre" "$NAME_S"
 
 en fait faudrais mettre l'inverse , de cette façon :
 
 
 POL_SetupWindow_presentation "$NAME" "Team17" "http://www.team17.com" "cendre" "$NAME_S"
 POL_SetupWindow_install_wine "0.9.55"
 
 c'est plus propre même si le code du haut marche aussi , pourriez vous corriger ça dans Worms4Mayem et ProjectIGI ? (j'avais pas envie de flooder sur l'autre sujet)
 
 | 
                                
		    | Aymeric P. | Wednesday 20 August 2008 at 0:05 | 
                
                    | Aymeric P.  
 
             | Salut,
 Il me semble qu'il y a une méthode pour avertir de la protection (mais j'ai oublié le nom    )                                                             
                                 Former member.
 | 
                                
		    | cendre | Wednesday 20 August 2008 at 17:37 | 
                
                    | cendre  
 
             | ouais c'était protection_warning je crois mais elle existe plus en v3 , c'est dommage.                                                     |