Forums

Mass Effect

Auteur Réponses
Berillions Dimanche 14 Mars 2010 à 19:27
Berillions

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

#!/bin/bash
# Date: (2010-02-14)
# Distribution used to test: Debian Sid 64Bit
# Wine version used: 1.1.40
# Author: Berillions
 
#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0 
 
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
 
Title="Mass Effect"
Prefix="MassEffect"
 
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/d/d9/Mass_Effect_poster.jpg --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://masseffect.bioware.com/me1" "Berillions" "$Prefix"
 
#Wine Installation
POL_SetupWindow_install_wine "1.1.40"
Use_WineVersion "1.1.40"
 
#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" "Mass Effect Patch" "http://sd-1.archive-host.com/membres/up/51568577817080088/MousePatch.zip"
fi

#Prepare Wine Patched
cd "$REPERTOIRE/WineVersions"
if [ ! -d "1.1.40-ME" ]; then
cp -R "1.1.40" "1.1.40-ME"
rm -rf "1.1.40-ME/usr/lib/wine/dinput.dll.so"
cd "1.1.40-ME/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_d3dx9
POL_Call POL_Install_vcrun2005
 
#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"
echo "[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]" > OGL.reg
echo "\\"VideoMemorySize\\"=\\"$VMS\\"" >> OGL.reg
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/MassEffection.png
convert "$REPERTOIRE/tmp/MassEffection.png" -geometry 32x32 "$REPERTOIRE/icones/32/$Title"
 
#Création Launcher 
POL_SetupWindow_make_shortcut "$Prefix" "$PROGRAMFILES/Mass Effect/Binaries/" "MassEffect.exe" "" "$Title"

cd "$HOME/.PlayOnLinux/configurations/installed"
sed -i -e 's/^wine "MassEffect.exe"  $@$/WINEFORCEMOUSEWARP=yes wine "MassEffect.exe"  $@/g' "$Title"
 
Set_WineVersion_Assign "1.1.40-ME" "$Title"
 
POL_SetupWindow_Close
exit

Vous êtes ici: Index > Your creations. > Mass Effect