Forums

Script Toca Race Driver 3

Auteur Réponses
thib25 Samedi 23 Janvier 2010 à 20:30
thib25Anonymous

icône du jeu :


Script :

#!/bin/bash
# Date : (2010-01-23  20-30)
# Last revision : (2010-01-23 20-30)
# Wine version used : 1.1.35
# Distribution used to test : Ubuntu 9.10
# Author : thib25
# Licence : Retail 

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

NAME="Toca Race Driver 3"
PREFIX="TRD3"

if [ "$POL_LANG" == "fr" ]; then
INSTALLATION="Installation en cours..."
ATTENTION="Veuillez noter que ce jeu a une protection anti-copie\\net que malheuresement, cela empêche wine de lancer le jeu.\\n\\nPlayOnLinux ne fournira aucune aide concernant tout travail\\nillégal."
ATTENTIONT="Note à propos de la protection anti-copie"
POLEND="$NAME a été installé avec succès"
else 
INSTALLATION="Installation in progress..."
ATTENTION="Please note that this game has a copy protection system\\nand sadly, it prevents Wine from running the game.\\n\\nPlayOnLinux will not provide any help concerning any illegal\\nstuff."
ATTENTIONT="Note about copy protection" 
POLEND="$NAME has been installed succesfully"
fi


wget http://www.playingzone.com/images/jeux/pc/toca_race_driver_3_test_sc0.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"

POL_SetupWindow_presentation "$NAME" "Codemasters" "http://www.codemasters.com/tocaracedriver3/" "thib25" "$PREFIX"

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"

select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_prefixcreate
 
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}
 
POL_SetupWindow_wait_next_signal "$INSTALLATION" "$NAME"
wine "$CDROM/setup.exe"
POL_SetupWindow_detect_exit

#Création Icone
convert "$CDROM/RD3.ico" -geometry 32x32 "$REPERTOIRE/icones/32/$NAME"

POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Codemasters/Race Driver 3" "RD3.exe" "$NAME" "$NAME"

POL_SetupWindow_install_wine "1.1.35"
Set_WineVersion_Assign "1.1.35" "$NAME"

POL_SetupWindow_message_image "$ATTENTION" "$ATTENTIONT" "$PLAYONLINUX/themes/tango/warning.png"
POL_SetupWindow_message "$POLEND" "$NAME"

POL_SetupWindow_Close
exit 

Edité par thib25

Berillions Samedi 23 Janvier 2010 à 21:03
Berillions

SAlut thib25,

Est-ce que tu as un bug avec la fonctione $PROGRAMFILES ?
J'ai remaqué que sur certains jeux, il y a un problème dans le script du launcher. En effet, dans ces scripts, la commande cd se trouve sur 2 lignes au lieu d'une seule. Par exemple :
cd "/hom/USER/.PlayOnLinux/wineprefix/blabla/drive_c/Program files
/blabla


Est-ce que tu as ce problème lorsque tu as installé ce jeu?
Si oui, il faut remplacer $PROGRAMFILES par Program Files dans le script.

Edité par Berillions


thib25 Samedi 23 Janvier 2010 à 22:15
thib25Anonymous

Oui il y'a ce problème je le résoud manuellement en modifiant le fichier dans Configurations.

Voici la version modifiée :
#!/bin/bash
# Date : (2010-01-23  20-30)
# Last revision : (2010-01-23 20-30)
# Wine version used : 1.1.35
# Distribution used to test : Ubuntu 9.10
# Author : thib25
# Licence : Retail 

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

NAME="Toca Race Driver 3"
PREFIX="TRD3"

if [ "$POL_LANG" == "fr" ]; then
INSTALLATION="Installation en cours..."
ATTENTION="Veuillez noter que ce jeu a une protection anti-copie\\net que malheuresement, cela empêche wine de lancer le jeu.\\n\\nPlayOnLinux ne fournira aucune aide concernant tout travail\\nillégal."
ATTENTIONT="Note à propos de la protection anti-copie"
POLEND="$NAME a été installé avec succès"
else 
INSTALLATION="Installation in progress..."
ATTENTION="Please note that this game has a copy protection system\\nand sadly, it prevents Wine from running the game.\\n\\nPlayOnLinux will not provide any help concerning any illegal\\nstuff."
ATTENTIONT="Note about copy protection" 
POLEND="$NAME has been installed succesfully"
fi


wget http://upload.wikimedia.org/wikipedia/en/7/70/TOCARaceDriver3BoxArt.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"

POL_SetupWindow_presentation "$NAME" "Codemasters" "http://www.codemasters.com/tocaracedriver3/" "thib25" "$PREFIX"

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"

select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_prefixcreate
 
POL_SetupWindow_wait_next_signal "$INSTALLATION" "$NAME"
wine "$CDROM/setup.exe"
POL_SetupWindow_detect_exit

#Création Icone
convert "$CDROM/RD3.ico" -geometry 32x32 "$REPERTOIRE/icones/32/$NAME"

POL_SetupWindow_make_shortcut "$PREFIX" "Program Files/Codemasters/Race Driver 3" "RD3.exe" "$NAME" "$NAME"

POL_SetupWindow_install_wine "1.1.35"
Set_WineVersion_Assign "1.1.35" "$NAME"

POL_SetupWindow_message_image "$ATTENTION" "$ATTENTIONT" "$PLAYONLINUX/themes/tango/warning.png"
POL_SetupWindow_message "$POLEND" "$NAME"

POL_SetupWindow_Close
exit 

J'ai changer l'image qui s'affiche sur la droite dans POL par une qui se trouve sur Wikipedia.

Edité par thib25

thib25 Dimanche 24 Janvier 2010 à 10:12
thib25Anonymous

Je pense que je peux le poster, non ?
Berillions Dimanche 24 Janvier 2010 à 11:26
Berillions

Oui. Aucuns bug ni problèmes graphiques?

thib25 Dimanche 24 Janvier 2010 à 11:41
thib25Anonymous

Aucuns problèmes graphiques, ça tourne sans problème avec toutes les options au max, ça lag juste même si j'ai une Radeon HD4870 mais bon ça doit être la faute aux drivers.
thib25 Vendredi 29 Janvier 2010 à 11:00
thib25Anonymous

Bon le script a été rejeté, je sais pas pourquoi.