El Foro

Re-Volt

Autor Respuestas
Wooder Saturday 19 July 2008 at 17:30
WooderAnonymous

Bonjour à tous,

Dans la frénésie de scripts pour POL, j'me suis dit qu'il fallait bien queje contribue un peu
Donc j'en ai fait un en deux langues (français + anglais) pour le jeu Re-Volt, vieux jeu (1999) de course de voitures télécommandées, donc pas évident à configurer (problème de lenteur notemment à résoudre par divers manips).

Etant donné que c'est mon premier script, il doit sûrement y avoir des erreurs, si jamais vous en voyez, je me ferai une joie de corriger.

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"

cfg_check

POL_SetupWindow_Init
POL_SetupWindow_presentation "Re-Volt" "Acclaim" "http://www.acclaim.com" "Wooder" "ReVolt"

if [ "$POL_LANG" == "fr" ]; then
S_INSTALL_ADVICE="     Attention ! Le script va lancer l'installation du jeu.


Veuillez accepter l'installation de DirectX qui va être proposée durant celle-ci, et à la fin
de l'installation, veuillez cocher Je veux redémarrer mon ordinateur plus tard."
S_INSTALL_ADVICE_TITLE="Consignes lors de l'installation"
S_INSTALL="Installation en cours..."
S_INSTALL_END="Re-Volt a été installé aves succès !

Cliquez sur Suivant pour continuer."
S_PATCH="A la fin de l'installation de ce patch, une fenêtre vous demandera si vous voulez lancer
Re-Volt.

Refusez poliment."
S_PATCH_TITLE="Installation du patch"
S_PATCH_DL="Telechargement du patch..."
S_PATCH_INSTALL="Installation du patch en cours"
S_PATCH_END="Le patch a été correctement installé !"
S_DLL_DL="Telechargement des DLL..."
S_DLL_END="Les DLL ont été correctement installées !"
S_REG="Modifications du registre..."
S_REG_TITLE="Mise à jour du registre"
S_REG_END="Le registre a été correctement mis à jour!"
else
S_INSTALL_ADVICE="     Warning ! Installation will begin.


Please install the DirectX6 version at the end of the installation, and
don't reboot your computer when it will be ask."
S_INSTALL_ADVICE_TITLE="Installation Advices"
S_INSTALL="Please Wait..."
S_INSTALL_END="Re-Volt has been successfully installed !"
S_PATCH="At the end oh the patch istallation, a window will ask you to run
Re-Volt.

Just don't."
S_PATCH_TITLE="Patch Installation..."
S_PATCH_DL="Downloading..."
S_PATCH_INSTALL="Installation du patch en cours"
S_PATCH_END="Patch has been successfully installed !"
S_DLL_DL="Downloading DLL...."
S_DLL_END="DLL have been successfully installed !"
S_REG="Registry changes...."
S_REG_TITLE="Registry Update"
S_REG_END="Regisery has been successfully update !"
fi

select_prefixe "$REPERTOIRE/wineprefix/ReVolt"
POL_SetupWindow_prefixcreate
Set_OS="win98"
POL_SetupWindow_reboot

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "SETUP.EXE"

POL_SetupWindow_message "$S_INSTALL_ADVICE" "$S_INSTALL_ADVICE_TITLE"

cd $CDROM
POL_SetupWindow_wait_next_signal "$S_INSTALL" "Re-Volt"
wine SETUP.EXE
POL_SetupWindow_detect_exit
POL_SetupWindow_message "$S_INSTALL_END"

POL_SetupWindow_message "$S_PATCH" "$S_PATCH_TITLE"

cd "$REPERTOIRE/wineprefix/ReVolt/drive_c/"
POL_SetupWindow_download "$S_PATCH_DL" "Patch 12.07" "http://pascal3d.free.fr/scripts/revolt/Patch%2012.07.exe"
POL_SetupWindow_wait_next_signal "$S_PATCH_INSTALL" "Patch 12.07"
wine "Patch%2012.07.exe"
POL_SetupWindow_detect_exit
rm Patch%2012.07.exe
POL_SetupWindow_message "$S_PATCH_END"

cd "$REPERTOIRE/tmp"
POL_SetupWindow_download "$S_DLL_DL" "DLL" "http://pascal3d.free.fr/scripts/revolt/dlls.tar.bz2"
tar xjf dlls.tar.bz2 -d "$REPERTOIRE/wineprefix/ReVolt/drive_c/Windows/System32/"
rm dlls.tar.bz2
POL_SetupWindow_message "$S_DLL_END"

cd "$REPERTOIRE/tmp"
POL_SetupWindow_wait_next_signal "$S_REG" "$S_REG_TITLE"
echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > $REPERTOIRE/tmp/settings.reg
echo "\"UseGLSL\"=\"enabled\"" >> $REPERTOIRE/tmp/settings.reg
echo "\"DirectDrawRenderer\"=\"opengl\"" >> $REPERTOIRE/tmp/settings.reg
echo "\"Multisampling\"=\"enabled\"" >> $REPERTOIRE/tmp/settings.reg
echo "\"PixelShaderMode\"=\"enabled\"" >> $REPERTOIRE/tmp/settings.reg
regedit settings.reg
POL_SetupWindow_detect_exit
rm settings.reg
POL_SetupWindow_message "$S_REG_END"

POL_SetupWindow_make_shortcut "ReVolt" "Program Files/Acclaim Entertainment/Re-Volt" "revolt.exe" "" "Re-Volt"

POL_SetupWindow_reboot
POL_SetupWindow_Close
exit


Voilà, si jamais le cript est accepté, j'ai déjà les icônes et un screenshot.

Beer is the answer, but I can't remember the question.
bacatta Sunday 20 July 2008 at 23:15
bacattaAnonymous

à la fin, tes commandes "regedit" et "rm" ne vont pas fonctionner car il manque le chemin complet de ton fichier .reg

Distribution : Fedora x64
Version de la distribution : 15
Carte graphique : Nvidia Geforce GTX460
Pilote de la carte graphique : 280.??
Wooder Monday 21 July 2008 at 21:45
WooderAnonymous

Ah ? ben écoute, moi j'ai testé, les deux commandes marchent impec'...

Quand tu dis le chemin complet... j'me suis mis dans le tmp pourtant (cd "$REPERTOIRE/tmp" plus haut) ?

Beer is the answer, but I can't remember the question.
DjKill Sunday 29 August 2010 at 19:38
DjKillAnonymous

ERRATUM

Editado por: DjKill

Estas Aqui: Index > Vos créations > Re-Volt