From 1bbff3ce1b261ef9cb6ba217ca0d8fcb54971513 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 13 Apr 2009 12:31:42 +0100 Subject: Initial import --- totsc/auto-totsc-installer.sh | 43 ++++++++++++++++++++++++++++++++++ totsc/install-1cd-uk.sh | 36 ++++++++++++++++++++++++++++ totsc/install-patch-baldurdash-fix.sh | 23 ++++++++++++++++++ totsc/install-patch-baldurdash-text.sh | 27 +++++++++++++++++++++ totsc/install-patch-intl.sh | 22 +++++++++++++++++ totsc/install-patch-uk.sh | 22 +++++++++++++++++ totsc/install-patch-us.sh | 22 +++++++++++++++++ 7 files changed, 195 insertions(+) create mode 100755 totsc/auto-totsc-installer.sh create mode 100755 totsc/install-1cd-uk.sh create mode 100755 totsc/install-patch-baldurdash-fix.sh create mode 100755 totsc/install-patch-baldurdash-text.sh create mode 100755 totsc/install-patch-intl.sh create mode 100755 totsc/install-patch-uk.sh create mode 100755 totsc/install-patch-us.sh (limited to 'totsc') diff --git a/totsc/auto-totsc-installer.sh b/totsc/auto-totsc-installer.sh new file mode 100755 index 0000000..f82114a --- /dev/null +++ b/totsc/auto-totsc-installer.sh @@ -0,0 +1,43 @@ +#!/bin/sh + +source ../includes/generic-includes.sh +source ../cd-includes.sh +source ../patch-includes.sh +source ../autoinstall-includes.sh + +parseargs "$@" + +echo "Checking CD version" +CDMD5=$(md5sum $CDMOUNT/data1.cab|awk '{print $1}') + +case "$CDMD5" in + "e27d259ddc0171ff945dbba136e60309" ) + FULLGAMENAME="Baldurs Gate Tales of the Sword Coast: 1CD UK version" + INSTALLSCRIPT=./install-totsc-1cd-uk.sh + OFFICIALPATCH=./install-totsc-patch-uk.sh + ;; + * ) + echo "Unrecognised CD - please select Baldurs Gate version from menu" + # TODO: Add menu to show and select all known BG1 versions + exit 1 + ;; +esac + +echo "$FULLGAMENAME detected, installing" +$INSTALLSCRIPT -i "$TARGETDIR" -c "$CDMOUNT" 1>/dev/null || diequietly +if query "Do you want to install the official patch?" y; then + $OFFICIALPATCH -i "$TARGETDIR" -p "$PATCHDIR" 1>/dev/null || diequietly +fi +if query "Do you want to install the baldurdash fixes?" y; then + ./install-totsc-patch-baldurdash-fix.sh -i "$TARGETDIR" -p "$PATCHDIR" 1>/dev/null || diequietly + if [ "$LANGUAGE" = "English" ]; then + ./install-totsc-patch-baldurdash-text.sh -i "$TARGETDIR" -p "$PATCHDIR" 1>/dev/null || diequietly + fi +fi +if query "Do you want to remove unneeded windows files?" n; then + rm -f "$TARGETDIR"/*.exe + rm -f "$TARGETDIR"/*.url + rm -f "$TARGETDIR"/luaauto.cfg +fi +echo +echo "$FULLGAMENAME installed successfully" diff --git a/totsc/install-1cd-uk.sh b/totsc/install-1cd-uk.sh new file mode 100755 index 0000000..d1d2ccb --- /dev/null +++ b/totsc/install-1cd-uk.sh @@ -0,0 +1,36 @@ +#!/bin/sh +# Tales of the Sword Coast 1CD version + +scriptdir="$(dirname $0)"/.. +source "$scriptdir/includes/generic-includes.sh" +source "$scriptdir/includes/cd-includes.sh" + +parseargs "$@" + +checkforbin unshield + +getcd 1 e27d259ddc0171ff945dbba136e60309 data1.cab + +mkdir -p "$TARGETDIR" || die + +unshield -L x $CDMOUNT/data1.cab -d "$TARGETDIR" || die + +cp $CDMOUNT/dialog.tlk "$TARGETDIR" || die + +mkdir -p "$TARGETDIR"/save || die +cp -R $CDMOUNT/[Ss]ave/* "$TARGETDIR"/save || die + +cp -R "$TARGETDIR"/minimumdata/* "$TARGETDIR" || die +rm -r "$TARGETDIR"/minimumdata + +cp -R "$TARGETDIR"/english/* "$TARGETDIR" || die +rm -r "$TARGETDIR"/english + +cp -R "$CDMOUNT"/override/* "$TARGETDIR"/override/ || die + +mkdir -p "$TARGETDIR"/movies +copylower "$CDMOUNT/cd6/" "$TARGETDIR" + +mkdir -p "$TARGETDIR"/mpsave + +setperms "$TARGETDIR" diff --git a/totsc/install-patch-baldurdash-fix.sh b/totsc/install-patch-baldurdash-fix.sh new file mode 100755 index 0000000..939d4f6 --- /dev/null +++ b/totsc/install-patch-baldurdash-fix.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# BG1/TOTSC Baldurdash fix pack + +scriptdir="$(dirname $0)"/.. +source "$scriptdir/includes/generic-includes.sh" +source "$scriptdir/includes/patch-includes.sh" + +parseargs "$@" + +checkforbin unzip wget + +setuptmp + +getpatch http://www.baldurdash.org/LargeDownloads/BG1FixPack11.exe + +# unzip complains unnecessarily about skipping non-zip +# part so don't print errors or die on failure +unzip -L $TMPDIR/BG1FixPack11.exe -d $TMPDIR 2>/dev/null +rm $TMPDIR/BG1FixPack11.exe $TMPDIR/bg1fixpack11readme.txt +cp $TMPDIR/* "$TARGETDIR/override/" || die + +cleanuptmp +setperms "$TARGETDIR" diff --git a/totsc/install-patch-baldurdash-text.sh b/totsc/install-patch-baldurdash-text.sh new file mode 100755 index 0000000..35fba39 --- /dev/null +++ b/totsc/install-patch-baldurdash-text.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# BG1 TOTSC Baldurdash text pack + +scriptdir="$(dirname $0)"/.. +source "$scriptdir/includes/generic-includes.sh" +source "$scriptdir/includes/patch-includes.sh" + +parseargs "$@" + +if [ "$LANGUAGE" != "English" ]; then + echo "The Baldurdash text pack is only available in English" + die +fi + +checkforbin unzip wget + +setuptmp + +getpatch http://www.baldurdash.org/LargeDownloads/BG1TOSCGameTextUpdate11.exe + +# unzip complains unnecessarily about skipping non-zip +# part so don't print errors or die on failure +unzip -L $TMPDIR/BG1TOSCGameTextUpdate11.exe -d $TMPDIR 2>/dev/null +cp $TMPDIR/dialog.tlk "$TARGETDIR/" || die + +cleanuptmp +setperms "$TARGETDIR" diff --git a/totsc/install-patch-intl.sh b/totsc/install-patch-intl.sh new file mode 100755 index 0000000..4581c9d --- /dev/null +++ b/totsc/install-patch-intl.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# BG1 TOTSC official International patch + +scriptdir="$(dirname $0)"/.. +source "$scriptdir/includes/generic-includes.sh" +source "$scriptdir/includes/patch-includes.sh" + +parseargs "$@" + +checkforbin cabextract unshield wget + +setuptmp + +getpatch http://downloads.bioware.com/baldursgate1/BGTalesIntl5512.exe + +cabextract -L $TMPDIR/BGTalesIntl5512.exe -d $TMPDIR || die +unshield -L x $TMPDIR/data1.cab -d $TMPDIR || die + +cp -R $TMPDIR/minimumdata/* "$TARGETDIR" || die + +cleanuptmp +setperms "$TARGETDIR" diff --git a/totsc/install-patch-uk.sh b/totsc/install-patch-uk.sh new file mode 100755 index 0000000..b7cc2f2 --- /dev/null +++ b/totsc/install-patch-uk.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# BG1 TOTSC official UK patch + +scriptdir="$(dirname $0)"/.. +source "$scriptdir/includes/generic-includes.sh" +source "$scriptdir/includes/patch-includes.sh" + +parseargs "$@" + +checkforbin cabextract unshield wget + +setuptmp + +getpatch http://downloads.bioware.com/baldursgate1/BGTalesUK5512.exe + +cabextract -L $TMPDIR/BGTalesUK5512.exe -d $TMPDIR || die +unshield -L x $TMPDIR/data1.cab -d $TMPDIR || die + +cp -R $TMPDIR/minimumdata/* "$TARGETDIR" || die + +cleanuptmp +setperms "$TARGETDIR" diff --git a/totsc/install-patch-us.sh b/totsc/install-patch-us.sh new file mode 100755 index 0000000..1c400d6 --- /dev/null +++ b/totsc/install-patch-us.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# BG1 TOTSC official US/Canada patch + +scriptdir="$(dirname $0)"/.. +source "$scriptdir/includes/generic-includes.sh" +source "$scriptdir/includes/patch-includes.sh" + +parseargs "$@" + +checkforbin cabextract unshield wget + +setuptmp + +getpatch http://downloads.bioware.com/baldursgate1/BGTalesUS5512.exe + +cabextract -L $TMPDIR/BGTalesUS5512.exe -d $TMPDIR || die +unshield -L x $TMPDIR/data1.cab -d $TMPDIR || die + +cp -R $TMPDIR/minimumdata/* "$TARGETDIR" || die + +cleanuptmp +setperms "$TARGETDIR" -- cgit v1.2.3