Installing the Quake2 data files in Linux using the old Linux build CDs
Including Mission Pack I. The Reckoning and Mission Pack II. Ground Zero
Quake II was an early game among mainstream first person shooters to be released with a native Linux version. I purchaed it new, I don't know how many years ago. And unsurprisingly, as a commercial binary distribution it is unlikely to run on any up to date Linux computer today. Fortunately the game engine itself was open sourced and there are a few versions that are installable today.
At the time I am writing this there are three versions of quake2 in the Gentoo repositories. They are the Yamagi Quake2 engine, which Google tells me is the most popular and best one for single player use. There is also the icculus.org port which I believe is the more common one for multiplayer and there is red-blue-quake2 which purports to work with 3d glasses. Only yamagi-quake2 built for me without errors. I have not tried very hard to debug the other two. I would like to have multi-player working however so if icculus does something for that which yamagi does not then maybe I will have to work on this.
What was open sourced was the code engine which runs the game. The level data (maps, images, videos, etc...) was not. For the open source engines to work you must install level data as well. This comes from the purchased CDs.
There is a tool for Linux which will extract the level data from a Windows CD. And there is an ebuild for Gentoo which will use this tool and copy the resulting files where they need to go and track them in Gentoo's package management. Unfortunately, the tool does not work with the Linux CDs. There probably just aren't that many people out there trying to use them!
Here's how I managed to get the level data installed.
The Gentoo ebuild by default looks for a CD in the CDROM drive. But it will not recognize the Linux CD and install it properly. It does have an option however where you can set a path to a folder containing the files in an environment variable and it will copy from there. So the first task was to unpack the files from the CD manually and build up a folder structure that the ebuild would recognize and install from. Of course, I could have just skipped the ebuild at that point and copied the files directly to the file system. But I would prefer all my files be managed by the packaging system so that they may be easily found and uninstalled later if need be.
- First, create a folder named ~/Quake2-Unpack.
- Inside this create a folder named Install.
- Note the capital I and lowercase rest of the word. Case matters.
- Inside Install create two more folders, DOCS and Data.
- Mount the CDROM
- On the CDROM there should be a file called quake2-data-3.20-6.noarch.rpm.
- Yours may have different numbers if your CD was pressed at a different time, with a different version.
- Don't try to install the RPM, extract it or open it's contents for viewing. I did this just by double clicking it in KDE-Dolphin which opened it in the Ark file extractor. You could use whatever tools you prefer, GUI or commandline.
- Inside the RPM find usr/local/games/quake2/baseq2. Extract the baseq2 folder (including the folder itself, not just contents) into Quake2-Unpack/Install/Data
- Also find usr/local/games/quake2/docs/quake2_manual. Extract this into Quake2-Unpack/Install/DOCS/
- If you wish to install the videos as well then open the file quake2-video-3.20-6.noarch.rpm and extract usr/local/games/quake2/baseq2/video into the Quake2-Unpack/Install/Data/baseq2/ folder.
- Unmount your CD. If you have the Quake2 Mission Pack CD with Ground Zero and The Reckoning insert and mount that. Otherwise you can skip ahead.
- Here you will find quake2-rogue-3.20-6.narch.rpm or similar.
- From that extract usr/local/games/quake2/rogue into Quake2-Unpack/Install/Data.
- Also find the folder named xatrix inside of quake2-xatrix-3.20-6.noarch.rpm and copy it into the Data folder.
- I don't think this is necessary but I copied the doc folders for rogue and xatrix into DOCS/quake2_manual/rogue and DOCS/quake2_manual/xatrix respectively. This way these do end up in your /usr/ahare/docs if you ever want to read them.
- If you wish to install the video files then the two rpms quake2-rogue-video-3.20-6.noarch.rpm and quake2-xatrix-video-3.20-6.noarch.rpm each contain video folders which should be copied into the respective rogue and xatrix folders inside of the data folder.
- If you intend to install the videos then enable the "videos" use flag for games-fps/quake2-data
- Now install this with the command "export CD_ROOT=~/Quake2-Unpack/ & emerge quake2-data --ask"
- Note - you probably did your unpacking as a regular user and will be doing the emerge as root. So.. you will have to replace the ~ with ~<username> or the whole path to wherever you put the Quake2-Unpack folder.
- Choose and install a game engine. Note, there may be use flags to enable, rogue and xatrix for the mission packs!