It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
/!\: This thread is not kept up-to-date anymore, please go to the following one to get the latest links and instructions, or for any kind of feedback on the scripts:
[./play.it] Install The Temple of Elemental Evil on Linux

-----

Hello fellow Debian users, Ubuntu lovers and Mint freaks!

Here you’ll find a script allowing you to turn your .exe installer of ToEE into a .deb package, allowing to install it through DPKG and remove it through any APT front-end (apt-get, aptitude, synaptic, etc.).

First thing first, here you can download the script:
GOG release 2.0.0.13: http://www.dotslashplay.it/scripts/play-the-temple-of-elemental-evil_gog-2.0.0.13.sh

(updated on 2015-07-29)

I tried to make it as easy to use as possible:

1. Download the script, then put in a same directory the script and the GOG .exe installer (setup_temple_of_elemental_evil_2.0.0.13.exe);

2. Check the script dependencies. To run, this script needs the following packages to be installed on your system:
innoextract, fakeroot, icoutils

3. Open a terminal in the directory containing the script, then run it via the following command:

sh ./play-the-temple-of-elemental-evil_gog-2.0.0.13.sh
That’s it! The script will take a couple minutes to work its magic, and end by giving you the commands to launch as root to install the freshly built .deb package.

-----

advanced usage

-----

Any return, be it a bug report, a suggestion, a request, a demand for clarification, an insult or a simple "thank you" is welcome in this thread. Requests for similar scripts for other GOG games should go via the chat or in the dedicated thread.

I hope you’ll enjoy these scripts as much as I enjoy writing and tweaking them ;)

-----

Here you go for more supported games!
Post edited August 18, 2018 by vv221
If you renamed your GOG installer, the script will not find it automatically. You have to give it the path to the archive as an argument in order for it to work. This can allow you to run the script without the need to copy the installer around.
Here is an example:
sh ./play-the-temple-of-elemental-evil_gog-2.0.0.13.sh ~/Downloads/setup_temple_of_elemental_evil_2.0.0.13.exe
 
You can set different options while running these scripts to define some of its behaviours. Here comes the list of these options, with the default option inbold characters.

CHECKSUM=md5,none
By default, the script will check the installer integrity through md5sum. If you want to bypass this check for any reason, set this option to 'none' while launching the script:
CHECKSUM=none sh ./play-the-temple-of-elemental-evil_gog-2.0.0.13.sh
 
COMPRESSION=none,gzip,xz
By default, the final .deb package is built without compression to speed up the process. You can use gzip or xz compression by setting this option to the adequate value.
Example to build a xz-compressed .deb package:
COMPRESSION=xz sh ./play-the-temple-of-elemental-evil_gog-2.0.0.13.sh
 
PREFIX=/usr/local,any absolute path
By default, the .deb package will install the game data under '/usr/local'. If you want to install it under another path, you can by setting this option to the relevant path. Only an absolute path can be defined this way.
Example to install the game under '/opt/toee':
PREFIX=/opt/toee sh ./play-the-temple-of-elemental-evil_gog-2.0.0.13.sh
 
Of course you can use a combination of these options.
The following command will build a package from the installer found in ~/Downloads, without checking its integrity before processing it, compressed through DPKG built-in xz, that will install the game in '/opt/toee':
CHECKSUM=none COMPRESSION=xz PREFIX=/opt/toee sh ./play-the-temple-of-elemental-evil_gog-2.0.0.13.sh ~/Downloads/setup_temple_of_elemental_evil_2.0.0.13.exe
Here's everything I did as a Linux noob:

dad@MintyDesktop ~/GOG Games/ToEE $ sh ./play-the-temple-of-elemental-evil_gog-2.0.0.13.sh

Checking dependencies…

Checksum method set to: md5sum
Compression method set to: none
Installation prefix set to: /usr/local

Looking for target files…
Using /home/dad/GOG Games/ToEE/setup_temple_of_elemental_evil_2.0.0.13.exe

Checking integrity of setup_temple_of_elemental_evil_2.0.0.13.exe…
This might take several minutes.
Done.

Building package directories…

Extracting game data from setup_temple_of_elemental_evil_2.0.0.13.exe…

Writing launcher script for toee.exe…

Extracting icons from toee.ico…

Writing menu entry for The Temple of Elemental Evil…

Writing package meta-data for The Temple of Elemental Evil…

Building package for The Temple of Elemental Evil…
This might take several minutes.
Done.

Install by running the following commands as root:
dpkg -i /home/dad/GOG Games/ToEE/the-temple-of-elemental-evil_1.3-gog2.0.0.13_i386.deb
apt-get install -f

dad@MintyDesktop ~/GOG Games/ToEE $ dpkg -i /home/dad/GOG Games/ToEE/the-temple-of-elemental-evil_1.3-gog2.0.0.13_i386.deb
dpkg: error: requested operation requires superuser privilege
dad@MintyDesktop ~/GOG Games/ToEE $ sudo dpkg -i /home/dad/GOG Games/ToEE/the-temple-of-elemental-evil_1.3-gog2.0.0.13_i386.deb
[sudo] password for dad:
dpkg: error processing archive /home/dad/GOG (--install):
cannot access archive: No such file or directory
dpkg: error processing archive Games/ToEE/the-temple-of-elemental-evil_1.3-gog2.0.0.13_i386.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
/home/dad/GOG
Games/ToEE/the-temple-of-elemental-evil_1.3-gog2.0.0.13_i386.deb
dad@MintyDesktop ~/GOG Games/ToEE $ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
dad@MintyDesktop ~/GOG Games/ToEE $ sudo dpkg -i /home/dad/GOG Games/ToEE/the-temple-of-elemental-evil_1.3-gog2.0.0.13_i386.deb
dpkg: error processing archive /home/dad/GOG (--install):
cannot access archive: No such file or directory
dpkg: error processing archive Games/ToEE/the-temple-of-elemental-evil_1.3-gog2.0.0.13_i386.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
/home/dad/GOG
Games/ToEE/the-temple-of-elemental-evil_1.3-gog2.0.0.13_i386.deb
dad@MintyDesktop ~/GOG Games/ToEE $ sudo apt-get install -fReading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
dad@MintyDesktop ~/GOG Games/ToEE $ dir
play-the-temple-of-elemental-evil_gog-2.0.0.13.sh
setup_temple_of_elemental_evil_2.0.0.13.exe
the-temple-of-elemental-evil_1.3-gog2.0.0.13_i386.deb
dad@MintyDesktop ~/GOG Games/ToEE $
I couldn't get it to install using the command, but I am also a noob, so I might be doing something I don't know I should be doing.

I was able to get it to install (I think) using the GUI (Mint Cinnamon) .

Although it showed it installing, I don't know what it did and I don't know how to run my game.

The final dir statement in the terminal was done after I ran the install in the GUI.

Lastly, your first lines of the tutorial say that it's for the game Anachronox, not ToEE. :)


P.S. Sorry for all the bug reports, and thank you for doing all this work to make our Linux lives easier! Thank you! And +'s to you!
Post edited January 23, 2016 by Tallima
avatar
Tallima: dad@MintyDesktop ~/GOG Games/ToEE $ sudo dpkg -i /home/dad/GOG Games/ToEE/the-temple-of-elemental-evil_1.3-gog2.0.0.13_i386.deb
[sudo] password for dad:
dpkg: error processing archive /home/dad/GOG (--install):
cannot access archive: No such file or directory
dpkg: error processing archive Games/ToEE/the-temple-of-elemental-evil_1.3-gog2.0.0.13_i386.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
/home/dad/GOG
Games/ToEE/the-temple-of-elemental-evil_1.3-gog2.0.0.13_i386.deb
Here goes a very classic mistake for a newcomer to Linux: spaces in directories names.
dpkg "thinks" you gave it two packages to install:
1. /home/dad/GOG
2. Games/ToEE/the-temple-of-elemental-evil_1.3-gog2.0.0.13_i386.deb

Of course, neither of these exists ;)

Here are the two ways to not have the space interpreted as a delimiter:
sudo dpkg -i "/home/dad/GOG Games/ToEE/the-temple-of-elemental-evil_1.3-gog2.0.0.13_i386.deb"
sudo dpkg -i /home/dad/GOG\ Games/ToEE/the-temple-of-elemental-evil_1.3-gog2.0.0.13_i386.deb

I’ll try and find a way to have the command giving the installation instructions at the end of the building process to take this into account.

-----
avatar
Tallima: Although it showed it installing, I don't know what it did and I don't know how to run my game.
If the installation process went smoothly, it should show up in your applications menu alongside applications you installed via your usual package manager.
You can alternatively run the game from the command line (mostly for debugging purposes) via the following command:
the-temple-of-elemental-evil
-----
avatar
Tallima: Lastly, your first lines of the tutorial say that it's for the game Anachronox, not ToEE. :)
Well spotted, copy-paste fail on my side XD

-----
avatar
Tallima: Sorry for all the bug reports, and thank you for doing all this work to make our Linux lives easier! Thank you! And +'s to you!
Don’t feel sorry ;)
Bug reports are *the* n°1 way to improve software! So bug reports as well as general feedback on the ease-of-use of these scripts are most welcome.

-----

By the way, a nicer guide on my website like the one for Neverwinter Nights is in the work for ToEE too, it should be online in a couple days.
Post edited January 23, 2016 by vv221
Quotation marks did the trick. Thank you! Got ToEE up!

Where do these files reside? How would I install Co8?

Thanks again! You're my hero of the week!
avatar
Tallima: (…)
I’m going to add Co8 support directly into the script at some point, but meanwhile here is a short guide to do it manually.

1. You need to copy all game data in the WINE prefix used by the game:
cp -Rv /usr/local/share/games/the-temple-of-elemental-evil/* ~/.local/share/wine/prefixes/the-temple-of-elemental-evil/drive_c/the-temple-of-elemental-evil/
2. Put the Co8 installer in the same directory (~/.local/share/wine/prefixes/the-temple-of-elemental-evil/drive_c/the-temple-of-elemental-evil/)

3. Tell WINE this is the prefix it should use for the next commands you’re going to launch:
export WINEPREFIX=~/.local/share/wine/prefixes/the-temple-of-elemental-evil
4. Go into the directory where WINE finds the game, and run the Co8 installer from there:
cd ~/.local/share/wine/prefixes/the-temple-of-elemental-evil/drive_c/the-temple-of-elemental-evil/
wine Circle_of_Eight_Modpack_8.1.0_Standard_Edition_Setup.exe
5. Done ;)

I wrote all this from memory, I hope I haven’t forgotten anything.
If anything doesn’t go as smoothly as expected, feel free to come back to me ;)

By the way, it will be *much* easier (no manual intervention needed at all) when support for Co8 is added directly to the ./play.it scripts. No ETA though, I have to go with a GOGish "soon" ;)
avatar
Tallima: (…)
avatar
vv221: I’m going to add Co8 support directly into the script at some point, but meanwhile here is a short guide to do it manually.

1. You need to copy all game data in the WINE prefix used by the game:

cp -Rv /usr/local/share/games/the-temple-of-elemental-evil/* ~/.local/share/wine/prefixes/the-temple-of-elemental-evil/drive_c/the-temple-of-elemental-evil/
avatar
vv221: 2. Put the Co8 installer in the same directory (~/.local/share/wine/prefixes/the-temple-of-elemental-evil/drive_c/the-temple-of-elemental-evil/)

3. Tell WINE this is the prefix it should use for the next commands you’re going to launch:

export WINEPREFIX=~/.local/share/wine/prefixes/the-temple-of-elemental-evil
avatar
vv221: 4. Go into the directory where WINE finds the game, and run the Co8 installer from there:

cd ~/.local/share/wine/prefixes/the-temple-of-elemental-evil/drive_c/the-temple-of-elemental-evil/
wine Circle_of_Eight_Modpack_8.1.0_Standard_Edition_Setup.exe
avatar
vv221: 5. Done ;)

I wrote all this from memory, I hope I haven’t forgotten anything.
If anything doesn’t go as smoothly as expected, feel free to come back to me ;)

By the way, it will be *much* easier (no manual intervention needed at all) when support for Co8 is added directly to the ./play.it scripts. No ETA though, I have to go with a GOGish "soon" ;)
I was thinking of going vanilla for a while anyway, so no hurry. :)