Pages : 1
#1 Le 23/09/2007, à 12:52
- Lenezir
Far Cry veut pas se lancer
Salut ^^
Avec Wine 0.9.45 j'ai réussi à installer Far Cry avec succès.
Mais il ne veut pas se lancer. Quand je lance le FarCry.exe dans le sous dossier de Wine, il m'affiche le premier écran de lancement puis plante, sans aucun message d'erreur dans le terminal.
Quelqu'un aurait une solution ?
Merci ^^
Hors ligne
#2 Le 23/09/2007, à 13:58
- shoot76
Re : Far Cry veut pas se lancer
essaye avec des option pour ta ligne de commande ! modifie peut etre aussi tes pilotes audio
winecfg
as tu suivi le tuto de UBUNTU-fr ?
~ Data-sientist freelance : https://skulder.fr
Hors ligne
#3 Le 23/09/2007, à 15:53
- Lenezir
Re : Far Cry veut pas se lancer
Oui j'ai bien suivi le tuto : l'installeur Loki n'existe plus, le script de cbz n'est plus à jour et l'installation manuelle ne marche pas, même en bidouillant le fichier DirectX9c.reg et system.cfg
Hors ligne
#4 Le 23/09/2007, à 17:52
- adam0509
Re : Far Cry veut pas se lancer
l'installeur loki se retrouve facilement sur des ftps perso... suffit de chercher un peu... en partant de la doc tu devrais trouver
PIII 533Mhz - 192Mo RAM - Geforce DDR - Win98SE/Xubuntu Feisty
AthlonXP2500+ - 512Mo DDR - ATI9600XT - WinXPSP2/Ubuntu Feisty
Dell Ubuntu - Dual Core - 1024Mo -...carte graphique à chier !!! (Intel 950)
Hors ligne
#5 Le 23/09/2007, à 18:14
- shoot76
Re : Far Cry veut pas se lancer
euh le script marche
fait un
cd ~/Desktop && gedit farcry.sh
ensuite copie colle le contenue du script ! ( doc ubuntu far cry )
#!/bin/sh
# Install Farcry
# version 0.6
# par cbz
# gksu (Debian) ou gksudo (Ubuntu)
if [ "`cat /etc/debian_version`" = "" ]; then
gks="gksudo"
versionwine="Wine 0.9.24"
tversionwine="Wine "
else
gks="gksu"
versionwine="wine-0.9.24"
tversionwine="wine-"
fi
if [ -a /usr/lib/wine/wineserver ]; then
wineserv="/usr/lib/wine/wineserver"
else
wineserv="wineserver"
fi
# (Dépendances: zenity, cabextract, sed, wine)
if ! [ "`dpkg -s zenity | grep 'Status:'`" = "Status: install ok installed" ]; then
{
#Recherche du paquet zenity dans les dépôts
$gks --message "Installation du paquet Zenity nécessaire pour continuer l'installation." apt-get update
if [ "`apt-cache search --names-only zenity`" = "" ]; then
echo "Le paquet zenity n'est pas présent.
Installation annulée."
exit 1
else
#Installation de zenity
$gks apt-get install zenity
if ! [ "`dpkg -s zenity | grep 'Status:'`" = "Status: install ok installed" ]; then
echo "Le paquet zenity n'est pas présent.\nInstallation annulée."
exit 1
fi
fi
}
fi
#Dépendance cabextract
if ! [ "`dpkg -s cabextract | grep 'Status:'`" = "Status: install ok installed" ]; then
#Recherche du paquet cabextract dans les dépôts
$gks --message "L'installation du paquêt cabextract est nécessaire." apt-get update
if [ "`apt-cache search cabextract`" = "" ]; then
zenity --title="Installation Far Cry" --error \
--text="Le paquet cabextract n'est pas présent.\nInstallation annulée."
exit 1
else
#Installation de cabextract
$gks --message "L'installation du paquêt cabextract est nécessaire." apt-get install cabextract
if ! [ "`dpkg -s cabextract | grep 'Status:'`" = "Status: install ok installed" ]; then
zenity --title="Installation Far Cry" --error \
--text="Le paquet cabextract n'est pas présent.\nInstallation annulée."
exit 1
fi
fi
fi
#Dépendance sed
if ! [ "`dpkg -s sed | grep 'Status:'`" = "Status: install ok installed" ]; then
#Recherche du paquet sed dans les dépôts
$gks --message "L'installation du paquêt sed est nécessaire." apt-get update
if [ "`apt-cache search sed`" = "" ]; then
zenity --title="Installation Far Cry" --error \
--text="Le paquet sed n'est pas présent.\nInstallation annulée."
exit 1
else
#Installation de cabextract
$gks --message "L'installation du paquêt sed est nécessaire." apt-get install sed
if ! [ "`dpkg -s sed | grep 'Status:'`" = "Status: install ok installed" ]; then
zenity --title="Installation Far Cry" --error \
--text="Le paquet sed n'est pas présent.\nInstallation annulée."
exit 1
fi
fi
fi:P
# Prérequis Wine
if [ ! "`dpkg -s wine | grep 'Status:'`" = "Status: install ok installed" ]; then
#Verifie si le paquet wine est installé
zenity --title="Installation Far Cry" --error \
--text="Wine ne semble pas être installé.\nInstallation annulée."
exit 1
fi
#Verifie si wine est configuré (existence du répertoire ~/.wine/drive_c)
if ! [ -d ~/.wine/drive_c ]; then
zenity --title="Installation Far Cry" --question \
--text="Wine ne semble pas être configuré (~/.wine/drive_c absent).\nVoulez vous lancer Wine Config?"
if [ "$?" = "0" ]; then
winecfg 2>~/winecfg.log
fi
if ! [ -d ~/.wine/drive_c ]; then
zenity --title="Installation Far Cry" --error \
--text="Wine ne semble pas avoir été configuré.\nInstallation annulée."
exit 1
fi
fi
# Vérifie la version de wine (>=0.9.25 bon support de l'installation par msi)
if ! [ "`wine --version 2>/dev/null | grep -i "$tversionwine"`" \> "$versionwine" ]; then
zenity --title="Installation Far Cry" --error \
--text="Version de wine obsolète (`wine --version 2>/dev/null`).\nVeuillez faire la mise à jour de wine avec une version >= 0.9.25."
exit 1
fi
#Vérifie si le répertoire ~/.wine/drive_c est accessible en écriture
if ! [ -w ~/.wine/drive_c ]; then
zenity --title="Installation Far Cry" --error \
--text="Le répertoire racine du lecteur C (~/.wine/drive_c) ne permet pas un accès en écriture.\nInstallation annulée."
exit 1
fi
zenity --title="Installation Far Cry" --info \
--text="Ce programme est un installeur pour Far Cry.\n\nIl nécessite:\n-Un média d'installation de Far Cry.\n-Une clé de Far Cry valide.\n-Un patch cumulatif récent de Far Cry.\n-Un exécutable No CD de Far Cry\n-Les options vidéos de Wine configurés pour émuler un bureau virtuel.\n\nLors de l'installation, vous serez peut-être amener à clore manuellement la fenêtre wine desktop."
# Sélection du média d'installation de Far Cry
flag=1
while [ "$flag" = "1" ]; do
media_farcry=`zenity --title="Sélectionner le média d'installation de Far Cry" --file-selection --directory`
if [ "$?" != "0" ]; then
zenity --title="Installation Far Cry" --error \
--text="Installation annulée."
exit 1
fi
# Verification du média d'installation de Far Cry
if ! [ -e "$media_farcry/Far Cry.msi" ]; then
zenity --title="Installation Far Cry" --info \
--text="Identification du média d'installation de Far Cry échouée.\nSi besoin veuillez insérer le DVD d'installation."
else
flag=0
fi
done
# Sélectionner du patch Far Cry à installer
flag=1
while [ "$flag" = "1" ]; do
patch_farcry=`zenity --title="Sélectionner du patch Far Cry à installer" --file-selection`
if [ "$?" != "0" ]; then
zenity --title="Installation Far Cry" --error \
--text="Installation annulée."
exit 1
else
flag=0
fi
done
# Sélectionner de l'exécutable Far Cry No CD
flag=1
while [ "$flag" = "1" ]; do
exeNoCD_farcry=`zenity --title="Sélectionner de l'exécutable Far Cry NoCD" --file-selection`
if [ "$?" != "0" ]; then
zenity --title="Installation Far Cry" --error \
--text="Installation annulée."
exit 1
else
flag=0
fi
done
echo "Installation de clés de registre pour simuler la présence de DirectX9c."
#Installation des clés de registres
mkdir -p ~/.wine/drive_c/Program\ Files/Ubisoft/Crytek/Far\ Cry/
cd ~/.wine/drive_c/Program\ Files/Ubisoft/Crytek/Far\ Cry/
# DirectX9c.reg
echo 'Windows Registry Editor Version 5.00' >>DirectX9c.reg
echo '' >>DirectX9c.reg
echo '[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectX]' >>DirectX9c.reg
echo 'InstalledVersion=hex:00,00,00,09,00,00,00,00' >>DirectX9c.reg
echo 'Version="4.09.00.0904"' >>DirectX9c.reg
# Mise à jour de la base de registre
regedit DirectX9c.reg
# Installation de Far Cry
echo "Installation de Far Cry."
# installation de Far Cry
echo $media_farcy
cd "$media_farcry/"
wine setup.exe
$wineserv -k
# Installation du patch Far Cry
echo "Installation du patch Far Cry."
# installation du patch Far Cry (lancer avec wine via un lien symbolique)
ln -s "$patch_farcry" ~/.wine/drive_c/patch.exe
wine ~/.wine/drive_c/patch.exe 2>~/.wine/drive_c/patch_farcry.log
$wineserv -k
rm ~/.wine/drive_c/patch.exe
cd ~/.wine/drive_c/Program\ Files/Ubisoft/Crytek/Far\ Cry/
# Copie de l'exécutable Far Cry No CD
mv ./Bin32/FarCry.exe ./Bin32/original_FarCry.exe
cp "$exeNoCD_farcry" ./Bin32/
# Exécution du programme de configuration de Far Cry
zenity --title="Installation Far Cry" --info \
--text="Le programme de configuration de Far Cry va être exécuté.\nRenseigner un mode graphique compatible avec le mode défini dans wine."
wine ./Bin32/FarCryConfigurator.exe
$wineserv -k
#Force openGL et un mode fenêtre dans le fichier system.cfg de Far Cry
for namecfg in `find . -name '*system.cfg' -type f`;do
sed -i 's/r_Driver = "Direct3D9"/r_Driver = "OpenGL"/g' $namecfg;
sed -i 's/r_Fullscreen = "1"/r_Fullscreen = "0"/g' $namecfg;
sed -i 's/i_direct_input = "1"/i_direct_input = "0"/g' $namecfg;
done
#r_TexResolution = "0"
#Force l'utilisation de la souris à la place du pad
cp ./Profiles/defaults/french/game.cfg .
for namecfg in `find . -name '*game.cfg' -type f`;do
sed -i 's/Input:BindAction("TURNLR", "joy_rstick_ud", "binozoom", 0);/Input:BindAction("TURNLR", "maxisx", "binozoom", 0);/g' $namecfg;
sed -i 's/Input:BindAction("TURNUD", "joy_rstick_lr", "binozoom", 0);/Input:BindAction("TURNUD", "maxisy", "binozoom", 0);/g' $namecfg;
sed -i 's/Input:BindAction("TURNLR", "joy_rstick_ud", "default", 0);/Input:BindAction("TURNLR", "maxisx", "default", 0);/g' $namecfg;
sed -i 's/Input:BindAction("TURNUD", "joy_rstick_lr", "default", 0);/Input:BindAction("TURNUD", "maxisy", "default", 0);/g' $namecfg;
sed -i 's/Input:BindAction("TURNLR", "joy_rstick_ud", "vehicle", 0);/Input:BindAction("TURNLR", "maxisx", "vehicle", 0);/g' $namecfg;
sed -i 's/Input:BindAction("TURNUD", "joy_rstick_lr", "vehicle", 0);/Input:BindAction("TURNUD", "maxisy", "vehicle", 0);/g' $namecfg;
sed -i 's/Input:BindAction("TURNLR", "joy_rstick_ud", "zoom", 0);/Input:BindAction("TURNLR", "maxisx", "zoom", 0);/g' $namecfg;
sed -i 's/Input:BindAction("TURNUD", "joy_rstick_lr", "zoom", 0);/Input:BindAction("TURNUD", "maxisy", "zoom", 0);/g' $namecfg;
done
zenity --title="Installation Far Cry" --info \
--text="Installation de Far Cry terminée.\n\nBon frag !!!"
exit 0
ensuite fais moi un joli petit :
cd ~/Desktop && sh farcry.sh
voila ensuite c'est fais ! logiquement! je n'ai pas far cry ! mais l'installateur semblais reconnatire les cds et mes dossier quand je l'ai lancé ! teste quand même tu ne risque rien
~ Data-sientist freelance : https://skulder.fr
Hors ligne
#6 Le 23/09/2007, à 19:01
- Lenezir
Re : Far Cry veut pas se lancer
Merci mais voici ce qu'il me renvoit :
[: 21: /usr/lib/wine/wineserver: unexpected operator
farcry.sh: 232: Syntax error: end of file unexpected (expecting "fi")
Hors ligne
#7 Le 24/09/2007, à 00:25
- raspouille
Re : Far Cry veut pas se lancer
salut,
l'adresse de l'installeur far.cry_1.33-french.dvd.run
http://mirrors.ecology.uni-kiel.de/game … e/far_cry/
Linux Mint Mate 17.3 GNU/Linux.
Hors ligne
#8 Le 24/09/2007, à 17:27
- shoot76
Re : Far Cry veut pas se lancer
pas mal ! je cherchais sur gogole ! mais j'ai pas trouvé !
~ Data-sientist freelance : https://skulder.fr
Hors ligne
#9 Le 25/09/2007, à 07:32
- Lenezir
Re : Far Cry veut pas se lancer
Merci raspouille !
J'essayerai ça quand je rentrerai chez moi ce week-end
Hors ligne
Pages : 1