Quake 3 with sound for the Raspberry Pi
by adama 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.
29 Comments for this entry
2 Trackbacks / Pingbacks for this entry
-
Offical Wheezy Image | mitchellaneous
July 18th, 2012 on 17:47[...] a pre-compiled Quake 3 installation guide for wheezy too: http://www.memetic.org/quake-3-with-sound-for-the-raspberry-pi/ This entry was posted in IT Stuff by Mitch. Bookmark the [...]
-
My Pi has arrived! | Noskilz
July 18th, 2012 on 20:10[...] that with the preview of the raspbian image (now officially available on the downloads page), ran Quake 3, found my old cd and got the retail pak installed, tweaked the config, and got the timedemo up to [...]
July 15th, 2012 on 19:42
the links to Quake3 with and without sound are the same link?
July 19th, 2012 on 17:40
Hi. I am bit confused. Is this legal to download?
It because Quake 3 is not free?
July 19th, 2012 on 18:33
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.
July 19th, 2012 on 23:44
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
July 21st, 2012 on 01:10
how do I install the quick3 binary onto the Pi? Appreciate any helps.
July 21st, 2012 on 23:38
just untar it (tar zxvf Quake3.tar.gz) and run io-quake3.arm
July 21st, 2012 on 09:14
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
July 21st, 2012 on 09:25
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.
July 21st, 2012 on 23:38
just run ioquake3.arm
July 22nd, 2012 on 21:46
would it be possible to also package xbmc-send for sending commands from console? thank you, jose
July 23rd, 2012 on 16:02
I don’t know what that is
July 24th, 2012 on 21:07
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!
July 27th, 2012 on 13:06
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
July 28th, 2012 on 14:20
do not start from X.
July 28th, 2012 on 17:35
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?
July 28th, 2012 on 19:29
It is probably a limitation of squeezing it in to OpenGL ES. but i am not an expert
August 3rd, 2012 on 22:17
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?
August 4th, 2012 on 23:41
I’ve no idea, i’ve never seen this!
August 9th, 2012 on 03:10
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.
August 9th, 2012 on 03:27
On the console, in the q3 directory type ./ioquake.arm.
The ./ means ‘in this directory’.
August 9th, 2012 on 16:34
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?
August 9th, 2012 on 16:37
Nevermind it worked after I did a chmod on ioquake3.arm.
September 25th, 2012 on 10:23
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.
November 6th, 2012 on 23:10
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
November 8th, 2012 on 18:26
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
December 1st, 2012 on 15:04
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
December 5th, 2012 on 00:32
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.
January 19th, 2013 on 17:19
Closing SDL audio device…
SDL audio device shut down.
RE_Shutdown( 1 )
sound is not aktiv What it this Problem ?
March 16th, 2013 on 10:47
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.