Forums

Wolfenstein

2009

Auteur Réponses
Berillions Vendredi 21 Aoüt 2009 à 20:16
Berillions

Salut tout le monde,

J'ai crée un script pour Wolfenstein, un jeu qui est sorti il y a peu. Pour le peu que j'y ai joué, je n'ai pas eu de crash ni de bug graphique.

#!/bin/bash
# Date: (2009-08-21 19-25)
# Distribution used to test: Frugalware Current
# Wine version used: 1.1.27
# Author: Berillions
# Graphic Card : GeForce GTX275
# Drivers : 185.18.31
 
#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3} 
 
#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0 
 
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
 
Title="Wolfenstein"
 
if [ "$POL_LANG" == "fr" ]; then
LNG_WAIT_END="Appuyez sur \\"Suivant\\" UNIQUEMENT quand l'installation du jeu sera
terminée sous peine de devoir recommencer l'installation."
else
LNG_WAIT_END="Click on \\"Next\\" ONLY when the game installation
is finished or you will have to redo the installation.."
fi

POL_SetupWindow_Init
 
#Presentation
POL_SetupWindow_presentation "$Title" "Activision" "http://www.wolfenstein.com/" "Berillions" "$Title"
 
#Installation de Wine
POL_SetupWindow_install_wine "1.1.27"

#Préparation de Wine
select_prefixe "$REPERTOIRE/wineprefix/$Title"
POL_SetupWindow_prefixcreate

#Taille de la mémoire graphique
POL_SetupWindow_textbox "Your Memory Graphic ?" "Memory Graphic"
VMS="$APP_ANSWER"
 
#Réglage DirectDrawRenderer
cd "$WINEPREFIX/drive_c/windows/temp"
echo "[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]" > OGL.reg
echo "\\"VideoMemorySize\\"=\\"$VMS\\"" >> OGL.reg
regedit OGL.reg

#Configuration de Wine
Set_OS winxp
 
#Détection du cd-rom
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe" 

wine $CDROM/setup.exe

POL_SetupWindow_message "$LNG_WAIT_END" "$Title"
 
#Création Launcher 
POL_SetupWindow_make_shortcut "$Title" "$PROGRAMFILES/Activision/Wolfenstein/SP/" "Wolf2.exe" "" "$Title"

Set_WineVersion_Assign "1.1.27" "$Title"

POL_SetupWindow_Close
exit


Screenshot :





ptictux Samedi 5 September 2009 à 17:56
ptictuxAnonymous

Bonjour

Merci pour le script, ca le fait.

Mais j'ai un pb en mode multi:
- au1er lancement un patch est téléchargé et installé à priori sans souci.
- au 2ème il recommence le téléchargement, mais lors de la seconde install dit qu'il est déjà à jour.

Le souci est donc dans la détection du patch, searit-il installé au mauvais endroit... je ne vois pas où ?

Une idée ?

Pascal
Berillions Dimanche 6 September 2009 à 11:41
Berillions

Je n'ai pas essayé le mode multijoueur. Désolé :s

Vous êtes ici: Index > Vos créations > Wolfenstein