PDA

View Full Version : Heretic 2 in Ubuntu Hoary


janga
September 1st, 2005, 12:46 PM
Yessss... i finally made it! I made Heretic II run in Ubuntu Hoary. (with the help from go... errh Google)
Two things before we start: Im a linux newbie and im not a native english speaker.

Hint for newbies: If you’re slow at typing like me, run sudo nautilus from the console. Then you have a filebrowser, which can access all directories/files. This is useful for copy/rename/change rights operations. For me, this is quicker than cp/rn/chmod commands in the console. However, remember that nautilus will not show hidden files/directories by default, but you can toggle this by pressing ctrl+H.

What you need:
- Heretic II Loki CD-Rom (http://www.lokigames.com/products/heretic2/) (Windows CD should also work with the installer, but i cant approve that, since i own only the Loki CD.)
- Ubuntu Hoary machine with enabled 3d-acceleration. (Other Distros may work, too...)
This old game has pretty ridiculous hardware requirements (Pentium 166) and has a software renderer, too, for the case that you don’t own a 3D-accelerated graphics card.

1.Install the game.
O.K. First obstacle. The installer on the CD is doesn’t work with modern Linux. When you run it from console it says something like “couldn’t find heretic2” bin file. Do this instead: Install the game with this Heretic II Loki Installer (ftp://sunsite.dk/mirrors/lokigames/installers/heretic2/).

sudo sh heretic2-install-x86.run

2. Apply patches.
Now the fun really begins.
2.1. Forget the Loki Update program. Doesn’t work. Download the patches manually from here (ftp://sunsite.dk/mirrors/lokigames/updates/heretic2/) .
You will need those files:
2.1.1. heretic2-1.06b-x86.run or heretic2-1.06b-unified-x86.run. I don’t know the difference. I took the “unified” one.
2.1.2. Optional: heretic2-1.06b-(language)-x86.run if you want to change the ingame language. (40M file)
2.1.3. heretic2-1.06c-x86.run or heretic2-1.06c-unified-x86.run.
2.1.4. Optional: heretic2-maps-1.0.run for extra maps.
2.1.5. Very important: This (http://icculus.org/~msphil/loki/x86/) Version of loki_patch from icculus.org.

2.2. Patching the patches
2.2.1. Now run the patches with the argument --keep. Example:

sudo sh heretic2-1.06b-unified-x86.run --keep

This will make the patch report some errors, but it will extract the files into a folder called “heretic2-1.06b-unified-x86”.
Now copy the downloaded loki_patch file from icculus.org to /heretic2-1.06b-unified-x86/bin/Linux/x86. You have to overwrite the old file.

2.2.2. Then run the update.sh.

cd heretic2-1.06b-unified-x86
sudo sh update.sh

The patch should work without errors.

2.3. You guessed it! You have to do this with all patches you want to apply! Much work, i know...but at least you should apply the 1.06b and the 1.06c patch.

3. some “minor” fixes...
Now the game should already start in software mode. But it crashed when i tried to turn on OpenGL.
There might be a more elegant solution, but i did it this way:

sudo gedit

In Gedit, open /home/(user)/.loki/heretic2/config.cfg and replace set gl_driver "/usr/lib/libGL.so" with set gl_driver "/usr/lib/libGL.so.1" in line 88.

Save the file and you’re done.

Alternative way: run the game with heretic2 +set gl_driver /usr/lib/libGL.so.1

4. Links
Old Loki Games Under New(ish) Linux (http://members.shaw.ca/dan.mckay/LokiInst.html)
Heretic 2 FAQ (http://faqs.lokigames.com/heretic2faq.html)

5.Thanx
Ubuntu for making Linux simple. Simple is good.
Ubuntu Community for being the best.
Gnome for ...errh Gnome.

Mishura
September 2nd, 2005, 02:23 AM
Interesting. Do me a favor.. a while back I was able to get Heretic II to work in Mepis, but when I got to the "Lizardmen" level (I forget what they are called), and there is a part where you aquire the Storm Bow and jump down a good distance into water. After that, and fighting some shark-looking things, there will be a switch under the bridge on the Right, facing the high platform from where you jumped from. (This should be the "3rd" area in the game, the 1st being "The town", 2nd being the "Swamps".)

Push that button. If it crashes, then you have the same problem as I did. If not, then I'll give H2-Linux a sixth (or seventh) attempt. Right now, I'm running H2-Win32 under Wine, which works rather well, but I'd rather use the native version.

Oh, and thanks for the informative step-by-step howto. It's not much different that how I did it last time, but recent attempts to get it to work with Ubuntu Hoary have been very unsucessful. Maybe there was something that I missed.

janga
September 2nd, 2005, 04:26 AM
O.K., i will tell you when I'm that far. Today I'm going on vacation, so this could last a while... :grin:

janga
September 18th, 2005, 08:59 AM
O.K. I played the game thruogh to the end now. I experienced some crashes at the beginnig but then I found out that it runs very stable, when i ran no further "big" programs (like azureus, amule, gaim...) in the background. It didnt crash in that scenario you described at all. Bottom line: old but cool game.

beeldings
March 10th, 2007, 10:54 PM
Wow, I can't believe how old this thread is! Anyway, would anyone happen to have a mirror or copies of the files listed in janga's post? I attempted to download the Loki installer referenced by janga but it is no longer available from that source.

beeldings
April 1st, 2007, 11:00 AM
UPDATE:
heretic2-1.06b-unified-x86.run and heretic2-1.06c-unified-x86.run can be retrieved from http://files.antlinux.com/linux/games/