Vous êtes ici > Les forums > Vos créations > The Elder Scroll III sv ru pl es en

Les forums

The Elder Scroll III

Nouveau  - Répondre
Auteur Posts
Tutul Le Mercredi 4 Mai 2011 à 14:26 - [Citer]
Modérateur

Modérateur
Voici mes script d'installation pour Morrowind et ses extensions qui fonctionne parfaitement sur mac (il semblerait qu'il y a un problème de raccourci sur Linux). Il sont fonctionnel et attende d'être mit dans la section jeux de POM. Dès que se sera fait, je me ferait un plaisir de poster dans "Test des applications"

Morrowind
# !/bin/bash
# Date : (2011-05-04 14-30)
# Last revision : (2011-05-04 14-30)
# Wine version used : 1.2.2
# Author : Tutul 
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="The Elder Scrolls 3 - Morrowind"
PREFIX="Morrowind" 
 
if [ "$POL_LANG" == "fr" ]; then
LNG_INSERT_MEDIA="Veuillez insérer le disque $TITLE dans votre lecteur\nsi ce n'est pas déja fait."
LNG_WAIT_END="Appuyez sur "Suivant" UNIQUEMENT quand l'installation du\njeu sera terminée sous peine de devoir recommencer l'installation."
LNG_EXTENTIONS="Si vous avez les extensions, vous devrez commencer par Tribunal."
LNG_SUCCES="$TITLE a été installé avec succès."
else
LNG_INSERT_MEDIA="Please insert $TITLE media into your disk drive\nif not already done."
LNG_WAIT_END="Click on "Next" ONLY when the game installation is finished\nor you will have to redo the installation."
LNG_EXTENTIONS="If you’ve the extentions, you should install Tribunal first."
LNG_SUCCES="$TITLE has been installed successfully."
fi 

cd $REPERTOIRE/tmp
rm *.jpg
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/morrowind/top.jpg" "http://files.playonlinux.com/resources/setups/morrowind/left.jpg" "$TITLE"
POL_SetupWindow_InitWithImages 
 
POL_SetupWindow_presentation "$TITLE" "Bethesda Softworks" "http://bethsoft.com" "Tutul" "$PREFIX" 
 
select_prefix "$REPERTOIRE/wineprefix/$PREFIX" 
 
POL_SetupWindow_message "$LNG_INSERT_MEDIA"
POL_SetupWindow_cdrom 
POL_SetupWindow_check_cdrom "AutoRunMorrowind.exe" 
 
Set_OS "winxp"
 
cd $CDROM 
wine start /unix "$CDROM/Setup.Exe"
POL_SetupWindow_message "$LNG_WAIT_END" "$TITLE"
 
POL_SetupWindow_auto_shortcut "$PREFIX" "Morrowind Launcher.exe" "The Elder Scrolls III - Morrowind.png" "$TITLE" 
 
POL_SetupWindow_message "$LNG_EXTENTIONS" "$TITLE"
 
POL_SetupWindow_message "$LNG_SUCCES" "$TITLE" 
 
POL_SetupWindow_Close 
exit

Tribunal
# !/bin/bash
# Date : (2011-05-04 14-30)
# Last revision : (2011-05-04 14-30)
# Wine version used : 1.2.2
# Author : Tutul 
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="The Elder Scrolls 3 - Bloodmoon"
PREFIX="Morrowind" 
 
if [ "$POL_LANG" == "fr" ]; then
LNG_INSERT_MEDIA="Veuillez insérer le disque $TITLE dans votre lecteurnsi ce n'est pas déja fait."
LNG_WARNING="Le jeu n’est pas installé"
LNG_WAIT_END="Appuyez sur "Suivant" UNIQUEMENT quand l'installation dunjeu sera terminée sous peine de devoir recommencer l'installation."
LNG_EXTENTIONS="Si vous avez les extensions, vous devrez commencer par Tribunal."
LNG_SUCCES="$TITLE a été installé avec succès."
else
LNG_INSERT_MEDIA="Please insert $TITLE media into your disk drivenif not already done."
LNG_WARNING="The game is not install"
LNG_WAIT_END="Click on "Next" ONLY when the game installation is finishednor you will have to redo the installation."
LNG_EXTENTIONS="If you’ve the extentions, you must install Tribunal first."
LNG_SUCCES="$TITLE has been installed successfully."
fi 
 
cd $REPERTOIRE/tmp
rm *.jpg
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/morrowind/top.jpg" "http://files.playonlinux.com/resources/setups/morrowind/left.jpg" "$TITLE"
POL_SetupWindow_InitWithImages 
 
POL_SetupWindow_presentation "$TITLE" "Bethesda Softworks" "http://bethsoft.com" "Tutul" "$PREFIX" 
 
POL_SetupWindow_message "$LNG_EXTENTIONS" 
 
POL_SetupWindow_checkexist()
{ 
if [ ! -e $REPERTOIRE/wineprefix/$PREFIX ]; then
POL_SetupWindow_message "$LNG_WARNING" "$TITLE " "$PLAYONLINUX/themes/tango/warning.png"
exit
fi
} 
POL_SetupWindow_checkexist "$PREFIX" 
 
select_prefix "$REPERTOIRE/wineprefix/$PREFIX" 
 
POL_SetupWindow_message "$LNG_INSERT_MEDIA"
POL_SetupWindow_cdrom 
POL_SetupWindow_check_cdrom "AutoRunBloodmoon.exe" 
 
Set_OS "winxp"
 
cd $CDROM 
wine start /unix "$CDROM/Setup.Exe" 
POL_Setupwindow_message "$LNG_WAIT_END" "$TITLE"
 
POL_Setupwindow_message "$LNG_SUCCES" "$TITLE" 
 
POL_SetupWindow_Close
exit

Bloodmoon
# !/bin/bash
# Date : (2011-05-04 14-30)
# Last revision : (2011-05-04 14-30)
# Wine version used : 1.2.2
# Author : Tutul 
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="The Elder Scrolls 3 - Bloodmoon"
PREFIX="Morrowind" 
 
if [ "$POL_LANG" == "fr" ]; then
LNG_INSERT_MEDIA="Veuillez insérer le disque $TITLE dans votre lecteur\nsi ce n'est pas déja fait."
LNG_WARNING="Le jeu n’est pas installé"
LNG_WAIT_END="Appuyez sur "Suivant" UNIQUEMENT quand l'installation du\njeu sera terminée sous peine de devoir recommencer l'installation."
LNG_EXTENTIONS="Si vous avez les extensions, vous devrez commencer par Tribunal."
LNG_SUCCES="$TITLE a été installé avec succès."
else
LNG_INSERT_MEDIA="Please insert $TITLE media into your disk drive\nif not already done."
LNG_WARNING="The game is not install"
LNG_WAIT_END="Click on "Next" ONLY when the game installation is finished\nor you will have to redo the installation."
LNG_EXTENTIONS="If you’ve the extentions, you must install Tribunal first."
LNG_SUCCES="$TITLE has been installed successfully."
fi 
 
cd $REPERTOIRE/tmp
rm *.jpg
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/morrowind/top.jpg" "http://files.playonlinux.com/resources/setups/morrowind/left.jpg" "$TITLE"
POL_SetupWindow_InitWithImages 
 
POL_SetupWindow_presentation "$TITLE" "Bethesda Softworks" "http://bethsoft.com" "Tutul" "$PREFIX" 
 
POL_SetupWindow_message "$LNG_EXTENTIONS" 
 
POL_SetupWindow_checkexist()
{ 
if [ ! -e $REPERTOIRE/wineprefix/$PREFIX ]; then
POL_SetupWindow_message "$LNG_WARNING" "$TITLE " "$PLAYONLINUX/themes/tango/warning.png"
exit
fi
} 
POL_SetupWindow_checkexist "$PREFIX" 
 
select_prefix "$REPERTOIRE/wineprefix/$PREFIX" 
 
POL_SetupWindow_message "$LNG_INSERT_MEDIA"
POL_SetupWindow_cdrom 
POL_SetupWindow_check_cdrom "AutoRunTribunal.exe" 
 
Set_OS "winxp"
 
cd $CDROM
wine start /unix "$CDROM/Setup.Exe" 
POL_Setupwindow_message "$LNG_WAIT_END" "$TITLE"
 
POL_Setupwindow_message "$LNG_SUCCES" "$TITLE" 
 
POL_SetupWindow_Close
exit

PS : les images sont déjà charger sur le site et je n'ai fait que simplifier (enlever les truc inutiles).

NB : Dès qu'il est validé, dite le moi que je pose mon test

Edité par Tutul


The most important thing in live is happiness !


Quentin PÂRIS Le Mercredi 4 Mai 2011 à 16:44 - [Citer]
Admin

Admin
Ça m'a l'air pas mal tout ça

Tu peux poster ton test dès maintenant, je le validerai quand j'aurais le temps
Tutul Le Mercredi 4 Mai 2011 à 17:27 - [Citer]
Modérateur

Modérateur
Je suis maudit...
tt fonctionne et quand je réinstalle Morrowind avec mon script (oui j'avais déjà mis des nouvelles textures et des mods qu'on ne sait pas enlever sans désinstallé tt) j'ai une fenêtre blanche après la présentation

Edité par Tutul


The most important thing in live is happiness !


Quentin PÂRIS Le Mercredi 4 Mai 2011 à 22:17 - [Citer]
Admin

Admin
Pour quel script ?
Tutul Le Jeudi 5 Mai 2011 à 16:28 - [Citer]
Modérateur

Modérateur
Pour les trois (au niveau du select_prefix)

The most important thing in live is happiness !


Quentin PÂRIS Le Jeudi 5 Mai 2011 à 18:45 - [Citer]
Admin

Admin
Mets des echo dans ton script pour voir ou ça plante
Tutul Le Jeudi 5 Mai 2011 à 18:57 - [Citer]
Modérateur

Modérateur
Voila ce que j'ai fait
 
POL_SetupWindow_presentation "$TITLE" "Bethesda Softworks" "http://bethsoft.com" "Tutul" "$PREFIX"

echo "prefix" 
 
select_prefix "$REPERTOIRE/wineprefix/$PREFIX" 

echo "CD"
 
POL_SetupWindow_message "$LNG_INSERT_MEDIA""$TITLE"
POL_SetupWindow_cdrom 
POL_SetupWindow_check_cdrom "AutoRunMorrowind.exe" 

echo "OS"
 
Set_OS "winxp"

Et la console indique

Console:

PlayOnLinux: ~/Library/PlayOnMac > bash /Users/Raphy/Desktop/Morrowind 
rm: *.jpg: No such file or directory
prefix
CD

Donc c'est au niveau de
POL_SetupWindow_message "$LNG_INSERT_MEDIA""$TITLE"

The most important thing in live is happiness !


Quentin PÂRIS Le Jeudi 5 Mai 2011 à 19:47 - [Citer]
Admin

Admin
Ben essais de le virer
Tutul Le Jeudi 5 Mai 2011 à 21:09 - [Citer]
Modérateur

Modérateur
Il semblerait que se soit tt les POL_SetupWindow_message !!!

The most important thing in live is happiness !


Quentin PÂRIS Le Vendredi 6 Mai 2011 à 20:22 - [Citer]
Admin

Admin
Tu les ouvre comment ?
Tutul Le Vendredi 6 Mai 2011 à 21:22 - [Citer]
Modérateur

Modérateur

Citation de Tinou:

Tu les ouvre comment ?

Ouvrir quoi ???
Je vais dans "executer un script local" ou j'utilise la console comme ça :

Console:

PlayOnLinux: ~/Library/PlayOnMac > bash /Users/Raphy/Desktop/Morrowind

The most important thing in live is happiness !


Quentin PÂRIS Le Lundi 9 Mai 2011 à 20:39 - [Citer]
Admin

Admin
C'est ton if qui est mal fait, on met pas de fi avant le else
Tutul Le Mardi 10 Mai 2011 à 7:30 - [Citer]
Modérateur

Modérateur
où ça ???

The most important thing in live is happiness !


Tutul Le Dimanche 24 Juillet 2011 à 12:30 - [Citer]
Modérateur

Modérateur
J'ai réglé mon problème...

The most important thing in live is happiness !


Quentin PÂRIS Le Lundi 25 Juillet 2011 à 12:24 - [Citer]
Admin

Admin
Nickel, je test ton script des que possible
Tutul Le Lundi 25 Juillet 2011 à 12:26 - [Citer]
Modérateur

Modérateur
Je vais les installé sur ma machine virtuelle de Ubuntu pour tester mais le problème viendrais d'une erreur d'encodage (le style d'écriture n'était pas correcte pour le bash)

The most important thing in live is happiness !


Il n'y a rien à voir ici