Estas Aqui > Les forums > Your creations. > [Beta Script]Transformers 2 sv ru pl en fr

Foros

[Beta Script]Transformers 2

Nuevo tema  - Responder
Autor Respuestas
Berillions Domingo 28 Junio 2009 a las 17:22 - [Citar]
Membre

Membre
Hello everybody,

i have create a script for Transformers 2. No need to install Directx9 or Visual C++ 2005, everything is made during the installation.

But, i have an ATI card, a 4850HD and the game and sound are very slow when i must create a new profil. I would like to know if someone having the game and a Nvidia card can test my script and give me the result.

Thank you very much and sorry for my english, i'm french

The script :

#!/bin/bash
# Date: (2009-06-28 17-00)
# Distribution used to test: Ubuntu Jaunty
# Wine version used: 1.1.24
# Author: Berillions
 
#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3} 
 
[ "$PLAYONLINUX" = "" ] && exit 0 
 
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"
 
#Wine Installation
POL_SetupWindow_install_wine "1.1.24"
 
#Wine Preparation
select_prefixe "$REPERTOIRE/wineprefix/Transformers 2"
POL_SetupWindow_prefixcreate

#Memory Card
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 "\"VideoMemorySize\"=\"$VMS\"" >> OGL.reg
regedit OGL.reg

#Wine Configuration
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"
 
#Create Launcher 
POL_SetupWindow_make_shortcut "Transformers 2" "$PROGRAMFILES/Activision/Transformers - Revenge of the Fallen/" "Transformers2.exe" "" "Transformers 2"
 
Set_WineVersion_Assign "1.1.24" "Transformers 2"

POL_SetupWindow_message_image "Please note that this game has a copy protection system
and sadly, it prevents Wine from running the game.

PlayOnLinux will not provide any help concerning any illegal
stuff." "Note about copy protection" "/usr/share/playonlinux/themes/tango/warning.png"

POL_SetupWindow_Close
exit

A Screenshot :
[img=http://img40.imageshack.us/img40/2897/capturedts.th.png]

Editado por: Berillions


NSLW Domingo 28 Junio 2009 a las 18:09 - [Citar]
Membre

Membre

Citation de Berillions:


# Licence: Free

Is this game free of charge?

Citation de Berillions:


POL_SetupWindow_Init "" ""

this "" "" isn't required if you do not use it

Citation de Berillions:


echo "\"Multisampling\"=\"disabled\"" >> OGL.reg
echo "\"OffscreenRenderingMode\"=\"fbo\"" >> OGL.reg
echo "\"PixelShaderMode\"=\"enabled\"" >> OGL.reg


This is set as default on Wine-1.1.24 so no need to set it manually


Does this game works out of box or do you have to use non original executable file?
Berillions Domingo 28 Junio 2009 a las 18:22 - [Citar]
Membre

Membre
Hello NSLW,

Yes, i use a no-cd crack...

NSLW Domingo 28 Junio 2009 a las 19:28 - [Citar]
Membre

Membre
Then please add following message at the end of installation

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" "/usr/share/playonlinux/themes/tango/warning.png"

you can see how it does look here and in the script

Editado por: NSLW

AttilaTheHunk Jueves 23 Julio 2009 a las 6:51 - [Citar]
Membre

Membre
I have a gtx 280 and have the same problem
trx64 Domingo 19 Septiembre 2010 a las 16:02 - [Citar]
Membre

Membre
Berillions, could you post here a download link to this script? I've tryed to simply copy and paste it on a text file called "transformers.pol" and use it with PlayOnLinux (version 3.7.3, Mandriva Linux 2010.1), but the program says that the script is invalid.
Il n'y a rien à voir ici