Preamble
Old Loki games, some of which are still sold by Tuxgames are becoming more and more difficult to just install. Hopefully this HOWTO will help you install Heroes of Might and Magic 3, Heavy Gear 2, Heretic 2, Simcity 3000 Unlimited, Civilization: Call To Power etc (see below). Some of the stuff may well apply to other Loki games...I just don't know. I'm not a technical person - I just got the information from this site, Linux Questions, Google searches and a bit of guesswork. These games installed on Ubuntu Dapper, 32bit with a Nvidia (5700VE) card..don't know about other set-ups, if you want me to try then send me a computer :P
For this HOWTO, I'll assume you are installing systemwide in /usr/local/games and that you'll fiddle with temporary patches and what not in the user home.
IMPORTANT:With all the loki installers, don't press 'play' when the installer has finished if you have installed as root (i.e. sudo) as that will play the game as root and the preferences directory (i.e. '.loki') will have root permissions. Just press exit, then use the command or menu item instead.
EVEN MORE IMPORTANT: the 'sunsite' mirror used for the various patches and updates in these guides is now deaded, so you'll have to use
Code:
ftp://mirrors.dotsrc.org/lokigames
instead
Games Covered:
Civilization: Call To Power
Heavy Gear 2
Heretic 2
Sim City 3000 Unlimited
Heroes of Might and Magic 3
Railroad Tycoon 2
Sim City 3000 Unlimited
Open a terminal window (Applications->Accessories->Terminal). Go to wherever the CD is mounted:
Start the installer, for me, I checked all the options:
Download the patch:
Code:
wget ftp://sunsite.dk/mirrors/lokigames/updates/sc3u/sc3u-2.0a-x86.run
Run the patch (plus --keep, not sure why, but it seems to solve a usagetrap error):
Code:
sudo sh sc3u-2.0a-x86.run --keep
Run the game, but assume an older kernel version:
Code:
LD_ASSUME_KERNEL=2.4.26 /usr/local/bin/sc3u
Fingers crossed, it should work!
Getting it to work as a menu item is another pain! There should be a item under 'Games' in Alacarte, but it won't work, so we make a little script to run the program:
Add the following:
Code:
#!/bin/sh
cd /usr/local/games/SC3U
LD_ASSUME_KERNEL=2.4.26 /usr/local/bin/sc3u
Save as something obvious, like 'sc3ulaunch' or similar, then make it executable and move it to the right directory:
Code:
chmod +x sc3ulaunch
Code:
sudo mv sc3ulaunch /usr/local/bin
You can now change the menu entry in Alacarte to 'sc3ulaunch' and it should work!
Get rid of the faff:
Code:
cd ~/ (or wherever you downloaded the patches to)
Code:
rm sc3u-2.0a-x86.run
Code:
sudo rm -rf sc3u-2.0a-x86
Civilization: Call To Power
Civ is relatively painless, just need the correct patch.
Open a terminal window (Applications->Accessories->Terminal). Go to wherever the CD is mounted:
Start the installer (create the symlink in /usr/local/bin, when it asks):
The game will work, but with issues, soooo download the patch:
Code:
wget ftp://sunsite.dk/mirrors/lokigames/updates/civctp/civctp-1.2a-english-unified-x86.run
There are a variety of different patches, but it's the english-unified that seems to work.
Run the civctp patch:
Code:
sudo sh civctp-1.2a-x86.run
When done, remove the faff:
Code:
rm civctp-1.2a-english-unified-x86.run
There is an entry in Alacarte, but it didn't seem to show up (for me), so I toggled the visibility off and then on again and that seemed to sort it (weird!)
Heroes of Might and Magic 3
Open a terminal window (Applications->Accessories->Terminal). Go to wherever the CD is mounted:
Start the installer (create the symlink in /usr/local/bin, when it asks):
You can run the game, though (for me) without the patch it doesn't run fullscreen (amongst other issues), so download the patch:
Code:
wget ftp://sunsite.auc.dk/pub/os/linux/loki/updates/heroes3/heroes3-1.3.1a-unified-x86.run
The patch will segfault if you try to run it. Run it with the 'keep' option (it will still segfault, but bear with me!):
Code:
sh heroes3-1.3.1a-unified-x86.run --keep
We need to patch the patch (*sigh*), go to the offending directory and remove the dodgy file:
Code:
cd heroes3-1.3.1a-unified-x86/bin/Linux/x86/
Download the new loki_patch and make it executable:
Code:
wget http://www.step-n-up.com/downloads/loki_patch
Code:
chmod +x loki_patch
Go back a few directories and run the update (now as root):
Hopefully that should now work, I found no problems with the menu item - use that or type:
To remove the faff:
Code:
sudo rm -rf heroes3-1.3.1a-unified-x86
Code:
rm heroes3-1.3.1a-unified-x86.run
Heretic 2
Open a terminal window (Applications->Accessories->Terminal). Go to wherever the CD is mounted:
Start the installer (create the symlink in /usr/local/bin, when it asks):
A load of errors will probably appear in the terminal window - can't find the bin/x86/heretic file, several directories etc etc. These will be fixed after install...just let it carry on for now.
Lets move that file manually. Remember to change 'cdrom0' to whatever your cdrom directory is called:
Code:
sudo cp /media/cdrom0/bin/x86/glibc-2.1/heretic2 /usr/local/games/heretic2/
Create a symbolic link from the heretic2 file to the /usr/local/bin directory, so running Heretic is easier:
Code:
sudo ln -s /usr/local/games/heretic2/heretic2 /usr/local/bin
To get the program to run, we also need the two patches:
Code:
wget ftp://sunsite.auc.dk/pub/os/linux/loki/updates/heretic2/heretic2-1.06b-unified-x86.run
Code:
wget ftp://sunsite.auc.dk/pub/os/linux/loki/updates/heretic2/heretic2-1.06c-unified-x86.run
Running the patches will cause a segfault, sooo time to patch the patches:
Code:
sh heretic2-1.06b-unified-x86.run --keep
This will still cause a segfault, but no worries, just change directories:
Code:
cd heretic2-1.06b-unified-x86/bin/Linux/x86/
Delete the borked loki_patch and download the newer one:
Code:
wget http://www.step-n-up.com/downloads/loki_patch
Change the permissions:
Code:
chmod +x loki_patch
Back up a few directories and run the update:
You need to do exactly the same for the 1.06c patch, summarised:
Code:
sh heretic2-1.06c-unified-x86.run --keep
Code:
cd heretic2-1.06c-unified-x86/bin/Linux/x86/
Code:
wget http://www.step-n-up.com/downloads/loki_patch
Code:
chmod +x loki_patch
You can now play the game by typing:
To create a menu item, just load Alacarte and use the command 'heretic2'. The icon is messed up - if you want a better one then:
Code:
wget http://aslan.homelinux.com/dana/icons/games/heretic2.png
Code:
sudo mv heretic2.png /usr/share/pixmaps/
There should now be a slightly better Heretic icon in your default icon directory :)
Lastly, clean up the faff:
Code:
sudo rm -rf heretic2-1.06b-unified-x86
Code:
sudo rm -rf heretic2-1.06b-unified-x86
Code:
rm heretic2-1.06b-unified-x86.run
Code:
rm heretic2-1.06c-unified-x86.run
Heavy Gear 2 HOWTO will be added onto this later :)
Bookmarks