Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 94683d5d54
Fetching contributors…

Cannot retrieve contributors at this time

81 lines (59 sloc) 3.042 kB
#!/bin/bash
# Date : (2011-11-28 22-00)
# Last revision : (2012-04-21 19-41)
# Wine version used : 1.3.27-rawinput2
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite pe-pol@concept-micro.com
# Script licence : GPL v.2
# Program licence : Freeware
# Depend : 7z
# Tested with install archive:
# OUTCASTP_V3.7z 89313352 "6b544b9c1c88d511744a268467bcc41f"
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
# Must match outcast-gog script values
TITLE_REQUIRED="Outcast (GoG release)"
PREFIX="Outcast_gog"
SHORTCUT_NAME="Outcast"
TITLE="Zenger s Outcast HI-RES patch v3"
URL="http://www.gog.com/en/forum/outcast/experimental_outcast_hi_res_patch_up_to_1280x768_cyana_lighthouse_problem_fixed/"
INSTALLBIN="OUTCASTP_V3.7z"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Zenger" "GOG.com forums" "Pierre Etchemaite" "$PREFIX"
if [ "$(POL_Wine_PrefixExists $PREFIX)" != "True" ]; then
POL_Debug_Fatal "$(eval_gettext 'Please install $TITLE_REQUIRED first')"
fi
POL_Wine_SelectPrefix "$PREFIX"
POL_LoadVar_PROGRAMFILES
if [ -n "$POL_SELECTED_FILE" ]; then
ARCHIVE="$POL_SELECTED_FILE"
else
POL_SetupWindow_question "$(eval_gettext 'Do you want to read original thread in GOG.com forums?')" "$TITLE"
[ "$APP_ANSWER" = "TRUE" ] && POL_Browser "$URL"
cd "$POL_USER_ROOT/tmp"
POL_Download "http://files.playonlinux.com/$INSTALLBIN" "6b544b9c1c88d511744a268467bcc41f"
ARCHIVE="$POL_USER_ROOT/tmp/$INSTALLBIN"
fi
POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Outcast/" || POL_Debug_Fatal "$(eval_gettext 'Error while uncompressing the archive')"
POL_System_ExtractSingleFile "$ARCHIVE" "APPLYMEGAPATCH.exe" "APPLYMEGAPATCH.exe"
POL_System_ExtractSingleFile "$ARCHIVE" "zdata.zpl" "zdata.zpl"
POL_System_ExtractSingleFile "$ARCHIVE" "zdata.zpd" "zdata.zpd"
POL_System_ExtractSingleFile "$ARCHIVE" "zendat.dat" "zendat.dat"
POL_System_ExtractSingleFile "$ARCHIVE" "README_Z.TXT" "README_Z.TXT"
POL_SetupWindow_message "$(eval_gettext 'The patch can now be activated and configured from\nPlayOnLinux s setup wizard for Outcast.\nAnd dont forget to leave a message to Zenger on GoG forums!')" "$TITLE"
POL_SetupWindow_Close
cat <<_EOF_ > $POL_USER_ROOT/configurations/configurators/"$SHORTCUT_NAME".zenger-hires
cd "\$WINEPREFIX/drive_c/\$PROGRAMFILES/GOG.com/Outcast/" || return
[ -e APPLYMEGAPATCH.exe ] || return
POL_SetupWindow_question "$(eval_gettext 'Run \$TITLE?')" "\$TITLE"
if [ "\$APP_ANSWER" = "TRUE" ]; then
POL_SetupWindow_wait "\$TITLE" "\$TITLE"
POL_Wine APPLYMEGAPATCH.exe
SCREEN_WIDTH=\$(grep '^ScreenWidth=' OUTCAST.ini |cut -d= -f2)
SCREEN_HEIGHT=\$(grep '^ScreenHeight=' OUTCAST.ini |cut -d= -f2)
Set_Desktop "On" "\$SCREEN_WIDTH" "\$SCREEN_HEIGHT"
POL_SetupWindow_message "$(eval_gettext 'Check that the resolution has been changed\n(eventually set to \"HI-RES\") in the loader.')" "\$TITLE"
fi
_EOF_
Jump to Line
Something went wrong with that request. Please try again.