The forum

[Beta Script]Transformers 2

Author Replies
Berillions Sunday 28 June 2009 at 17:22

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 :p

The script :

# 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%"`
[ "$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."
LNG_WAIT_END="Click on \\"Next\\" ONLY when the game installation
is finished or you will have to redo the installation.."
POL_SetupWindow_presentation "Transformers 2" "Beenox Studios" "" "Berillions" "Transformers 2"
#Wine Installation
POL_SetupWindow_install_wine "1.1.24"
#Wine Preparation
select_prefixe "$REPERTOIRE/wineprefix/Transformers 2"

#Memory Card
POL_SetupWindow_menu_list "Your Memory Graphic" "$Title" "32 64 128 256 384 512 768 1024 2048" " "
#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_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"


A Screenshot :

Edited by Berillions

NSLW Sunday 28 June 2009 at 18:09

# Licence: Free

Quote from Berillions

Is this game free of charge?

POL_SetupWindow_Init "" ""

Quote from Berillions

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

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

Quote from Berillions

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 Sunday 28 June 2009 at 18:22

Hello NSLW,

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

NSLW Sunday 28 June 2009 at 19:28

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

Edited by NSLW

AttilaTheHunk Thursday 23 July 2009 at 6:51

I have a gtx 280 and have the same problem
trx64 Sunday 19 September 2010 at 16:02

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.