Heroes of Might & Magic 5 : Tribes Of The East

Autor Odpowiedzi
Berillions Thursday 15 April 2010 at 22:18

Wine version : 1.1.42
Distribution : Debian
Distribution Version : Sid 64
Graphics card : Nvidia, GeForce GTX275
Drivers of the graphics card : 195.36.15
Comments :
Works correctly without DVD and crack

Game Icon :

# Date: (2010-04-15)
# Distribution used to test: Debian Sid
# Wine version used: 1.1.42
# Author: Berillions
# Graphic Card : GeForce GTX275
# Drivers : 195.15.36
#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0 
source "$PLAYONLINUX/lib/sources"
Title="Heroes of Might & Magic 5 : Tribes Of The East"
if [ "$POL_LANG" == "fr" ]; then
LNG_MEM="La taille de votre mémoire graphique?"
LNG_WAIT_END="Appuyez sur \\"Suivant\\" UNIQUEMENT quand l'installation du jeu sera
terminée sous peine de devoir recommencer l'installation."
LNG_MEM="How much memory do your graphic card have got?."
LNG_WAIT_END="Click on \\"Next\\" ONLY when the game installation
is finished or you will have to redo the installation."
wget --output-document="$REPERTOIRE/tmp/HOMM5_T"
convert "$REPERTOIRE/tmp/HOMM5_T" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_presentation "$Title" "Nival Interactive" "" "Berillions" "$Prefix"
POL_SetupWindow_check_cdrom "Setup.exe" 

#Installation de Wine
POL_SetupWindow_install_wine "1.1.42"
Use_WineVersion "1.1.42"
#Préparation de Wine
select_prefix "$REPERTOIRE/wineprefix/$Prefix"
PROGRAMFILES="Program Files"
#Taille de la mémoire graphique
POL_SetupWindow_textbox "$LNG_MEM" "$Title"
#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
#Création Icone
cd "$REPERTOIRE/tmp"
mv "$REPERTOIRE/tmp/H5ToE.png" "$REPERTOIRE/icones/32/$Title"
wine "$CDROM/Setup.exe"
POL_SetupWindow_message "$LNG_WAIT_END" "$Title"
#Création Launcher 
POL_SetupWindow_make_shortcut "$Prefix" "$PROGRAMFILES/Ubisoft/Heroes of Might and Magic V - Tribes of the East/bin/" "H5_Game.exe" "" "$Title"
Set_WineVersion_Assign "1.1.42" "$Title"

Edytowane przez Berillions

NSLW Thursday 15 April 2010 at 22:32

Hello Berillions,

I've got some suggestions you may want to make use of them:
1) I would download Wine after question about DVD because there is no need to download it if user has no HoM&M DVD
2) I would use Wine 1.1.42 to install this addon to make sure that there are no problems with this script which may be caused by user's Wine
3) Set_OS winxp
This is default option so there is no need to set it.
Berillions Thursday 15 April 2010 at 23:01

Hello NSLW,

It's corrected, thanks :)