Forums

Anno 1701

Auteur Réponses
benji64 Mercredi 23 Mars 2011 à 10:42
benji64

Salut à tous,

je vous propose un script d'installation d'Anno 1701 et un script pour son dernier patch v1.02.
Il fonctionne impec chez moi mais j'aurais besoin de quelques retour supplémentaires avant de le proposer.

Le jeu :
#!/bin/bash
# Date : (2011-03-23 10-00)
# Last revision : 
# Wine version used : 1.3.16
# Distribution used to test : Kubuntu 10.10 64bits
# Author : Benji64 & GNU_Raziel
# Licence : Retail
# Only for : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Anno 1701"
PREFIX="Anno1701"

if [ "$POL_LANG" == "fr" ]; then
LNG_ANNO_INSTALL="Anno 1701 est en cours d'installation..."
LNG_FIN="Installation terminée !\\n\\n\\nScript créé d'après les informations tirées du site de Wine :\\nhttp://appdb.winehq.org/objectManager.php?sClass=version&iId=6822\\n\\nINFORMATION : vous devez contourner les protections anti-piratage pour faire fonctionner ce jeu."
else
LNG_ANNO_INSTALL="Installing Anno 1701..."
LNG_FIN="Installation complete !\\n\\n\\nThis script has been created from Wine Website information :\\nhttp://appdb.winehq.org/objectManager.php?sClass=version&iId=3775\\n\\nINFORMATION : you'll have to disable anti-piracy protections to run this game."
fi

# Présentation
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Related Designs" "http://www.related-designs.de/" "Benji64 & GNU_Raziel" "$PREFIX"

select_prefix "$POL_USER_ROOT/wineprefix/$PREFIX"

# Installation de Anno 1701
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
POL_SetupWindow_wait_next_signal "$LNG_ANNO_INSTALL" "$TITLE"
wine $CDROM/setup.exe
INSTALL_ON="1"
until [ "$INSTALL_ON" == "" ]; do
sleep 5
INSTALL_ON=`ps aux | grep "wineserver" | grep -v "grep"`
done
POL_SetupWindow_detect_exit

# Fix for this game
cd "$POL_USER_ROOT/tmp"
cat << EOF > anno_fix.reg
[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]
"OffscreenRenderingMode"="fbo"
"UseGLSL"="enable"
EOF
regedit anno_fix.reg
POL_Call POL_Function_OverrideDLL "native" "dbghelp"

#cleaning temp
if [ -e "$WINEPREFIX/drive_c/windows/temp/" ]; then
rm -rf "$WINEPREFIX/drive_c/windows/temp/*"
chmod -R 777 "$POL_USER_ROOT/tmp/"
rm -rf "$POL_USER_ROOT/tmp/*"
fi

# Fin de l'installation
POL_SetupWindow_auto_shortcut "$PREFIX" "Anno1701.exe" "$TITLE" "" ""

POL_SetupWindow_message "$LNG_FIN" "$TITLE"

POL_SetupWindow_Close
exit


Le patch :
#!/bin/bash
# Date : (2011-03-23 10-00)
# Last revision : 
# Wine version used : 1.3.16
# Distribution used to test : Kubuntu 10.10 64bits
# Author : Benji64 & GNU_Raziel
# Licence : Retail
# Only for : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Anno 1701"
PREFIX="Anno1701"

if [ "$POL_LANG" == "fr" ]; then
LNG_GAME_UPDATE_WELCOME="Bienvenue dans le script d'installation du\\npatch 1.02 pour $TITLE"
LNG_VERSION_QUESTION="Sélectionner la version d'installation d'Anno :"
AUTRE="Autre"
LNG_PATCH_NOT_IN_LIST="Voulez vous utiliser un fichier local pour patcher le jeu?"
LNG_PATCH_DL="Le patch v1.02 est en cours de téléchargement..."
LNG_PATCH_INSTALL="Le patch v1.02 est en cours d'installation..."
LNG_FIN="Installation terminée !\\n\\n\\nScript créé d'après les informations tirées du site de Wine :\\nhttp://appdb.winehq.org/objectManager.php?sClass=version&iId=6822\\n\\nINFORMATION : vous devez contourner les protections anti-piratage pour faire fonctionner ce jeu."
else
LNG_GAME_UPDATE_WELCOME="Welcome in the patch 1.02 Installation script\\nfor $TITLE"
LNG_VERSION_QUESTION="Choose the Anno installation version :"
AUTRE="Other"
LNG_PATCH_NOT_IN_LIST="Do you want to use a local file to patch the game?"
LNG_PATCH_DL="Downloading patch v1.02..."
LNG_PATCH_INSTALL="Installing patch v1.02..."
LNG_FIN="Installation complite !\\n\\n\\nThis script has been created from Wine Website inforamtion :\\nhttp://appdb.winehq.org/objectManager.php?sClass=version&iId=3775\\n\\nINFORMATION : you'll have to disable anti-piracy protections to run this game."
fi

POL_SetupWindow_Init
POL_SetupWindow_free_presentation "$TITLE" "$LNG_GAME_UPDATE_WELCOME"


POL_SetupWindow_checkexist()
{
if [ ! -e "$POL_USER_ROOT/wineprefix/$1" ]; then
if [ "$POL_LANG" == "fr" ]; then
LNG_PREFIX_NOT_EXIST="Le jeu n'est pas installé."
else
LNG_PREFIX_NOT_EXIST="Game is not installed."
fi
POL_SetupWindow_message "$LNG_PREFIX_NOT_EXIST" "$TITLE"
POL_SetupWindow_Close
exit
fi
}

POL_SetupWindow_checkexist "$PREFIX"

select_prefix "$POL_USER_ROOT/wineprefix/$PREFIX"

# Téléchargement des fichiers nécessaires à l'installation du patch
POL_SetupWindow_menu "$LNG_VERSION_QUESTION" "$TITLE" "fra~uk~usa~ger~$AUTRE" "~"
if [ "$APP_ANSWER" == "fra" ]; then
FICHIER="anno1701_patch102_fra.exe"
elif [ "$APP_ANSWER" == "uk" ]; then
FICHIER="anno1701_patch102_uk.exe"
elif [ "$APP_ANSWER" == "ger" ]; then
FICHIER="anno1701_patch102_ger.exe"
elif [ "$APP_ANSWER" == "usa" ]; then
FICHIER="1701ad_patch102_usa.exe"
else
FICHIER=""
fi
if [ "$FICHIER" == "" ]; then
cd "$HOME"
POL_SetupWindow_question "$LNG_PATCH_NOT_IN_LIST" "$TITLE"
if [ "$APP_ANSWER" == "TRUE" ]; then
POL_SetupWindow_browse
POL_SetupWindow_wait_next_signal "$LNG_PATCH_INSTALL" "$TITLE"
wine $APP_ANSWER
POL_SetupWindow_detect_exit
else
POL_SetupWindow_Close
exit
fi
else
cd "$POL_USER_ROOT/tmp"
POL_SetupWindow_download "$LNG_PATCH_DL" "$TITLE" "http://us4.strategyinformer.com/v2/download/0a5e1a39/anno1701%2F$FICHIER" ""
# Installation du patch v1.02
POL_SetupWindow_wait_next_signal "$LNG_PATCH_INSTALL" "$TITLE"
wine anno1701%2F$FICHIER
POL_SetupWindow_detect_exit
fi

#cleaning temp
if [ -e "$WINEPREFIX/drive_c/windows/temp/" ]; then
rm -rf "$WINEPREFIX/drive_c/windows/temp/*"
chmod -R 777 "$POL_USER_ROOT/tmp/"
rm -rf "$POL_USER_ROOT/tmp/*"
fi

# Fin de l'installation
POL_SetupWindow_message "$LNG_FIN" "$TITLE"
POL_SetupWindow_Close
exit

Edité par GNU_Raziel


Kubuntu 10.10 64bits
GNU_Raziel Jeudi 24 Mars 2011 à 15:54
GNU_Raziel

Merci de mettre a jour ce script afin qu'il soit conformes aux standards PoL.

Notez aussi que, tout les scripts qui ne respecteront pas ses standards seront systèmetiquement refusés.
benji64 Jeudi 24 Mars 2011 à 16:19
benji64

Salut Raziel

je viens de relire les recommandations et je ne vois pas ce qui ne respecte pas le standard... pour le patch, il semble qu'il soit obligatoire pour le faire fonctionner. En ce qui concerne l'information sur la nécessité d'utiliser le nocd, il ne me semble pas sortir de la légalité, sinon propose moi une meilleure facon de le dire stp.

Dis moi ce qui ne respecte pas les standards et je le corrigerai.

Kubuntu 10.10 64bits
GNU_Raziel Jeudi 24 Mars 2011 à 16:47
GNU_Raziel

Vous pouvez vous inspirer de mes scripts de Dragon Age 2 et de son Patch 1.01, les 2 doivent être séparés et il y a toutes les infos nécéssaires quand au protections anti-copie dedans.

Il est interdit d'explicitement donner le nom/url d'un contournement.

Edité par GNU_Raziel

benji64 Jeudi 24 Mars 2011 à 17:03
benji64

ok je séparerais les deux alors

Kubuntu 10.10 64bits
benji64 Vendredi 25 Mars 2011 à 11:51
benji64

Je viens de modifier le post initial avec les nouveau script.

Tenez moi au courant pour les fautes du script et les retours de test, merci.

Kubuntu 10.10 64bits
GNU_Raziel Vendredi 25 Mars 2011 à 15:10
GNU_Raziel

J'ai modifié vos scripts, ils sont maintenant conformes, postez un test dans la section concernée du forum (avec images et indications quant aux potentiels problèmes rencontrées) et si tout se passe bien, ajoutez vos scripts à la liste, je les approuveraient après ultime vérification.
benji64 Dimanche 27 Mars 2011 à 17:10
benji64

Je viens de poster mes tests, par contre je ne vois pas comment ajouter de photo vu que je n'ai pas d'hébergement.

Kubuntu 10.10 64bits
GNU_Raziel Dimanche 27 Mars 2011 à 18:34
GNU_Raziel

Avec imageshack par exemple, où n'importe quel autre site d'hébergement d'images, ils fournissent toujours un lien pour les forums.
GNU_Raziel Lundi 28 Mars 2011 à 12:34
GNU_Raziel

Les 2 scripts sont maintenant ajoutés à la base de donnée et donc disponibles via PoL, merci de ta contribution :)

Edité par GNU_Raziel

benji64 Lundi 28 Mars 2011 à 14:13
benji64

ok avec plaisir

sinon comment on fait pour envoyer l'icone du jeu et éventuellement une image pour la présentation du jeu? a moi que ca ne soit pas possible/indispensable?

Kubuntu 10.10 64bits
GNU_Raziel Lundi 28 Mars 2011 à 17:02
GNU_Raziel

Tu les posts ici même en archivant le tout et en l'envoyant sur megaupload par exemple, j'ajouterais tout cas dans la semaine, voila les infos utiles :
- Icone : 32x32 minimum, format PNG
- Miniature : 200x150, format PNG
- Icone_install : 24x24, format PNG
- left.jpg : 150x356, format JPG
- top.jpg : 32x32 minimun, format JPG

Voila, à toi de jouer.
benji64 Mardi 29 Mars 2011 à 8:06
benji64

euh... c pour quoi les left.jpg et top.jpg?

Kubuntu 10.10 64bits
GNU_Raziel Mardi 29 Mars 2011 à 10:15
GNU_Raziel

left.jpg - bandeau de gauche au lancement de l'installeur PoL.
top.jpg - petite image en haut a droite, ni plus ni moins que le logo du jeu en fait.
Vous êtes ici: Index > Vos créations > Anno 1701