Forums

Populous 3: The Beginning (GoG)

Auteur Réponses
Xodetaetl Mardi 21 Mai 2013 à 11:58
XodetaetlAnonymous

Un script pour le divin Populous 3. Pas grand chose à dire si ce n'est le choix de la version de Wine, le jeu tourne avec la 1.4.1 mais je compte faire un script pour c'est au cas où quelqu'un veuille installer le matchmaker multi qui lui ne passe pas avec la 1.4.1.

Script pour le jeu:
[code language=playonlinux]#!/bin/bash
# Date : (2013-05-21 20-47)
# Last revision : (2013-10-22 02-48)
# Wine version used : 1.5.30
# Distribution used to test : Xubuntu 13.04
# Author : Pascal Reinhard dev@ovocean.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

GOGID="populous_the_beginning"
PREFIX="Populous3TheBeginning_gog"
WORKING_WINE_VERSION="1.5.30"

TITLE="GOG.com - Populous 3: The Beginning"
SHORTCUT_NAME="Populous 3: The Beginning"
SHORTCUT_NAME_SOFTWARE="Populous 3: The Beginning (software rendering)"
SHORTCUT2_NAME="Populous 3: Undiscovered Worlds"
SHORTCUT2_NAME_SOFTWARE="Populous 3: Undiscovered Worlds (software rendering)"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 1704
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Bullfrog Productions / Electronic Arts" "http://www.gog.com/gamecard/$GOGID" "Xodetaetl" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" "7e4545d04a3d00193507aa82dea14e50"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_GoG_install

# The Beginning shortcut
POL_Shortcut "D3DPopTB.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;StrategyGame;"
POL_Shortcut "popTB.exe" "$SHORTCUT_NAME_SOFTWARE" "$SHORTCUT_NAME.png" "" "Game;StrategyGame;"

# Undiscovered Worlds shortcut
POL_Shortcut "D3DPopTBUW.exe" "$SHORTCUT2_NAME" "$SHORTCUT_NAME.png" "" "Game;StrategyGame;"
POL_Shortcut "popTB.exe" "$SHORTCUT2_NAME_SOFTWARE" "$SHORTCUT_NAME.png" "" "Game;StrategyGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Populous 3/Manual.pdf"

POL_Shortcut_Document "$SHORTCUT_NAME_SOFTWARE" "$GOGROOT/Populous 3/Manual.pdf"
POL_Shortcut_Document "$SHORTCUT2_NAME" "$GOGROOT/Populous 3/Manual.pdf"
POL_Shortcut_Document "$SHORTCUT2_NAME_SOFTWARE" "$GOGROOT/Populous 3/Manual.pdf"

POL_SetupWindow_Close

exit 0
[/code]

Script pour le patch haute résolution :
[code language=playonlinux]#!/bin/bash
# Date : (2013-05-21 20-47)
# Last revision : (2013-07-23 22-37)
# Wine version used : 1.5.30
# Distribution used to test : Xubuntu 13.04
# Author : Pascal Reinhard dev@ovocean.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

# CHANGELOG
# [SuperPlumus] (2013-07-23 22-37)
#   Update gettext messages

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE_REQUIRED="GOG.com - Populous 3: The Beginning"
PREFIX="Populous3TheBeginning_gog"
WORKING_WINE_VERSION="1.5.30"

TITLE="GOG.com - Populous 3: The Beginning - High-resolution patch"
SHORTCUT_NAME="Populous 3: The Beginning - High-res patch"

PATCHFILE="popres.exe"
DOWNLOAD_URL="http://popre.net/files/$PATCHFILE"
DOWNLOAD_MD5="9fd53c2c5fe9f9b7e6ef55e169b93b88"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 1706
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "ALACN" "http://www.popre.net/" "Xodetaetl" "$PREFIX"

# Verify base game existence
if [ "$(POL_Wine_PrefixExists $PREFIX)" != "True" ]; then
    POL_SetupWindow_message "$(eval_gettext 'Please install $TITLE_REQUIRED first')" "$TITLE"
    POL_SetupWindow_Close
    exit 1
fi

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_AutoSetVersionEnv

GAMEPATH="$WINEPREFIX/drive_c/GOG Games/Populous - The Beginning"

# Download patch
cd "$POL_USER_ROOT/tmp"
POL_Download "$DOWNLOAD_URL" "$DOWNLOAD_MD5"
cp "$POL_USER_ROOT/tmp/$PATCHFILE" "$GAMEPATH/$PATCHFILE"

cat <<_EOF_ > "$GAMEPATH/popres_readme.txt"
Notice:
-----------------------------------------
Populous 3 only supports resolutions up to:
1440x900 (for 16:10) and 1280x1024 (for 4:3).
It doesn't seem to support 16:10 resolutions.
For color depth, enter "16".
_EOF_

POL_SetupWindow_message "This patch doesn't work with the 'software rendering' version of Populous 3. Be also aware that it let's you enter any resolution, but the game actually only supports resolutions up to: 1440x900 (for 16:10) and 1280x1024 (for 4:3). It doesn't seem to support 16:10 resolutions. For color depth, enter '16'." "Important note"

POL_Shortcut "$PATCHFILE" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;StrategyGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GAMEPATH/popres_readme.txt"

POL_SetupWindow_Close

exit 0
[/code]

Edité par Xodetaetl

petch Mardi 21 Mai 2013 à 12:59
petch

Bonjour,
Pour info Wine 1.5.30-1.5.30-1 a été ou va être supprimé, le correctif ayant été incorporé dans la compilation de Wine 1.5.30

Je suggère d'attacher la documentation aux deux raccourcis, au cas où l'utilisateur déciderait de ne garder que le raccourci qui marche le mieux pour lui.
Sinon rien d'autre à signaler...
Xodetaetl Mardi 21 Mai 2013 à 14:29
XodetaetlAnonymous

Ça marche !

Je suggère d'attacher la documentation aux deux raccourcis, au cas où l'utilisateur déciderait de ne garder que le raccourci qui marche le mieux pour lui.
Sinon rien d'autre à signaler...

Citer
Bien vu !

Edité par Xodetaetl

Xodetaetl Mardi 21 Mai 2013 à 18:45
XodetaetlAnonymous

J'ai ajouté le script pour le patch HD

PS: Apparemment Wine 1.5.30 n'est pas encore ajouté ? Le script tente de l'installer en boucle. Et quand j'essaie de l'ajouter via la fenêtre de config de PoL, ça dit 1.5.30 mais ça télécharge la 1.5.30-1.5.30-1

Edité par Xodetaetl

petch Mardi 21 Mai 2013 à 19:18
petch

C'est curieux, je viens d'installer Wine 1.5.30 sans souci... ? A voir avec APLU

Sinon le script de patch aura sûrement son propre SetID...
Oui je suis obligé de pinailler :p
Xodetaetl Mardi 21 Mai 2013 à 19:34
XodetaetlAnonymous

Sinon le script de patch aura sûrement son propre SetID...
Oui je suis obligé de pinailler :p

Quote from petch
Et tu as raison. Faut que je prenne le coup de bien relire mes scripts ligne par ligne avant de poster. :)
petch Vendredi 24 Mai 2013 à 20:02
petch

Il manque quelque chose de plus important : la définition de $GOGID
Xodetaetl Lundi 24 Mars 2014 à 13:34
XodetaetlAnonymous

J'ai mis à jour le script du jeu et du patch HD pour l'update de GOG ajoutant l'extension du jeu et mettant à jour l'installeur à la v2. Testés en local, prêt à publier.
petch Lundi 24 Mars 2014 à 18:00
petch