Fora

The Elder Scroll III

Morrowind Tribunal et Bloodmoon

Autor Odpowiedzi
Tutul Wednesday 4 May 2011 at 14:26
Tutul

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" :sunglasses:

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

Edytowane przez Tutul


Gentils modérateur dans mes bon jours - Attention, à tenir hors de portée des enfants. En cas de contact, veuillez immédiatement rincer à l'eau clair. Peut provoquer des sueurs froide !
Quentin PÂRIS Wednesday 4 May 2011 at 16:44
Quentin PÂRISAnonymous

Ç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 Wednesday 4 May 2011 at 17:27
Tutul

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

Edytowane przez Tutul


Gentils modérateur dans mes bon jours - Attention, à tenir hors de portée des enfants. En cas de contact, veuillez immédiatement rincer à l'eau clair. Peut provoquer des sueurs froide !
Quentin PÂRIS Wednesday 4 May 2011 at 22:17
Quentin PÂRISAnonymous

Pour quel script ?
Tutul Thursday 5 May 2011 at 16:28
Tutul

Pour les trois (au niveau du select_prefix)

Gentils modérateur dans mes bon jours - Attention, à tenir hors de portée des enfants. En cas de contact, veuillez immédiatement rincer à l'eau clair. Peut provoquer des sueurs froide !
Quentin PÂRIS Thursday 5 May 2011 at 18:45
Quentin PÂRISAnonymous

Mets des echo dans ton script pour voir ou ça plante
Tutul Thursday 5 May 2011 at 18:57
Tutul

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 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"
:cry:

Gentils modérateur dans mes bon jours - Attention, à tenir hors de portée des enfants. En cas de contact, veuillez immédiatement rincer à l'eau clair. Peut provoquer des sueurs froide !
Quentin PÂRIS Thursday 5 May 2011 at 19:47
Quentin PÂRISAnonymous

Ben essais de le virer
Tutul Thursday 5 May 2011 at 21:09
Tutul

Il semblerait que se soit tt les POL_SetupWindow_message !!! °_°

Gentils modérateur dans mes bon jours - Attention, à tenir hors de portée des enfants. En cas de contact, veuillez immédiatement rincer à l'eau clair. Peut provoquer des sueurs froide !
Quentin PÂRIS Friday 6 May 2011 at 20:22
Quentin PÂRISAnonymous

Tu les ouvre comment ?
Tutul Friday 6 May 2011 at 21:22
Tutul

Tu les ouvre comment ?

Quote from Tinou

Ouvrir quoi ???
Je vais dans "executer un script local" ou j'utilise la console comme ça : PlayOnLinux: ~/Library/PlayOnMac > bash /Users/Raphy/Desktop/Morrowind

Gentils modérateur dans mes bon jours - Attention, à tenir hors de portée des enfants. En cas de contact, veuillez immédiatement rincer à l'eau clair. Peut provoquer des sueurs froide !
Quentin PÂRIS Monday 9 May 2011 at 20:39
Quentin PÂRISAnonymous

C'est ton if qui est mal fait, on met pas de fi avant le else
Tutul Tuesday 10 May 2011 at 7:30
Tutul

où ça ???

Gentils modérateur dans mes bon jours - Attention, à tenir hors de portée des enfants. En cas de contact, veuillez immédiatement rincer à l'eau clair. Peut provoquer des sueurs froide !
Tutul Sunday 24 July 2011 at 12:30
Tutul

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

Gentils modérateur dans mes bon jours - Attention, à tenir hors de portée des enfants. En cas de contact, veuillez immédiatement rincer à l'eau clair. Peut provoquer des sueurs froide !
Quentin PÂRIS Monday 25 July 2011 at 12:24
Quentin PÂRISAnonymous

Nickel, je test ton script des que possible
Tutul Monday 25 July 2011 at 12:26
Tutul

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) :-°

Gentils modérateur dans mes bon jours - Attention, à tenir hors de portée des enfants. En cas de contact, veuillez immédiatement rincer à l'eau clair. Peut provoquer des sueurs froide !