| omega13 | Sunday 8 June 2008 at 14:30 | 
                
                    | omega13  
 
             | Voila je me lance dans le creation du ce script mais je recontre quelque difficulté pour le mettre en forme pour la V3!
#!/bin/bash if [ "$PLAYONLINUX" = "" ]
 then
 exit 0
 fi
 #Charger les librairies
 source "$PLAYONLINUX/lib/sources"
 
 #Verifier les dépendences
 cfg_check
 
 #Declaration des variables
 CODENAME="W40K
  oW" REALNAME="Warhammer 40.000 : Dawn of War"
 EDITEUR="THQ"
 WEBSITE="http://www.dawnofwargame.com/fr/home/agegate"
 SCRIPTEUR="Omega13"
 
 #Presentation
 POL_SetupWindow_Init
 POL_SetupWindow_presentation "$REALNAME" "$EDITEUR" "$WEBSITE" "$SCRIPTEUR" "$CODENAME"
 
 
 #Verification du CDROM
 POL_SetupWindow_cdrom
 POL_SetupWindow_textbox "Quel est le nom du fichier d'installation ?" "Dawn of war" "AutoPlay.exe"
 SETUP="$APP_ANSWER"
 POL_SetupWindow_check_cdrom $SETUP
 
 
 #Préparation du prefix
 TEMP="$HOME/.PlayOnLinux/tmp/W40K_DawnOfWar"
 chmod 777 $TEMP -R
 rm $TEMP -R
 mkdir -p $REPERTOIRE/wineprefix/W40K_DawnOfWar
 mkdir -p $TEMP
 cd $REPERTOIRE/wineprefix/W40K_DawnOfWar
 select_prefixe "$(pwd)"
 POL_SetupWindow_prefixcreate
 
 #Préparation de l'installation
 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
 mv $TEMP/autorun.inf $TEMP/autorun1.inf
 mv $TEMP/DawnOfWar.exe $TEMP/DawnOfWar1.exe
 ask_mount_num 2
 attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"
 chmod 777 $TEMP -R
 mv $TEMP/autorun.inf $TEMP/autorun2.inf
 mv $TEMP/Suppress_AutoRun.exe $TEMP/Suppress_AutoRun1.exe
 ask_mount_num 3
 attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"
 chmod 777 $TEMP -R
 mv $TEMP/autorun.inf $TEMP/autorun3.inf
 mv $TEMP/Suppress_AutoRun.exe $TEMP/Suppress_AutoRun2.exe
 
 #Preparation de Wine
 Set_OS "winxp"
 wine d:AutoPlay.exe
 
 Set_Managed "On"
 Set_DXGrab "On"
 
 #Fin du code du jeu
 
 POL_SetupWindow_reboot
 
 #Création du lanceur
 
 chmod 777 $TEMP -R
 rm $TEMP -R
 cd $WINEPREFIX/dosdevices
 rm ./d:
 ln -s $CDROM ./d:
 
 POL_SetupWindow_make_shortcut "W40K_DawnOfWar" "Program Files/THQ/Dawn of War/" "DawnOfWar.exe" "DawnOfWar.xpm" "Warhammer 40.000 : Dawn of War"
 
 POL_SetupWindow_message "Installation terminée" "Warhammer 40.000 : Dawn of war"
 POL_SetupWindow_Close
 exit
 Voila si quelqu'un pouvait deja le corriger pour la V3 je pourrai ensuite m'occuper de faire les test d'installation!
 Merci                             Editiert von: omega13 | 
                                
		    | omega13 | Sunday 8 June 2008 at 14:49 | 
                
                    | omega13  
 
             | Je vous mets aussi la premiere version du script de dawn of war - Winter Assault
#!/bin/bash if [ "$PLAYONLINUX" = "" ]
 then
 exit 0
 fi
 #Charger les librairies
 source "$PLAYONLINUX/lib/sources"
 
 #Verifier les dépendences
 cfg_check
 
 #Declaration des variables
 CODENAME="W40K
  oW-WA" REALNAME="Warhammer 40.000 : Dawn of War - Winter Assault"
 EDITEUR="THQ"
 WEBSITE="http://www.dawnofwargame.com/fr/home/agegate"
 SCRIPTEUR="Omega13"
 
 #Presentation
 POL_SetupWindow_Init
 POL_SetupWindow_presentation "$REALNAME" "$EDITEUR" "$WEBSITE" "$SCRIPTEUR" "$CODENAME"
 
 
 #Verification du CDROM
 POL_SetupWindow_cdrom
 POL_SetupWindow_textbox "Quel est le nom du fichier d'installation ?" "Dawn of war - Winter Assault" "autorun.inf"
 SETUP="$APP_ANSWER"
 POL_SetupWindow_check_cdrom $SETUP
 
 
 #Préparation du prefix
 TEMP="$HOME/.PlayOnLinux/tmp/W40K_DawnOfWar"
 chmod 777 $TEMP -R
 rm $TEMP -R
 mkdir -p $REPERTOIRE/wineprefix/W40K_DawnOfWar
 mkdir -p $TEMP
 cd $REPERTOIRE/wineprefix/W40K_DawnOfWar
 select_prefixe "$(pwd)"
 POL_SetupWindow_prefixcreate
 
 #Préparation de l'installation
 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
 mv $TEMP/autorun.inf $TEMP/autorun1.inf
 mv $TEMP/WinterAssault.exe $TEMP/WinterAssault1.exe
 ask_mount_num 2
 attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"
 chmod 777 $TEMP -R
 mv $TEMP/autorun.inf $TEMP/autorun2.inf
 mv $TEMP/WinterAssault.exe $TEMP/WinterAssault2.exe
 
 #Preparation de Wine
 Set_OS "winxp"
 wine d:Autoplay.exe
 
 Set_Managed "On"
 Set_DXGrab "On"
 
 #Fin du code du jeu
 
 POL_SetupWindow_reboot
 
 #Création du lanceur
 
 chmod 777 $TEMP -R
 rm $TEMP -R
 cd $WINEPREFIX/dosdevices
 rm ./d:
 ln -s $CDROM ./d:
 
 POL_SetupWindow_make_shortcut "W40K_DawnOfWar" "Program Files/THQ/Dawn of War/" "WinterAssault.exe" "WinterAssault.xpm" "Warhammer 40.000 : Dawn of War - Winter Assault"
 
 POL_SetupWindow_message "Installation terminée" "Warhammer 40.000 : Dawn of war - Winter Assault"
 POL_SetupWindow_Close
 exit
 Idem, il y a des erreur pour une V3 alors si vous pouviez corrigez que je puisse avancé!!
 Merci                             Editiert von: omega13 | 
                                
		    | omega13 | Monday 9 June 2008 at 15:58 | 
                
                    | omega13  
 
             | Bon, pour dawn of war le jeu ce copie bien, mais je pense qu'il y a conflit entre les commande V2 et V3 car quand arrive la fenetre du jeu ou je clique sur installez, POL lance le reboot et rien ne se passe!
 Comme je le pensais, il faudrait que quelqu'un me corrige pour passer le script en full V3 histoire de pouvoir avancer!
 La je seche !
 
 Merci d'avance
 | 
                                
		    | omega13 | Wednesday 11 June 2008 at 11:22 | 
                
                    | omega13  
 
             | OK je continue mon monologue, une nouvelle version internationaliser mais pas encore prete car l'installation ne se lancepas! au momoent de clicker sur "Installer le jeu" dans la fenetre du jeu rien ne se passe.
#!/bin/bash if [ "$PLAYONLINUX" = "" ]
 then
 exit 0
 fi
 #Charger les librairies
 source "$PLAYONLINUX/lib/sources"
 
 #Verifier les dépendences
 cfg_check
 
 #Declaration des variables
 CODENAME="W40K
  oW" REALNAME="Warhammer 40.000 : Dawn of War"
 EDITEUR="THQ"
 WEBSITE="http://www.dawnofwargame.com/fr/home/agegate"
 SCRIPTEUR="Omega13"
 
 #Presentation
 POL_SetupWindow_Init
 POL_SetupWindow_presentation "$REALNAME" "$EDITEUR" "$WEBSITE" "$SCRIPTEUR" "$CODENAME"
 
 
 #Verification du CDROM
 POL_SetupWindow_cdrom
 POL_SetupWindow_textbox "Quel est le nom du fichier d'installation ?" "Dawn of war" "AutoPlay.exe"
 SETUP="$APP_ANSWER"
 POL_SetupWindow_check_cdrom $SETUP
 
 
 #Préparation du prefix
 TEMP="$HOME/.PlayOnLinux/tmp/W40K_DawnOfWar"
 chmod 777 $TEMP -R
 rm $TEMP -R
 mkdir -p $REPERTOIRE/wineprefix/W40K_DawnOfWar
 mkdir -p $TEMP
 cd $REPERTOIRE/wineprefix/W40K_DawnOfWar
 select_prefixe "$(pwd)"
 POL_SetupWindow_prefixcreate
 
 #Préparation de l'installation
 cd $WINEPREFIX/drive_c/windows/
 mkdir temp
 cd $WINEPREFIX/dosdevices
 rm ./*
 ln -s ../drive_c c:
 ln -s / z:
 ln -s $TEMP d:
 
 POL_SetupWindow_install_wine "0.9.60"
 
 if [ "$POL_LANG" == "fr" ]; then
 
 LNG_DX_DL=" Téléchargement de Directx Mars 2008.....
 L'installation débutera à la suite "
 LNG_TMN_INST="Cliquez pour commencer l'installation du jeu."
 
 POL_SetupWindow_wait_next_signal "Patientez pendant la préparation de l'installation ..."
 cp -r $CDROM/* $TEMP
 chmod 777 $TEMP -R
 mv $TEMP/autorun.inf $TEMP/autorun1.inf
 mv $TEMP/DawnOfWar.exe $TEMP/DawnOfWar1.exe
 POL_SetupWindow_detect_exit
 
 POL_SetupWindow_message "Veuillez insérer le CD-ROM numéro 2 et cliquez sur suivant ..."
 POL_SetupWindow_wait_next_signal "Patientez pendant la préparation de l'installation ..."
 cp -r $CDROM/* $TEMP
 chmod 777 $TEMP -R
 mv $TEMP/autorun.inf $TEMP/autorun2.inf
 mv $TEMP/Suppress_AutoRun.exe $TEMP/Suppress_AutoRun1.exe
 POL_SetupWindow_detect_exit
 
 POL_SetupWindow_message "Veuillez insérer le CD-ROM numéro 3 et cliquez sur suivant ..."
 POL_SetupWindow_wait_next_signal "Patientez pendant la préparation de l'installation ..."
 cp -r $CDROM/* $TEMP
 chmod 777 $TEMP -R
 mv $TEMP/autorun.inf $TEMP/autorun3.inf
 mv $TEMP/Suppress_AutoRun.exe $TEMP/Suppress_AutoRun2.exe
 POL_SetupWindow_detect_exit
 POL_SetupWindow_message "Veuillez cliquez sur suivant pour debuter l'installation"
 
 else
 LNG_DX_DL=" Download of Directx Mars 2008 will begin.....
 Game's installation will begin after "
 LNG_TMN_INST="Click on next to begin the game's installation... "
 
 POL_SetupWindow_wait_next_signal "Wait for the installation's preparation"
 cp -r $CDROM/* $TEMP
 chmod 777 $TEMP -R
 mv $TEMP/autorun.inf $TEMP/autorun1.inf
 mv $TEMP/DawnOfWar.exe $TEMP/DawnOfWar1.exe
 POL_SetupWindow_detect_exit
 
 POL_SetupWindow_message "Insert the second CD-ROM and click next ..."
 POL_SetupWindow_wait_next_signal "Wait for the installation's preparation ..."
 cp -r $CDROM/* $TEMP
 chmod 777 $TEMP -R
 mv $TEMP/autorun.inf $TEMP/autorun2.inf
 mv $TEMP/Suppress_AutoRun.exe $TEMP/Suppress_AutoRun1.exe
 POL_SetupWindow_detect_exit
 
 POL_SetupWindow_message "Insert the third CD-ROM and click next ..."
 POL_SetupWindow_wait_next_signal "Wait for the installation's preparation ..."
 cp -r $CDROM/* $TEMP
 chmod 777 $TEMP -R
 mv $TEMP/autorun.inf $TEMP/autorun3.inf
 mv $TEMP/Suppress_AutoRun.exe $TEMP/Suppress_AutoRun2.exe
 POL_SetupWindow_detect_exit
 POL_SetupWindow_message "click Next to begin the game's installation... "
 
 #Preparation de Wine
 Set_OS "winxp"
 wine d:AutoPlay.exe
 
 Set_Managed "On"
 Set_DXGrab "On"
 
 if [ "$POL_LANG" == "fr" ]; then
 POL_SetupWindow_message "Veuillez cliquez sur suivant à la fin de l'installation"
 else
 POL_SetupWindow_message "click Next at the installation's end"
 
 #Fin du code du jeu
 
 POL_SetupWindow_reboot
 
 #Création du lanceur
 
 chmod 777 $TEMP -R
 rm $TEMP -R
 cd $WINEPREFIX/dosdevices
 rm ./d:
 ln -s $CDROM ./d:
 
 POL_SetupWindow_make_shortcut "W40K_DawnOfWar" "Program Files/THQ/Dawn of War/" "DawnOfWar.exe" "DawnOfWar.xpm" "Warhammer 40.000 : Dawn of War"
 
 POL_SetupWindow_message "Installation terminée" "Warhammer 40.000 : Dawn of war"
 POL_SetupWindow_Close
 exit
 Si quelqu'un peut verifier que le codage de l'internationalisation est bon ca serait gentil!
 @+ pour la suite du code!                                                     | 
                                
		    | Apocalypse555 | Wednesday 11 June 2008 at 12:33 | 
                
                    | Apocalypse555  
 
             | Slt,
 Suite à ta demande j'ai regardé (plutôt vite fait désolé) et je ne crois pas avoir vu d'erreur ! Cependant j'ai quelques reproches (mais je ne pense pas qu'ils soit lié à tes problèmes) :
 _ inutile de définir des variable qui sont en faites statiques ! Exemples :
 CODENAME="W40KoW"
REALNAME="Warhammer 40.000 : Dawn of War"
 EDITEUR="THQ"
 WEBSITE="http://www.dawnofwargame.com/fr/home/agegate"
 SCRIPTEUR="Omega13"
 _ inutile (il me semble) de faire des "chmod 777"
 _ version 0.9.58 de Wine meilleur je crois ...
 Voilà c'est ce que j'ai remarqué au premier coup d'oeil mais c'est surtout des préférences plutôt que des problèmes ... Sinon je peux pas vraiment faire mieux en ce moment car j'ai le bac le 16 de ce mois-ci donc tu comprendra que j'ai pas envie de le fouarer ^^
 Sinon bon script    Je t'enverrais prochainement mon début de script (prévus pour la V2) pour DoW et WA si tu les veux pour t'aider    Editiert von: Apocalypse555 | 
                                
		    | omega13 | Wednesday 11 June 2008 at 19:53 | 
                
                    | omega13  
 
             | Le coup des variable c'est une astuce chez moi, ca me permet de scripter un jeu et pour la présentation ne replir que ces champs sans me soucier de la partie présentation, Perso je le laisserai par pratique, si a la validation ca saute ca ne me derange pas mais je trouve ca plus pratique et plus clair a la lecture du script!
 Pour la 0.9.58, j'ai vu du gold/platinium en 0.9.60 sur appdb
 http://appdb.winehq.org/objectManager.php?sClass=version&iId=2576&iTestingId=24059                             Editiert von: omega13 | 
                                
		    | omega13 | Wednesday 11 June 2008 at 19:56 | 
                
                    | omega13  
 
             | Le coup des variable c'est une astuce chez moi, ca me permet de scripter un jeu et pour la présentation ne replir que ces champs sans me soucier de la partie présentation, Perso je le laisserai par pratique, si a la validation ca saute ca ne me derange pas mais je trouve ca plus pratique et plus clair a la lecture du script!
 Pour la 0.9.58, j'ai vu du gold/platinium en 0.9.60 sur appdb
 
 http://appdb.winehq.org/objectManager.php?sClass=version&iId=2576&iTestingId=24059
 Pour les chmod, je me suis inspiré du script de SW: Kotor de GNU/Raziel donc je t'avoue ne pas savoir                                                     | 
                                
		    | omega13 | Thursday 12 June 2008 at 0:27 | 
                
                    | omega13  
 
             | Bon , au moment de l'instllation ca ne demarre toujours pas, j'ai plus d'idée!                                                     |