Posted February 16, 2014
high rated
Yesterday I got my copy of Unreal Tournament 2004. I've heard that it can run natively on Linux, but after I installend the game through Wine and applied Linux patch the game wouldn't even start. So I started searching for answers. It took me a long time but with my exceptional google-fu skills I got it running. These links were the most helpful:
http://www.gog.com/forum/unreal_series/unreal_tournament_2004_linux_version/post10
http://www.neowin.net/forum/topic/840720-how-to-ut2004-with-ubuntu-910-libstdc5/
https://bugs.launchpad.net/ubuntu/+source/openal-soft/+bug/995639
I'm aware of my limited knowledge and Linux know-how, so probably some (or most ;)) things could be done better, but if somebody is interested in how I did it, here are the steps:
1. Download the game from GOG and install it using Wine. Then go to the installation directory and copy its contents to ~/.ut2004
It's a rather specific location, I know, but I've put it somewhere else and after running the game, I've discovered that it created UT2004.ini and some other files in this folder anyway. And I didn't care enough to try to change it (I moved entire game there).
Just a reminder: the dot at the beginning of a filename means that the file is hidden.
2. Go to your /.ut2004/System and create new empty file named CDKey
Open terminal and run
wine regedit
which will open Registry Editor. Go to HKEY_LOCAL_MACHINE\Software\Unreal Technology\Installed Apps\UT2004 and copy value of CDKey (doubleclick it for a window with easy to copy text). Paste this into previously created CDKey file.
3. Download Linux patch and unpack it. Move all unpacked content to ~/.ut2004 and replace all the existing files when asked.
http://www.gamershell.com/download_11985.shtml
4. The game requires some libraries to be put into its /System directory. (Or maybe some symlinks, I don't know, it's beyond my knowledge right now).
First of all, download libstdc++5 by writing in terminal:
sudo apt-get && sudo apt-get upgrade
sudo apt-get install libstdc++5
(I've found libstdc++6 among my libraries, but it turns out it's too new for the game).
Now, you have to copy three libraries directly into ~/.ut2004/System directory:
from /usr/lib/x86_64-linux-gnu copy:
- libSDL-1.2.so.0.11.4 and rename it to libSDL-1.2.so.0
- libstdc++.so.5.0.7 (remember: 5 not 6) and rename it to libstdc++.so.5
from /usr/lib/i386-linux-gnu copy:
- libopenal.so.1.14.0 and rename it to openal.so
At this point you should probaly run the game so it generates UT2004.ini. (Use ut2004-bin-linux-amd64 executable from /System directory).
5. Open UT2004.ini from /System and in section [ALAudio.ALAudioSubsystem] change
UseDefaultDriver=True to UseDefaultDriver=False
I've seen suggestions to use sound wrappers in order to fix lack of sound, but for me it works just as it is.
6. Desktop shortcut/launcher. I had to create a script because launcher/shortcut to executable didn't work...
In /.ut2004 create a new file called ut2004.sh (or whatever you like) with these three lines:
Aaand done. At least the game works for me. ;) I know hardly anything about Linux, so all this comes primarily from smart folks on the Internet, but some trial and error attempts and my own judgement were involved. I hope someone will find this useful.
It may be worth noting that I'm running a 64 bit version of Ubuntu 13.10 on i3, 4GB RAM, Intel HD 4000 integrated graphics machine. I suspect that versions and names of libraries may differ for different distros and their versions.
http://www.gog.com/forum/unreal_series/unreal_tournament_2004_linux_version/post10
http://www.neowin.net/forum/topic/840720-how-to-ut2004-with-ubuntu-910-libstdc5/
https://bugs.launchpad.net/ubuntu/+source/openal-soft/+bug/995639
I'm aware of my limited knowledge and Linux know-how, so probably some (or most ;)) things could be done better, but if somebody is interested in how I did it, here are the steps:
1. Download the game from GOG and install it using Wine. Then go to the installation directory and copy its contents to ~/.ut2004
It's a rather specific location, I know, but I've put it somewhere else and after running the game, I've discovered that it created UT2004.ini and some other files in this folder anyway. And I didn't care enough to try to change it (I moved entire game there).
Just a reminder: the dot at the beginning of a filename means that the file is hidden.
2. Go to your /.ut2004/System and create new empty file named CDKey
Open terminal and run
wine regedit
which will open Registry Editor. Go to HKEY_LOCAL_MACHINE\Software\Unreal Technology\Installed Apps\UT2004 and copy value of CDKey (doubleclick it for a window with easy to copy text). Paste this into previously created CDKey file.
3. Download Linux patch and unpack it. Move all unpacked content to ~/.ut2004 and replace all the existing files when asked.
http://www.gamershell.com/download_11985.shtml
4. The game requires some libraries to be put into its /System directory. (Or maybe some symlinks, I don't know, it's beyond my knowledge right now).
First of all, download libstdc++5 by writing in terminal:
sudo apt-get && sudo apt-get upgrade
sudo apt-get install libstdc++5
(I've found libstdc++6 among my libraries, but it turns out it's too new for the game).
Now, you have to copy three libraries directly into ~/.ut2004/System directory:
from /usr/lib/x86_64-linux-gnu copy:
- libSDL-1.2.so.0.11.4 and rename it to libSDL-1.2.so.0
- libstdc++.so.5.0.7 (remember: 5 not 6) and rename it to libstdc++.so.5
from /usr/lib/i386-linux-gnu copy:
- libopenal.so.1.14.0 and rename it to openal.so
At this point you should probaly run the game so it generates UT2004.ini. (Use ut2004-bin-linux-amd64 executable from /System directory).
5. Open UT2004.ini from /System and in section [ALAudio.ALAudioSubsystem] change
UseDefaultDriver=True to UseDefaultDriver=False
I've seen suggestions to use sound wrappers in order to fix lack of sound, but for me it works just as it is.
6. Desktop shortcut/launcher. I had to create a script because launcher/shortcut to executable didn't work...
In /.ut2004 create a new file called ut2004.sh (or whatever you like) with these three lines:
#!/bin/bash
cd "$(dirname "$0")"/System
./ut2004-bin-linux-amd64
and allow executing it as a program. Any link or desktop launcher should point at this file, not the executable itself. cd "$(dirname "$0")"/System
./ut2004-bin-linux-amd64
Aaand done. At least the game works for me. ;) I know hardly anything about Linux, so all this comes primarily from smart folks on the Internet, but some trial and error attempts and my own judgement were involved. I hope someone will find this useful.
It may be worth noting that I'm running a 64 bit version of Ubuntu 13.10 on i3, 4GB RAM, Intel HD 4000 integrated graphics machine. I suspect that versions and names of libraries may differ for different distros and their versions.