Sunday, November 15, 2009

Quake 4 on Fedora 12 (x86_64)

A few hours ago, I got Quake 3 Arena working on Fedora 12. So, I decided to also try to install Quake 4, which didn't work out of the box. It actually took me longer to figure out the solution for the problem for Quake4 than it took for Quake 3. Here's what I did.


1. Grab the latest Quake 4 binaries from ID Software. quake4-linux-1.4.2.x86.run.
2. Install, and copy the the baseq4 files from your original Windows CDs (or DVD) to /usr/local/games/quake4/base4q
3. When I tried to execute the binary like:
linux32 /usr/local/games/quake4/quake4-smp, I would get an error like this:

X..GL_EXT_texture_compression_s3tc not found

To fix this problem, the following was needed:

yum install driconf

Then, as the user who will be running the game, run:

driconf

and under Image Quality, enable S3TC textures. That did it for me.

4. My game still didn't have sound, so I had to edit ~/.quake4/q4base/Quake4Config.cfg and the the option from:

seta s_driver "best"

to

seta s_driver "oss"

And that worked.

5. As root, /sbin/modprobe snd_pcm_oss; chmod 777 /proc/asound/card0/pcm0p/oss

6. echo "quake4-smp.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss && linux32 /usr/local/games/quake4/quake4-smp

0 comments: