The forum

Temple of Elemental Evil (LOCAL, CD, STEAM)

Author Replies
Dadu042 Saturday 6 July 2019 at 18:29
Dadu042

I could not test my game (2 CD's) working.  Perhaps because it's the french version and the french (or Euro) patch file was lost by the web. More details in the script.

However i post the script here, feedbacks welcome.

 

See also: GOG script (2012) by Petch.

 

#!/bin/bash
#!/usr/bin/env playonlinux-bash
# Date : (2019-07-06)
# Last revision : see changelog
# Wine version used : see below
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
# Playonlinux v4.3.4
#
# Tested version : French, v1.1 I think (latest files are october 2003, while 1.0 was released in september 2003).
# - Patch #1 installation (TOEE_PATCH1_ENU.EXE): "Impossible to find ToEE Any English on your computer".
# - Patch #2 installation (TOEE_USA_ANY-PATCH2.EXE): "Invalid patch file".
#
# Game based on: DirectX 8, Bink, msvcr70.dll, Dotnet.
#
#
# CHANGELOG
# [Dadu042] (2019-07-06)
#   Initial writting.
#
#
# KNOWN ISSUES
# - Game installed from the retail CD-ROMs, the DRM does not recognize the 'Play Disc'(CD #2. Game does not launch). Wine 4.0.1. Fix: NoCD.

# to do: add Gog.com ?

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
     
TITLE="The Temple of Elemental Evil"
PREFIX="Temple-of-Elemental-Evil"
WORKING_WINE_VERSION="4.0.1"
AUTHOR="Dadu042"
EDITOR=""
GAME_URL=""

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"

POL_Call POL_Function_NoCDWarning

POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
# POL_Wine_PrefixCreate
POL_System_TmpCreate "$TITLE"

Set_OS "winxp"

# Useless
# POL_Call POL_Install_mfc42
# POL_Call POL_Install_msxml4

# Useless ?
# POL_Call POL_Install_d3dx9_43
# POL_Call POL_Install_d3compiler_43

# This game was not released on CD/DVD.
POL_SetupWindow_InstallMethod "LOCAL,STEAM,CD"
 
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
        cd "$POL_System_TmpDir"             
elif [ "$INSTALL_METHOD" == "STEAM" ];then
        POL_Call POL_Install_steam
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine "steam.exe" steam://install/913528312
        POL_Wine_WaitBefore "$TITLE"
else
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "ToEE.ico"
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "setup.exe"
        cd "$POL_System_TmpDir"
fi
 
 
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/913528312"
else
        POL_Shortcut "ToEE.exe" "$TITLE" "" "Game;StrategyGame;"
        POL_Shortcut_Document "$TITLE" "*.pdf"
fi

################
# Patch update #
################
 
POL_SetupWindow_menu "$(eval_gettext 'Install a official patch-update ? (to download by yourself).')" "$TITLE" "$(eval_gettext 'Yes')~$(eval_gettext 'No')" "~"
 
if [ "$APP_ANSWER" == "$(eval_gettext 'Yes')" ]; then
        POL_SetupWindow_browse "$(eval_gettext 'Please select the .EXE file to run')" "$TITLE"
        PATCH_EXE="$APP_ANSWER"
        POL_Wine start /unix "$PATCH_EXE"
        POL_Wine_WaitExit "$PATCH_EXE"
fi

#######################################
# Create a 'virtual desktop' (window) #
#######################################

POL_SetupWindow_menu_list "$(eval_gettext "Choose the game resolution")" "$TITLE" "800x600-1152x864-1024x768-1280x720-1280x800-1280x900-1280x1024-1360x768-1440x900-1400x1050-1600x900-1600x1024-1680x1050-1920x1080" "-" "800x600"
    
resolution="$APP_ANSWER"
WIDTH="$(echo $resolution | cut -d"x" -f1)"
HEIGHT="$(echo $resolution | cut -d"x" -f2)"
 
Set_Desktop "On" "$WIDTH" "$HEIGHT"
 
Set_WineWindowTitle "$TITLE"

 
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

 

Edited by Dadu042

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