The forum

[Script]Transformers 2

Drôle de Problème

Author Replies
Berillions Sunday 28 June 2009 at 15:52
Berillions

Bonjour à tous,

Voici un petit script pour Transformers2. Il n'y a pas besoin d'installer Directx9 ou autre chose. L'installation les installe lui même.

#!/bin/bash
# Date: (2009-06-28 17-00)
# Distribution used to test: Ubuntu Jaunty
# Wine version used: 1.1.24
# Licence: Free
# Author: Berillions
 
#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="Transformers 2"
 
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 "Transformers 2" "Beenox Studios" "http://www.transformersgame.com/" "Berillions" "Transformers 2"
 
#Installation de Wine
POL_SetupWindow_install_wine "1.1.24"
 
#Préparation de Wine
select_prefixe "$REPERTOIRE/wineprefix/Transformers 2"
POL_SetupWindow_prefixcreate

#Taille de la mémoire graphique
POL_SetupWindow_menu_list "Your Memory Graphic" "$Title" "32 64 128 256 384 512 768 1024 2048" " "
VMS="$APP_ANSWER"
 
#Réglage Direct3D
cd "$WINEPREFIX/drive_c/windows/temp"
echo "[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]" > OGL.reg
echo "\\"Multisampling\\"=\\"disabled\\"" >> OGL.reg
echo "\\"OffscreenRenderingMode\\"=\\"fbo\\"" >> OGL.reg
echo "\\"PixelShaderMode\\"=\\"enabled\\"" >> 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 "wait the end" "$Title"
 
#Création Launcher 
POL_SetupWindow_make_shortcut "Transformers 2" "$PROGRAMFILES/Activision/Transformers - La Revanche/" "Transformers2.exe" "" "Transformers 2"
 
Set_WineVersion_Assign "1.1.24" "Transformers 2"

POL_SetupWindow_Close
exit


Ayant une ATI HD4850, le jeu se lance très bien mais, lorsque j'arrive au moment de créer un nouveau profil, le jeu et le son sont très lent.

Donc, je ne sais pas si ce script est valable. C'est pour cela que je fais appel à ceux qui ont une Nvidia pour qu'il me dise s'ils ont également des ralentissements.

Merci

Un screenshot :
[img=http://img40.imageshack.us/img40/2897/capturedts.th.png]

Edited by Berillions


Berillions Sunday 28 June 2009 at 16:58
Berillions

Mise à jour complet du post