Forums

Colin Mcrae Rally 2005

Auteur Réponses
Jump to the page: 1 - 2
Berillions Vendredi 9 Octobre 2009 à 20:54
Berillions

Le message à rajouter est celui-ci :

POL_SetupWindow_message_image "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." "Note about copy protection" "$PLAYONLINUX/themes/tango/warning.png"

thib25 Vendredi 9 Octobre 2009 à 21:14
thib25Anonymous

Et y'a pas moyen de faire un truc traduit comme j'ai fais ?
Berillions Vendredi 9 Octobre 2009 à 21:46
Berillions

Oui c'est bon, aucun soucis. :)

thib25 Samedi 10 Octobre 2009 à 8:44
thib25Anonymous

OK mais le problème c'est que la fenêtre avec le message ne fait que passer : elle s'ouvre puis se ferme aussitôt.
thib25 Samedi 21 Novembre 2009 à 20:53
thib25Anonymous

Bon j'ai un problème pour valider le script me dit qu'il faut que je rajoute ça au code :

PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}

Pourtant il a été dit plus haut que ce n'était d'aucune utilité. Je suis un peu paumé là :sad:.
Berillions Samedi 21 Novembre 2009 à 22:06
Berillions

Oui, rajoute le après la création du prefix.

NSLW Samedi 21 Novembre 2009 à 23:29
NSLW

Bon j'ai un problème pour valider le script me dit qu'il faut que je rajoute ça au code :

PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}

Pourtant il a été dit plus haut que ce n'était d'aucune utilité. Je suis un peu paumé là :sad:.

Quote from thib25


Hey, I haven't said you have to add this code. I have said that you should resolve Program Files issue. I also gave you prove that you should do so. Berillions says you so, Mulx has explained you where you should put this code. What do you want achieve?
thib25 Dimanche 22 Novembre 2009 à 9:55
thib25Anonymous

OK, OK ! Voilà le nouveau script :
#!/bin/bash
# Date : (2009-08-23 13-00)
# Last revision : (2009-11-18 15-35)
# Wine version used : 1.1.30
# Distribution used to test : Ubuntu 9.10
# Author : thib25
# Licence : Retail
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

NAME="Colin Mcrae Rally 2005"
PREFIX="CMR2005"
URL="ftp://downloads.codemasters.com/patch/colin_mcrae%20rally_2005%20patch_installer.exe"

if [ "$POL_LANG" == "fr" ]; then
INSTALLATION="Installation en cours..."
INSTALLATIONPATCH="Installation de la mise à jour en cours..."
DPATCH="Voulez-vous installer la mise à jour pour $NAME ?"
DOWNLOAD="Téléchargement de la mise à jours en cours..."
PATCHE="La mise à jour à été installée avec succès"
MESSAGE="Veuillez noter que ce jeu a besoin d'un patch no-cd pour pouvoir être lancer.\\nPlayOnLinux ne vous fournira aucune aide ou lien pour ce crack."
else
INSTALLATION="Installation in progress..."
INSTALLATIONPATCH="Installation of the update in progress..."
DPATCH="Do you want to install the update for $NAME ?"
PATCHE="The update has been installed successfully"
DOWNLOAD="Download of the update in progress..."
MESSAGE="Please note that this game need a no-cd patch to work.\\nPlayOnLinux will not provide any help or link for this crack."
fi

wget http://bookinalex.b.o.pic.centerblog.net/tced3etm.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" "www.codemasters.com" "thib25" "$PREFIX"

POL_SetupWindow_install_wine "1.1.30"

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

POL_SetupWindow_question "$DPATCH" "$NAME" 

if [ "$APP_ANSWER" == "TRUE" ] ;then
cd "$REPERTOIRE/tmp"
POL_SetupWindow_download "$DOWNLOAD" "$NAME" "$URL"
POL_SetupWindow_wait_next_signal "$INSTALLATIONPATCH" "$NAME"
wine "./colin_mcrae%20rally_2005%20patch_installer.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_message "$PATCHE" "$NAME"
rm -rf colin_mcrae%20rally_2005%20patch_installer.exe
fi 

POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Codemasters/Colin McRae Rally 2005" "cmr5.exe" "" "$NAME"

#Création icone
cd "$REPERTOIRE/ressources"
wget "http://sd-1.archive-host.com/membres/images/51568577817080088/CMR2.jpg"
mv "CMR2.jpg" "$REPERTOIRE/icones/32/$NAME"

Set_WineVersion_Assign "1.1.30" "$NAME"
POL_SetupWindow_message_image "$MESSAGE" "$NAME" "$PLAYONLINUX/themes/tango/warning.png"

POL_SetupWindow_Close
exit

Excusez-moi pour ce petit désagrément c'est juste que j'étais perdu entre un qui disait blanc et un autre qui disait noir.

EDIT : Sinon comment on fait déjà pour mettre une icône au raccourci ?

Edité par Berillions

Berillions Dimanche 22 Novembre 2009 à 12:15
Berillions

Je t'ai rajouter ceci à ton script, cela devrait faire apparaitre l'icone après l'installation.
#Création icone
cd "$REPERTOIRE/ressources"
wget "http://sd-1.archive-host.com/membres/images/51568577817080088/CMR2.jpg"
mv "CMR2.jpg" "$REPERTOIRE/icones/32/$NAME"

thib25 Dimanche 22 Novembre 2009 à 14:54
thib25Anonymous

Je vais teste ça.

EDIT : Y' a un hic ! Il s'agit d'une icône pour colin mcrae rally 2 :laught:. A la limite si t'arrive à modifier les scripts qui sont déjà valider tu pourrais rajouter ces lignes dans mon scrpit pour colin mcrae rally 2 STP.

Edité par thib25