The forum
Anno 1404
Author |
Replies |
Berillions |
Tuesday 28 July 2009 at 11:22
|
Berillions
|
#!/bin/bash
# Date: (2009-07-28 11-16)
# Distribution used to test: Ubuntu Jaunty
# Wine version used: 1.1.26
# Author: Berillions
#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}
#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
Title="Anno1404"
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
POL_SetupWindow_Init
#Presentation
POL_SetupWindow_presentation "Anno1404" "Ubisoft" "http://anno.fr.ubi.com/" "Berillions" "Anno1404"
#Installation de Wine
POL_SetupWindow_install_wine "1.1.26"
#Préparation de Wine
select_prefixe "$REPERTOIRE/wineprefix/Anno1404"
POL_SetupWindow_prefixcreate
#Taille de la mémoire graphique
POL_SetupWindow_menu_list "Your Memory Graphic" "$Title" "32 64 128 256 384 512 768 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
#Détection du cd-rom
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
wine $CDROM/setup.exe
POL_SetupWindow_message "$LNG_WAIT_END" "$Title"
#Création Launcher
POL_SetupWindow_make_shortcut "Anno1404" "$PROGRAMFILES/Ubisoft/Related Designs/ANNO 1404" "Anno4.exe" "" "Anno1404"
cd "$WINEPREFIX/drive_c/windows/temp"
echo "[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\DllOverrides]" > patch.reg
echo "\\"dbghelp\\"=\\"native\\"" >> patch.reg
regedit patch.reg
Set_WineVersion_Assign "1.1.26" "Anno1404"
POL_SetupWindow_Close
exit
Quelques screenshots :
|
BlondVador |
Wednesday 29 July 2009 at 19:12
|
BlondVador
|
Merci pour ce script malgré que je ne possède pas Anno1404.
|
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