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.
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.