Vous êtes ici > Les forums > Vos créations > Warhammer 40000 : Dawn of war & Winter Assault sv ru pl es en

Les forums

Warhammer 40000 : Dawn of war & Winter Assault

Nouveau  - Répondre
Auteur Posts
omega13 Le Dimanche 8 Juin 2008 à 14:30 - [Citer]
Membre

Membre
Voila je me lance dans le creation du ce script mais je recontre quelque difficulté pour le mettre en forme pour la V3!

Console:

#!/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:DoW"
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

Edité par omega13

omega13 Le Dimanche 8 Juin 2008 à 14:49 - [Citer]
Membre

Membre
Je vous mets aussi la premiere version du script de dawn of war - Winter Assault

Console:

#!/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:DoW-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

Edité par omega13

omega13 Le Lundi 9 Juin 2008 à 15:58 - [Citer]
Membre

Membre
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 Le Mercredi 11 Juin 2008 à 11:22 - [Citer]
Membre

Membre
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.

Console:

#!/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:DoW"
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 Le Mercredi 11 Juin 2008 à 12:33 - [Citer]
Membre

Membre
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 :

Citation de omega13:

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

Edité par Apocalypse555


omega13 Le Mercredi 11 Juin 2008 à 19:53 - [Citer]
Membre

Membre
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

Edité par omega13

omega13 Le Mercredi 11 Juin 2008 à 19:56 - [Citer]
Membre

Membre

Citation de 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 Le Jeudi 12 Juin 2008 à 0:27 - [Citer]
Membre

Membre
Bon , au moment de l'instllation ca ne demarre toujours pas, j'ai plus d'idée!
Il n'y a rien à voir ici