El Foro

Temple of Elemental Evil (GoG)

Autor Respuestas
petch Wednesday 18 January 2012 at 1:22
petch

Bonjour à tous,
J'ai écris deux scripts, un pour installer The Temple of Elemental Evil, et un autre pour lui ajouter le Circle of Eight Modpack 7 (NC ou non).
J'ai eu un crash aléatoire, donc je considère l'ensemble comme "alpha". D'un autre côté je ne suis pas totalement sûr de la stabilité de ce jeu, même patché. Tout retour d'expérience est bienvenu !
Bon jeu !

https://raw.github.com/petchema/playonlinux/master/templeofelementalevil-gog
#!/bin/bash
# Date : (2012-01-15 23-29)
# Last revision : (2012-01-16 20-20)
# Wine version used : 1.3.37
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite petchema@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

# Tested with install archives:
# setup_temple_of_elemental_evil.exe 1223704982 "a2f9ee737fd040028585bc24c270e86a"

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

PREFIX="TempleElementalEvil_gog"
WORKING_WINE_VERSION="1.3.37"

TITLE="$(eval_gettext 'The Temple of Elemental Evil (GoG release)')"
SHORTCUT_NAME="Temple of Elemental Evil"
SHORTCUT_DOC="$SHORTCUT_NAME - $(eval_gettext 'User manual')"
SHORTCUT_README="$SHORTCUT_NAME - $(eval_gettext 'Readme')"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Troika Games / Atari" "http://www.gog.com/en/gamecard/the_temple_of_elemental_evil" "Pierre Etchemaite" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

cd $HOME
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "setup_temple_of_elemental_evil.exe"
ARCHIVE="$APP_ANSWER"

POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"

POL_Call POL_Function_SetNativeExtension "pdf"
POL_Call POL_Function_SetNativeExtension "txt"

POL_Wine start /unix "$ARCHIVE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')"

POL_Wine_WaitExit "$TITLE"


# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "16"

# According to AppDB it doesn't work without virtual desktop
# I have multiscreen so I can't test without it to confirm it's necessary
Set_Desktop "On" "800" "600"

# Doesn't hurt ;)
POL_Wine_reboot

cp -n "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Temple of Elemental Evil/ToEE.ico" "$REPERTOIRE/icones/32/$SHORTCUT_NAME"
POL_Shortcut "ToEE.exe" "$SHORTCUT_NAME"
POL_Shortcut "start.exe" "$SHORTCUT_DOC" "" "'C:/$PROGRAMFILES/GOG.com/Temple of Elemental Evil/Manual.pdf'"
POL_Shortcut "start.exe" "$SHORTCUT_README" "" "'C:/$PROGRAMFILES/GOG.com/Temple of Elemental Evil/Readme.txt'"

# Last words
POL_SetupWindow_message "$(eval_gettext 'It is highly recommended to now install the Circle of Eight Modpack\\nto fix many issues with this game, and optionally add new content\\n(for "NC" modpacks).\\nUse the dedicated PlayOnLinux script in patches section.')" "$TITLE"

POL_SetupWindow_Close

exit


The patch installer:
https://raw.github.com/petchema/playonlinux/master/templeofelementalevil-gog-co8-modpack-7
#!/bin/bash
# Date : (2012-01-16 20-04)
# Last revision : (2012-01-17 00-04)
# Wine version used : 1.3.37
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite petchema@concept-micro.com
# Script licence : GPL v.2
# Program licence : Freeware
# Depend :

# Tested with install archives:
# 2011_12_19_Circle_of_Eight_Modpack_7.0.0_Setup.exe 144230937 "f5794aaf9e6be982757f4e4f3ad66afe"
# and
# Circle_of_Eight_Modpack_7.0.0_NC_Setup.exe 295527044 "d8046e6174c4d6eb9a4c5e958b691963"

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

# Must match templeofelementalevil-gog script values
PREFIX="TempleElementalEvil_gog"
WORKING_WINE_VERSION="1.3.37"

DOWNLOAD_URL="http://www.moddb.com/mods/circle-of-eight-modpack/news/circle-of-eight-modpacks-700-and-700-nc-released"

TITLE="$(eval_gettext 'Circle of Eight Modpack 7')"
SHORTCUT_NAME="Temple of Elemental Evil - $(eval_gettext 'Circle of Eight Modpack 7')"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Circle of Eight" "http://www.co8.org/" "Pierre Etchemaite" "$PREFIX"

if [ "$(POL_Wine_PrefixExists $PREFIX)" != "True" ]; then
    POL_Debug_Fatal "$(eval_gettext 'You must install Temple of Elemental Evil (GoG release) first!')"
fi

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_AutoSetVersionEnv
POL_LoadVar_PROGRAMFILES

POL_SetupWindow_question "$(eval_gettext 'You can download the archive file from:')\\n$DOWNLOAD_URL\\n$(eval_gettext 'Go there now?')" "$TITLE"
if [ "$APP_ANSWER" = "TRUE" ]; then
    POL_Browser "$DOWNLOAD_URL"
fi

cd $HOME
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "Circle_of_Eight_Modpack_7.0.0_NC_Setup.exe"
ARCHIVE="$APP_ANSWER"

POL_Call POL_Install_mono28

POL_SetupWindow_message "$(eval_gettext 'Now you must install the modpack in directory:')\\nC:\\\\$PROGRAMFILES\\\\GOG.com\\\\Temple of Elemental Evil\\\\" "$TITLE"

POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"

POL_Wine start /unix "$ARCHIVE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')"

POL_Wine_WaitExit "$TITLE"

convert "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Temple of Elemental Evil/Circle of Eight Modpack "*".jpg" -geometry 32x32 "$REPERTOIRE/icones/32/$SHORTCUT_NAME"
POL_Shortcut "TFE-X.exe" "$SHORTCUT_NAME"

POL_SetupWindow_Close

exit