The forum

Mass Effect 2

Author Replies
Berillions Sunday 28 March 2010 at 20:04
Berillions

Wine version : 1.1.41
Distribution : Debian
Distribution Version : Sid (64 bits)
Graphics card : Nvidia, GeForce GTX275
Drivers : 195.36.15
Comments : Doesn't work with original .exe

#!/bin/bash
# Date: (2010-03-28)
# Distribution used to test: Debian Sid 64Bit
# Wine version used: 1.1.41
# Author: Berillions
 
#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0 
 
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
 
Title="Mass Effect 2"
Prefix="MassEffect2"
 
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
 
cd $REPERTOIRE/tmp
rm *.jpg
wget http://upload.wikimedia.org/wikipedia/en/0/05/MassEffect2_cover.PNG --output-document="$REPERTOIRE/tmp/$Prefix.jpg"
convert "$REPERTOIRE/tmp/$Prefix.jpg" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpg"
 
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg" 
 
#Presentation
POL_SetupWindow_presentation "$Title" "BioWare" "http://eu.masseffect.com/lang.asp" "Berillions" "$Prefix"
 
#Wine Installation
POL_SetupWindow_install_wine "1.1.41"
Use_WineVersion "1.1.41"
 
#Détection du cd-rom
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Setup.exe" 
 
#Download patch
cd "$REPERTOIRE/ressources"
if [ ! -e MousePatch.zip ]; then
POL_SetupWindow_download "Downloading" "Mouse Patch" "http://sd-1.archive-host.com/membres/up/51568577817080088/MousePatch.zip"
fi
 
#Prepare Wine Patched
cd "$REPERTOIRE/WineVersions"
if [ ! -d "1.1.41-ME2" ]; then
cp -R "1.1.41" "1.1.41-ME2"
rm -rf "1.1.41-ME2/usr/lib/wine/dinput.dll.so"
cd "1.1.41-ME2/usr/lib/wine/"
unzip "$REPERTOIRE/ressources/MousePatch.zip"
fi
 
#Préparation du prefix
select_prefix "$REPERTOIRE/wineprefix/$Prefix"
POL_SetupWindow_prefixcreate
 
#fetching PROGRAMFILES environmental variable
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
 
#Install Directx9 and vcrun2005
POL_Call POL_Install_physx
POL_Call POL_Install_d3dx9
POL_Call POL_Install_vcrun2005

#Making safe vcrun2005 does not get deleted 
chmod -R 0555 "$WINEPREFIX/drive_c/windows/winsxs"
 
#Taille de la mémoire graphique
POL_SetupWindow_menu_list "Your Memory Graphic" "$Title" "32 64 128 256 384 512 768 896 1024 2048" " "
VMS="$APP_ANSWER"
 
#Réglage DirectDrawRenderer
cd "$WINEPREFIX/drive_c/windows/temp"
cat << EOF > OGL.reg
[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]
"VideoMemorySize"="$VMS"
EOF
regedit OGL.reg

#Configuration de Wine
Set_OS winxp
 
POL_SetupWindow_wait_next_signal "Installing ..." "$Title"
wine start /unix "$CDROM/Setup.exe"
POL_SetupWindow_detect_exit
 
POL_SetupWindow_message "$LNG_WAIT_END" "$Title"
 
#Création Icone
cd "$REPERTOIRE/tmp"
wget http://sd-1.archive-host.com/membres/images/51568577817080088/Mass_Effect_2.png
mv "$REPERTOIRE/tmp/Mass_Effect_2.png" "$REPERTOIRE/icones/32/$Title"
 
#Création Launcher 
POL_SetupWindow_make_shortcut "$Prefix" "$PROGRAMFILES/Mass Effect 2/Binaries/" "MassEffect2.exe" "" "$Title"

#To turn the character at 360°
cd "$HOME/.PlayOnLinux/configurations/installed"
sed -i -e 's/^wine "MassEffect2.exe"  $@$/WINEFORCEMOUSEWARP=yes wine "MassEffect2.exe"  $@/g' "$Title"
 
Set_WineVersion_Assign "1.1.41-ME2" "$Title"
 
POL_SetupWindow_Close
exit

Edited by Berillions


hobarrera Wednesday 1 December 2010 at 0:42
hobarreraAnonymous

The mouse patch is not properly applied.
You need to apply the patch to wine's source and rebuild wine, NOT just paste it into wine's directory.
Berillions Saturday 4 December 2010 at 17:26
Berillions

The MousePatch archive contain the file patched after to rebuild wine... (dinput.dll.do)

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com