Forums

[Script]FEAR

mais problème

Auteur Réponses
Berillions Mardi 16 Juin 2009 à 21:36
Berillions

#!/bin/bash
# Date : (2009-06-13 22-35)
# Last revision : (2009-06-18 18-47)
# Wine version used : 1.1.22
# Distribution used to test : Ubuntu Jaunty
# Author : Berillions
# Licence : Free

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

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

Title="Fear"
 
if [ "$POL_LANG" == "fr" ]; then
LNG_DLL="Téléchargement de la dll nécéssaire"
LNG_REG="Une fois dans le registre, allez à HKEY_CURRENT_CONFIG\\Software\\Fonts et changer à 95 la\\nvaleur de LogPixels, afin de résoudre le problème d'insertion de clé"
LNG_REG2="Une fois dans le registre, allez à HKEY_CURRENT_CONFIG\\Software\\Fonts et\\nchanger à 60 la valeur de LogPixels"
LNG_WAIT_CP="Preparation de l'installation"
LNG_WAIT_END="Appuyez sur \\"Suivant\\" UNIQUEMENT quand l'installation du jeu sera terminée\\nsous peine de devoir recommencer l'installation."
LNG_PATCH="Voulez-vous installer le patch 1.08 de FEAR?"
else
LNG_DLL="Downloading .dll"
LNG_REG="In the Register, go to HKEY_CURRENT_CONFIG\\Software\\Fonts and change the\\nLogPixels value at 95, to resolve the problem of cd-key"
LNG_REG2="In the Register, go to HKEY_CURRENT_CONFIG\\Software\\Fonts and change the LogPixels value at 60"
LNG_WAIT_CP="Preparation of Installation"
LNG_WAIT_END="Click on \\"Next\\" ONLY when the game installation is finished\\nor you will have to redo the installation."
LNG_PATCH="Do you to install the patch 1.08 ?"
fi


#Presentation
cd "$REPERTOIRE/tmp"
wget http://sd-1.archive-host.com/membres/up/51568577817080088/fear_alma.jpg --output-document=left.jpeg
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_presentation "Fear" "Monolith Productions" "http://www.whatisfear.com/" "Berillions" "Fear"

#Installation de Wine
POL_SetupWindow_install_wine "1.1.22"

select_prefix "$REPERTOIRE/wineprefix/Fear/"
POL_SetupWindow_prefixcreate

cd "$REPERTOIRE/ressources"
#téléchargement FEAR.zip (size 1.56MB)
if [ ! -e FEAR.zip ]; then
POL_SetupWindow_download "$LNG_DLL" "$Title" "http://sd-1.archive-host.com/membres/up/51568577817080088/FEAR.zip"
fi 

cd "$REPERTOIRE/ressources"
unzip "$REPERTOIRE/ressources/FEAR.zip"
mv "$REPERTOIRE/ressources/d3dx9_36.dll" "$WINEPREFIX/drive_c/windows/system32/"

cat << EOF > "$REPERTOIRE/tmp/patch.reg"
[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\DllOverrides] 1233608859
"d3dx9_36"="native"
EOF
regedit "$REPERTOIRE/tmp/patch.reg" # On applique le patch

POL_SetupWindow_message "$LNG_REG" "$Title"
wine regedit

#Configuration de Wine
Set_OS winXP

#Taille de la mémoire graphique
POL_SetupWindow_menu_list "La taille de votre mémoire graphique?" "$Title" "32 64 128 256 384 512 768 1024 2048" " "
VMS="$APP_ANSWER"

#Réglage Direct3D dans le Registre
cd "$WINEPREFIX/drive_c/windows/temp"
echo "[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]" > OGL.reg
echo "\\"OffscreenRenderingMode\\"=\\"fbo\\"" >> OGL.reg
echo "\\"VideoMemorySize\\"=\\"$VMS\\"" >> OGL.reg
regedit OGL.reg

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"

POL_SetupWindow_wait_next_signal "$LNG_WAIT_CP" "$Title"

cd "$CDROM"
wine ./setup.exe
POL_SetupWindow_message "$LNG_WAIT_END" "$Title"

POL_SetupWindow_message "$LNG_REG2" "$Title"
wine regedit

POL_SetupWindow_question "$LNG_PATCH" "FEAR Patch 1.08"
if [ "$APP_ANSWER" == "TRUE" ] ;then
POL_SetupWindow_browse "Select patch file" "$Title" ""
wine "$APP_ANSWER"
POL_SetupWindow_message "Patch for $Title has been installed successfully" "$Title"
fi

POL_SetupWindow_make_shortcut "Fear" "$PROGRAMFILES/Sierra/FEAR" "FEAR.exe" "" "Fear"

Set_WineVersion_Assign "1.1.22" "Fear"

POL_SetupWindow_Close
exit

Edité par Berillions


Ghostofkendo Mercredi 17 Juin 2009 à 12:21
Ghostofkendo

Salut Berillions,

En faite, lorsque les lettres sont "grosse" style "W" il n'y a plus la place pour le 4ème caractère dans la case.

Pour mon cas, c'est pour les 4 caractères suivants : "DAX9"
Je ne peux qu'insérer que "DAX"...

Quote from Berillions
Tu pourrais nous montrer ça avec un screenshot s'il te plaît ?

Bye
Berillions Mercredi 17 Juin 2009 à 17:03
Berillions

Voilà un screenshot, tu peux facilement voir le problème avec la première cellule ou je ne peux insérer que 2 "W".

http://www.hiboox.fr/go/images/informatique/cl,5213b0733c239527b06dffd948321c3e.png.html

Berillions Jeudi 18 Juin 2009 à 12:43
Berillions

Gros EDIT :

Problème Résolu, il suffit de jeter un coup d'oeil au script que j'ai mis à jour dans mon 1er message.

Edité par Berillions


Berillions Jeudi 18 Juin 2009 à 18:57
Berillions

Désolé pour le triple message à la suite.
Jeu installé correctement et complètement jouable. :)

Envoie en cours pour qu'il passe en officiel.

Ghostofkendo Jeudi 18 Juin 2009 à 21:13
Ghostofkendo

Envoie en cours pour qu'il passe en officiel.

Quote from Berillions
En es-tu certain ? Je ne le vois nul part parmi les scripts demandant la validation.
Berillions Jeudi 18 Juin 2009 à 21:19
Berillions

Entre le moment ou j'ai écris cela et maintenant, j'ai été fort occupé autre part...
T'ai envoyé un MP pour une question à propos de ça.

spontex Samedi 20 Juin 2009 à 19:02
spontexAnonymous

Bonjour,

Merci pour votre script ! Je viens de le tester ; l'installation fonctionne parfaitement, mais au moment d'exécuter le jeu, j'obtiens l'erreur suivante :

Berillions Samedi 20 Juin 2009 à 19:07
Berillions

Alors, chez moi tout est fonctionnel comme le montre cette image :

http://www.hiboox.fr/go/images/jeu-video/fear,9a8e992eccde7edb5faba8ce42897db7.png.html

Tu utilises quelle version de Wine pour lancer le jeu?

Edité par Berillions


spontex Dimanche 21 Juin 2009 à 17:47
spontexAnonymous

J'utilise la version 1.1.22, qui a été installée automatiquement par PlayOnLinux.
Au début c'est la version 1.0.1, correspondant au paquet Ubuntu, qui était utilisée mais je suis allé lui dire de prendre la 1.1.22 et je l'ai réinstallé.

Même comme ça, j'ai toujours ce message d'erreur.
Berillions Dimanche 21 Juin 2009 à 18:14
Berillions

Tu as réinstallé le jeu après lui avoir dit d'utiliser la version 1.1.22 ?
Si c'est le cas, retourne vérifier car si tu as fait comme cela, la modification a été perdu. Quitte et relance PoL également.

spontex Dimanche 21 Juin 2009 à 18:44
spontexAnonymous

Oui, j'ai essayé tout ça, mais j'ai toujours le même message d'erreur :-(
skull-dream Samedi 4 Juillet 2009 à 13:59
skull-dreamAnonymous

Désolé de remonter ce topi, mais comment on rentre dans le registre pour changer la valeur ?? merci d'avance pour vos réponse

EDIT : c'est bon j'ai trouver, merci kan émme

Edité par skull-dream

spontex Samedi 4 Juillet 2009 à 22:46
spontexAnonymous

Salut skull-dream,
Ca marche pour toi ? Tu arrives à démarrer le jeu ?
Vous êtes ici: Index > Vos créations > [Script]FEAR