Форум

Heroes of Might & Magic 5 : Tribes Of The East

Автор Replies
Berillions Thursday 15 April 2010 at 22:18
Berillions

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 :


#!/bin/bash
# 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"
Prefix="HOMM5_T"
 
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."
else
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."
fi
 
wget http://upload.wikimedia.org/wikipedia/en/d/de/Boxshot_uk_large.jpg --output-document="$REPERTOIRE/tmp/HOMM5_T"
convert "$REPERTOIRE/tmp/HOMM5_T" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpg"
 
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
 
#Presentation
POL_SetupWindow_presentation "$Title" "Nival Interactive" "http://www.mightandmagic.com/HeroesV/" "Berillions" "$Prefix"
 
POL_SetupWindow_cdrom
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"
POL_SetupWindow_prefixcreate
 
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
 
#Taille de la mémoire graphique
POL_SetupWindow_textbox "$LNG_MEM" "$Title"
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
 
#Création Icone
cd "$REPERTOIRE/tmp"
wget http://sd-1.archive-host.com/membres/images/51568577817080088/H5ToE.png
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"
 
POL_SetupWindow_Close
exit

Edited by Berillions


NSLW Thursday 15 April 2010 at 22:32
NSLW

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
Berillions

Hello NSLW,

It's corrected, thanks :)

Вы находитесь здесь: Index > Your creations. > Heroes of Might & Magic 5 : Tribes Of The East

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 dmcayonlinux.com