memetic dot org

Quake 3 with sound for the Raspberry Pi

by on Jul.14, 2012, under Linux, Raspberry Pi

EDIT: This post is very old now, please don’t rely on it or try to report bugs :)

One of the strongest components of the Raspberry Pi is the VideoCore IV GPU which should allow us to play 3d games reasonably well on the device. The first such game to be compiled is Quake 3, and it works reasonably well, But up until now the Pi’s version has had it’s sound disabled. Thankfully dextrus from the Raspberry Pi forums has worked out how to re-enable it. It turns out that it was disabled to allow it to compile on ARM platforms without the necessary sound drivers.

In code/client modify the following lines in snd_dma.c. I might have nudged the line-numbers out though..

393: Undo the hack by un-commenting the s_soundMuted = qfalse; line. Comment out the line after, which reads “s_SoundMuted = 1″.

1501: Comment out the “s_soundMuted = 1″ line. Someone slipped this in without commenting! This too disables sound.

Finally, modify the Makefile at line 1381 and replace the “es_snd.o” with “sdl_snd.o”. For some reason the arm build was not linking in the SDL sound.

I’ve compiled it for Raspbian using hardfloat, and it works fine, though it is a little slower with sound enabled. As it took almost an hour to compile I’ve uploaded it so that you don’t have to compile it yourself.

If you’ve not already enabled the Pi’s sound driver you’ll need to run :

modprobe snd_bcm2835

Alternatively you can add “snd_bcm2835″ to /etc/modules and reboot to enable sound permanently.

You will also need libsdl1.2debian installed

apt-get install libsdl1.2debian

Be sure to read my post on Overclocking the Raspberry Pi to help you squeeze a few more much-needed FPS out of your Pi.

Download the version with sound here.

Download the version without sound here.


29 Comments for this entry

  • MotoBlue

    the links to Quake3 with and without sound are the same link?

  • owen

    Hi. I am bit confused. Is this legal to download?
    It because Quake 3 is not free?

    • adama

      Quake 3 was open sourced quite some time ago. This is a fork of the code, ioQuake3 and the demo game data files. The full game data files for Quake 3 are still not free and are not included here.

      • owen

        Ah i see ok thanks. So at the CD key screen I just press enter? Is that normal?
        BTW thank you so much for file links :)

  • kien

    how do I install the quick3 binary onto the Pi? Appreciate any helps.

  • oPi

    I’ve had the no-sound Q3 running fine for a couple of weeks now, without sound of course, but I just can’t figure out how to get this one going at all. I’m very new to Linux in general and have no experience with programming yet (I got the Pi to start learning it), so the code change stuff is over my head right now unfortunately. If someone could maybe give a real step-by-step of getting this going it would be great! Thanks :)

    • oPi

      Let me amend that…I’ve had a different one with no sound running maybe. There’s no autoexec.cfg file in the one I’m running. there’s no start.sh file or a lib folder with some .so files in it in this . So, really, I have no idea what I need to do to make it happen…any help is appreciated.

  • jose

    would it be possible to also package xbmc-send for sending commands from console? thank you, jose

  • Niall

    downloaded & untared the no sound version. ran io-quake3.arm and sound worked!!

    running raspian from rpi website. used sudo startx.

    dont know if that had anything to do with it. new to all this!

  • Oraclemaster

    Hi, if I start both the version from LXTerminal, after the Message SDL using driver “x11″, I got the error “1613907880: * failed to add service – already in use?”,
    Any help?
    Thank you.

    Mauro

  • muth

    Nice! This is the first Q3 build I try on my new pi (raspbian 2012-07-15 image). Sound works, but there is no dynamic lightning (though I activated it in the options). Any ideas?

  • ChamPro

    Hmmm… I’m trying the no sound version on an updated version of 2012-07-15-wheezy-raspbian. I launch ioquake3.arm and then just get a white screen. It requires a hard reset, since I can’t break out or switch to another vt.

    Any ideas?

  • segadude

    How exactly do I run ioquake3.arm? What exactly do I need to type? Sorry I’m a noob and know nothing about linux command line stuff.

    • adama

      On the console, in the q3 directory type ./ioquake.arm.

      The ./ means ‘in this directory’.

      • segadude

        That doesn’t work. If I try just ./ioquake3.arm alone it says: -bash: ./ioquake3.arm: Permission denied. If I try sudo ./ioquake3.arm it says: sudo: ./ioquake3.arm: command not found. Am I doing something wrong?

  • Sheriff

    Hi,

    Downloaded and ran ok, no issues really. The only snag I’ve had is that any setting changes made in the game are not remembered on a re launch. Its like its ran in a read only way.

    Can you suggest a fix that I should try?

    Thanks.

  • Michiel

    Hi, how do I get the sound working?
    I got raspian with all updates installed and except for getting the screen fixed for my HDMI display.

    The error I am seeing is:
    ^1ERROR: Could not open “sound/weapons/grenade/hgrenb1a.wav”
    ^3WARNING: could not find sound/weapons/grenade/hgrenb1a.wav – using default
    ^1ERROR: Could not open “sound/weapons/grenade/hgrenb2a.wav”
    ^3WARNING: could not find sound/weapons/grenade/hgrenb2a.wav – using default
    ^1ERROR: Could not open “sound/weapons/grenade/hgrenb1a.wav”
    ^3WARNING: could not find sound/weapons/grenade/hgrenb1a.wav – using default
    ^1ERROR: Could not open “sound/weapons/grenade/hgrenb2a.wav”
    ^3WARNING: could not find sound/weapons/grenade/hgrenb2a.wav – using default
    stitched 0 LoD cracks
    …loaded 1942 faces, 113 meshes, 42 trisurfs, 0 flares
    ^1ERROR: Could not open “sound/player/announce/UnnamedPlayer.wav”
    ^3WARNING: could not find sound/player/announce/UnnamedPlayer.wav – using default
    Failed to load model file models/players/characters/keel/lower.md3
    Can’t read sound file music\sonic5.wav
    ^3WARNING: couldn’t open music file music\sonic5.wav
    CL_InitCGame: 11.42 seconds

    So i lookt if files are missing, is it possible the tar files dont have the sound/wave files in them?

    Michiel

  • Justin

    Hi Adam.
    How ru? Thank you very much for posting the Quake 3 precompiled binaries files. I tried both of them and they both run ok and without overclocking my Pi. Can I please some infomation, data and website like?
    Message. Thank you very much for posting the Quake 3 I got this game easy to run, thanks to you for helping people like me. I was searching the internet for a while and I’m new to Linux, but learning fast about Linux & the Pi. Can I please some infomation, data and website like? Will you be posting any games for the Raspberry Pi? Please do. I want your permission, so that I can add this to my webpage. Christmas is nearly here. I brought my Raspberry Pi kit from Maplins. It would be nice for a child to have fews games to play with. I going to add information about the Omxplayer. When I first got the Pi, I did not know that the wheezy-raspbian had Omxplayer (basic) which is hidded. I would like to help people get the best out of the Pi for Christmas. Keep up the good work.

    Yours sincerely Justin

  • Justin

    How ru? Thank you very much for making & posting The Quake 3 games for the Raspberry Pi. with or without sound versions. The Rapberry Pi need all the help it can get to survive. I love my R-Pi. Can I please some infomation, data and website like? I want your permission, so that I can add this to my webpage. Christmas is nearly here. I brought my Raspberry Pi kit from Maplins. It would be nice for
    a child to have fews games to play with. I going to add the Omxplayer. When I first got the Pi, I did not know that the wheezy-raspbian had
    Omxplayer (basic) which is hidded. I would like to help people get the
    best out of the Pi for Christmas. Keep up the good work.
    Justin
    apex369@gmail.com

  • think

    Link exchange is nothing else but it is only placing the other
    person’s web site link on your page at appropriate place and other person will also do similar in favor of you.

  • Peter

    Closing SDL audio device…
    SDL audio device shut down.
    RE_Shutdown( 1 )

    sound is not aktiv What it this Problem ?

  • Oliver

    Just bought my RaspBerry PI. Activated sound over hdmi. Fine. But cannot launch Quake.

    GLImpl_Init() – Could not load OpenGL subsystem.

    Have being searching for hours in the web, and found no solution. any suggestions?

    Tried both versions.

2 Trackbacks / Pingbacks for this entry

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...

Archives

All entries, chronologically...