Since this *tutorial* might come in handy to some people, I decided to write it in english. I’ll skip the installation part (since a braindead slug could handle the almighty next next next sequence
).
I’ll assume you’ve already installed and patched your ET installation (to 2.60b or 2.60 - doesn’t really matter), and you’ve just noticed that sound doesn’t work… you have 2 solutions, the first one being:
sudo echo “et.x86 0 0 direct” > /proc/asound/card0/pcm0p/oss
This solution does *work* (depends), but you won’t be able to use any other application while running ET. A better solution is to use the SDL wrapper (may cause problems with PB - didn’t run into any myself though). Open up your terminal, cd to your game dir (i.e. where your et.x86 is located - default installation is in /usr/local/games/enemy-territory) and type in:
wget -q -O - http://nullkey.ath.cx/~stuff/et-sdl-sound/et-sdl-sound.gz | gzip -d > et-sdl-sound && chmod a+x et-sdl-sound
When you’re done, you’ll have a neat startup script. Now all you have to do is type ./et-sdl-sound and enjoy the game.
Think we’re done? Not yet my friend, Ubuntu 8.10 uses PulseAudio so your sound might be laggy - the simplest solution is to kill the pulseaudio process before starting that script and when you’re done playing just start the pulseaudio daemon back up (pulseaudio -D to start the daemon and killall pulseaudio to kill the damned thing)
Having problems with mouse accel? Yeah me too, unfortunately Xserv uses mouse accel by default - but a temporary solution is setting it to 0 through xset - mouse accel will disappear, but you won’t be able to set sensitivity (well you can, but then accel springs back from the dead
). To set the accel to 0, type:
xset m 0
The best thing to do is to edit the et-sdl-sound script and add those commands (killall pulseaudio and xset m 0).
Hope this will be usefull to someone ^^
P.S. wrapper documentation, startup scripts (for Quake 3, RTCW etc) and so on, can be found here.
Edit#1: Forgot to mention before, but this startup script doesn’t support launching the game with parameters (like from XQF), so you have to manualy edit it to enable that. Open up the script with your favourite text editor (vim!
) and modify the line LD_PRELOAD=”${LD_PRELOAD}:${TMP_DIR}/et-sdl-sound.so” ./$GAME_BIN $* to LD_PRELOAD=”${LD_PRELOAD}:${TMP_DIR}/et-sdl-sound.so” ./$GAME_BIN $1 $2 $* - when you’re done, save it and try launching your game from XQF (or manualy ./et-sdl-sound +connect some_ip:port)











