Forums

Anno 1404

Auteur Réponses
Berillions Mardi 28 Juillet 2009 à 11:22
Berillions

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/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 Mercredi 29 Juillet 2009 à 19:12
BlondVador

Merci pour ce script malgré que je ne possède pas Anno1404.

Vous êtes ici: Index > Vos créations > Anno 1404

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@playonlinux.com