The forum

Temple of Elemental Evil

Le Temple du Mal Elementaire

Author Replies
dolanor Thursday 23 December 2010 at 3:01
dolanorAnonymous

Hello,

this is my first attempt of a POL setup. It is a quick'n'dirty script, but it worked out for me.
I hope it will for you too ;)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
 
[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
 
POL_SetupWindow_Init
 
#presentation
POL_SetupWindow_presentation "Temple of Elemental Evil" "Dolanor" "http://launchpad.net/~dolanor" "Dolanor" "toee"
#creation du prefixe
export TOEEPREFIX="$HOME/.PlayOnLinux/wineprefix/toee/"
select_prefix "$TOEEPREFIX"
 
POL_SetupWindow_prefixcreate
POL_SetupWindow_message "Please Insert CD1" "Insert CD1"
POL_SetupWindow_cdrom
echo "CDROM=\\"$CDROM\\""
POL_SetupWindow_check_cdrom "TOEE.DAT"
POL_SetupWindow_wait_next_signal "Please wait while the setup program copies CD1 data" "Waiting..."
echo "Copying the files of CD1"
export TMP_COPY_CD1_DIR="$HOME/.PlayOnLinux/tmp/toee/CD1/"
mkdir -p $TMP_COPY_CD1_DIR
OLDIFS="$IFS"
IFS="
"
for i in $(ls "$CDROM/")
do
    echo "Copying "$i" ..."
    cp -fr "$CDROM/$i" "$TMP_COPY_CD1_DIR"
done
IFS="$OLDIFS"
POL_SetupWindow_detect_exit
 
POL_SetupWindow_message "Please Insert CD2" "Insert CD2"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "data3.cab"
echo "CDROM=\\"$CDROM\\""
 
POL_SetupWindow_wait_next_signal "Please wait while the setup program copies CD2 data" "Waiting..."
echo "Copying the files of CD2"
export TMP_COPY_CD2_DIR="$HOME/.PlayOnLinux/tmp/toee/CD2/"
mkdir -p $TMP_COPY_CD2_DIR
IFS="
"
 
ls "$CDROM/"
for i in $(ls "$CDROM/")
do
    echo "Copying "$i" ..."
    cp -fr "$CDROM/$i" "$TMP_COPY_CD2_DIR"
done
IFS="$OLDIFS"
POL_SetupWindow_detect_exit
 
 
#POL_SetupWindow_cdrom
POL_SetupWindow_wait_next_signal "Please wait while the game installs. INSTALL IN THE DEFAULT DIRECTORY" "Waiting..."
wine "$TMP_COPY_CD1_DIR/setup.exe"
echo "Switching audio to OSS"
Set_SoundDriver oss
cd "$TOEEPREFIX/drive_c/Program Files/Atari/Temple of Elemental Evil/"
echo "Moving movies that cannot play to avoid bug at launching game"
mv "data/movies" "data/buggymovies"
 
POL_SetupWindow_detect_exit
 
 
 
 
 
echo "Suppressing temp files"
chmod -R +w $(dirname $TMP_COPY_CD1_DIR)
rm -rf $(dirname $TMP_COPY_CD1_DIR)
POL_SetupWindow_Close
exit 0

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 dmca@playonlinux.com