summaryrefslogtreecommitdiff
path: root/bg1
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2009-04-13 12:31:42 +0100
committerNick White <git@njw.me.uk>2009-04-13 12:31:42 +0100
commit1bbff3ce1b261ef9cb6ba217ca0d8fcb54971513 (patch)
treeac5ca6418afec68f5f5c3f2f84601559d41d144b /bg1
downloadgemrb-gameinstallers-1bbff3ce1b261ef9cb6ba217ca0d8fcb54971513.tar.bz2
gemrb-gameinstallers-1bbff3ce1b261ef9cb6ba217ca0d8fcb54971513.zip
Initial import
Diffstat (limited to 'bg1')
-rwxr-xr-xbg1/install-3cd-extra.sh21
-rwxr-xr-xbg1/install-3cd-minimal.sh43
-rwxr-xr-xbg1/install-5cd-extra.sh25
-rwxr-xr-xbg1/install-5cd-minimal.sh36
-rwxr-xr-xbg1/install-patch-baldurdash-fix.sh23
-rwxr-xr-xbg1/install-patch-baldurdash-text.sh27
-rwxr-xr-xbg1/install-patch-intl.sh23
-rwxr-xr-xbg1/install-patch-us.sh22
8 files changed, 220 insertions, 0 deletions
diff --git a/bg1/install-3cd-extra.sh b/bg1/install-3cd-extra.sh
new file mode 100755
index 0000000..a5d1b8e
--- /dev/null
+++ b/bg1/install-3cd-extra.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+# Extra Baldur's Gate content (so CDs aren't needed)
+
+scriptdir="$(dirname $0)"/..
+source "$scriptdir/includes/generic-includes.sh"
+source "$scriptdir/includes/cd-includes.sh"
+
+parseargs "$@"
+
+copylower "$CDMOUNT/cd1/" "$TARGETDIR"
+
+getcd 2 c04758a6af171bf9a35d8e3d4dcd807c CD2/Movies/MovieCD2.bif
+copylower "$CDMOUNT/cd2/" "$TARGETDIR"
+copylower "$CDMOUNT/cd5/" "$TARGETDIR"
+cp $CDMOUNT/CD2/Manual/Baldur.pdf "$TARGETDIR"/manual || die
+
+getcd 3 ba4224f50f890e10561d22f602d6a991 CD3/Movies/MovieCD3.bif
+copylower "$CDMOUNT/cd3/" "$TARGETDIR"
+copylower "$CDMOUNT/cd4/" "$TARGETDIR"
+copylower "$CDMOUNT/cd6/" "$TARGETDIR"
+setperms "$TARGETDIR"
diff --git a/bg1/install-3cd-minimal.sh b/bg1/install-3cd-minimal.sh
new file mode 100755
index 0000000..42d3c0d
--- /dev/null
+++ b/bg1/install-3cd-minimal.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+# Baldur's Gate & Tales of the Sword Coast 3CD version minimal
+
+scriptdir="$(dirname $0)"/..
+source "$scriptdir/includes/generic-includes.sh"
+source "$scriptdir/includes/cd-includes.sh"
+
+parseargs "$@"
+
+checkforbin unshield
+
+getcd 1 1a6828b97a27967e8c4acc25e1ef48d2 data1.cab
+
+mkdir -p "$TARGETDIR" || die
+
+cp $CDMOUNT/dialog.tlk "$TARGETDIR" || die
+
+unshield -L x $CDMOUNT/data1.cab -d "$TARGETDIR" || die
+
+cp -R "$TARGETDIR"/minimumdata/* "$TARGETDIR" || die
+rm -r "$TARGETDIR"/minimumdata
+
+cp -R "$TARGETDIR"/recommended_music/music/* "$TARGETDIR"/music/ || die
+rm -r "$TARGETDIR"/recommended_music
+
+cp -R "$TARGETDIR"/english_sounds/sounds/* "$TARGETDIR"/sounds/ || die
+rm -r "$TARGETDIR"/english_sounds
+
+cp -R "$TARGETDIR"/english/* "$TARGETDIR" || die
+rm -r "$TARGETDIR"/english
+
+mkdir -p "$TARGETDIR"/movies
+mkdir -p "$TARGETDIR"/manual
+
+mkdir -p "$TARGETDIR"/save
+cp -R $CDMOUNT/[Ss]ave/* "$TARGETDIR"/save || die
+
+cp $CDMOUNT/Manual/BGManual.pdf "$TARGETDIR"/manual/ || die
+cp $CDMOUNT/Manual/TotscManual.pdf "$TARGETDIR"/manual/ || die
+
+cp $CDMOUNT/baldur.ico "$TARGETDIR" || die
+
+setperms "$TARGETDIR"
diff --git a/bg1/install-5cd-extra.sh b/bg1/install-5cd-extra.sh
new file mode 100755
index 0000000..445b36c
--- /dev/null
+++ b/bg1/install-5cd-extra.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+# Installs all extra Baldur's Gate content (so CDs aren't needed)
+
+scriptdir="$(dirname $0)"/..
+source "$scriptdir/includes/generic-includes.sh"
+source "$scriptdir/includes/cd-includes.sh"
+
+parseargs "$@"
+
+for CDNUMBER in 1 2 3 4 5; do
+ moviesum=""
+ case $CDNUMBER in
+ 2 ) moviesum="c04758a6af171bf9a35d8e3d4dcd807c" ;;
+ 3 ) moviesum="ba4224f50f890e10561d22f602d6a991" ;;
+ 4 ) moviesum="a066c263e13bf20b84d71c2ca7120fde" ;;
+ 5 ) moviesum="f19415703d3ccad01325b9338380ac7c" ;;
+ esac
+
+ if [ $CDNUMBER -gt 1 ]; then
+ getcd $CDNUMBER $moviesum CD$CDNUMBER/Movies/MovieCD$CDNUMBER.bif
+ fi
+
+ copylower "$CDMOUNT/cd$CDNUMBER/" "$TARGETDIR"
+ setperms "$TARGETDIR"
+done
diff --git a/bg1/install-5cd-minimal.sh b/bg1/install-5cd-minimal.sh
new file mode 100755
index 0000000..3db68d0
--- /dev/null
+++ b/bg1/install-5cd-minimal.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+# Baldur's Gate 5CD International version minimal
+
+scriptdir="$(dirname $0)"/..
+source "$scriptdir/includes/generic-includes.sh"
+source "$scriptdir/includes/cd-includes.sh"
+
+parseargs "$@"
+
+checkforbin unshield
+
+getcd 1 138528155dfeb695bd63f90eacee7dc0 data1.cab
+
+mkdir -p "$TARGETDIR" || die
+
+cp $CDMOUNT/dialog.tlk "$TARGETDIR" || die
+
+unshield -L x $CDMOUNT/data1.cab -d "$TARGETDIR" || die
+
+cp -R "$TARGETDIR"/minimumdata/* "$TARGETDIR" || die
+rm -r "$TARGETDIR"/minimumdata
+
+cp -R "$TARGETDIR"/recommended_music/music/* "$TARGETDIR"/music/ || die
+rm -r "$TARGETDIR"/recommended_music
+
+cp -R "$TARGETDIR"/english_sounds/sounds/* "$TARGETDIR"/sounds/ || die
+rm -r "$TARGETDIR"/english_sounds
+
+cp -R "$TARGETDIR"/english/* "$TARGETDIR" || die
+rm -r "$TARGETDIR"/english
+
+mkdir -p "$TARGETDIR"/movies
+
+cp $CDMOUNT/baldur.ico "$TARGETDIR" || die
+
+setperms "$TARGETDIR"
diff --git a/bg1/install-patch-baldurdash-fix.sh b/bg1/install-patch-baldurdash-fix.sh
new file mode 100755
index 0000000..939d4f6
--- /dev/null
+++ b/bg1/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/bg1/install-patch-baldurdash-text.sh b/bg1/install-patch-baldurdash-text.sh
new file mode 100755
index 0000000..266c4ee
--- /dev/null
+++ b/bg1/install-patch-baldurdash-text.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+# BG1 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/BG1NoTOSCGameTextUpdate10.exe
+
+# unzip complains unnecessarily about skipping non-zip
+# part so don't print errors or die on failure
+unzip -L $TMPDIR/BG1NoTOSCGameTextUpdate10.exe -d $TMPDIR 2>/dev/null
+cp $TMPDIR/dialog.tlk "$TARGETDIR/" || die
+
+cleanuptmp
+setperms "$TARGETDIR"
diff --git a/bg1/install-patch-intl.sh b/bg1/install-patch-intl.sh
new file mode 100755
index 0000000..5126ec7
--- /dev/null
+++ b/bg1/install-patch-intl.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+# BG1 official international patch
+
+scriptdir="$(dirname $0)"/..
+source "$scriptdir/includes/generic-includes.sh"
+source "$scriptdir/includes/patch-includes.sh"
+
+parseargs "$@"
+
+checkforbin unzip unshield wget
+
+setuptmp
+
+getpatch http://downloads.bioware.com/baldursgate1/bgintl114315.exe
+
+unzip $TMPDIR/bgintl114315.exe -d $TMPDIR || die
+unshield -g "$LANGUAGE" -L x $TMPDIR/data1.cab -d $TMPDIR || die
+
+LANGUAGE="$(echo $LANGUAGE|tr A-Z a-z|tr ' ' _)" # alter formatting
+cp -R $TMPDIR/"$LANGUAGE"/* "$TARGETDIR" || die
+
+cleanuptmp
+setperms "$TARGETDIR"
diff --git a/bg1/install-patch-us.sh b/bg1/install-patch-us.sh
new file mode 100755
index 0000000..3e0d2cb
--- /dev/null
+++ b/bg1/install-patch-us.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+# BG1 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/bg114315.exe
+
+cabextract -L $TMPDIR/bg114315.exe -d $TMPDIR || die
+unshield -L x $TMPDIR/data1.cab -d $TMPDIR || die
+
+cp -R $TMPDIR/english/* "$TARGETDIR" || die
+
+cleanuptmp
+setperms "$TARGETDIR"