UT 2004 on Linux

UT2004 related discussions
User avatar
Maniac
Posts: 253
Joined: Tue 23. Dec 2014, 23:21
Description: Ain't no rest for the wicked
Location: Ukraine

UT 2004 on Linux

Postby Maniac » Tue 7. Apr 2015, 19:28

Yesterday I switched my PC from Win7 to Linux (Mint x64 /Mate). I've heard somewhere before that there is UT2k4 client for Linux, so I started to dig it...

My first try was to download my copy of UT from GOG.com. Alas, the only installer they provide is the Windows one, and it is not same as DVD installer (see below why does it matter). So, I had to roll my sleeves up and go to Google.

The first link in the list was the topic on help.ubuntu.com (https://help.ubuntu.com/community/Games ... nament2004). The good thing about it was that it provided all of the possible ways to do it; the bad thing was that half of them was broken (bad links) and other half was about tuning it up (updates, content packs). But, having this information, I concluded that there are 2 approaches:
- to use an original DVD and separate linux installer script;
- to use a version of DVD where Linux installer is already present.

As my version was not suitable for this, I had to go and get another one - and, as I needed a new source of files anyway, I decided to use the one with native installer. As I can tell from the manuals, using the standalone installer is not much harder.

Here I have to add a remark about copyright enforcement company. I do own a legal copy of UT2k4, but I wasted an hour or so searching the torrents and other "illegal" sources for a version with Linux installer, which goes for the same damn price as a version without one. Thank you, Shining Knights of Thou Shalt Not Pirate This!

It was surprisingly hard to get what I needed: for each relevant result I stumbled upon 3-4 useless ones. I want a Linux version, dammit, I don't need "cracked", "crack included" and all the other rubbish!

There was only one problem during installation - missing libstdc++.so.5 ; But it was in the package manager list, so I installed it in the convenient way and it didn't bother me anymore.

It took me some time to understand, which version do I have and which content packs/updates do I need, and it all came down to MegaPack and native update from the internets. It should have been on the official site and beyondunreal site, but both links were broken. It was pretty easy to find them though.

THINGS TO TAKE INTO ACCOUNT IF YOU WANT TO DO THE SAME

- as with all the other non-native Linux games ports, there is no guarantee it would work like intended or would work at all;
- finding the suitable version of UT2k4 files (ISO, archive, DVD) is not trivial; the easiest way is to buy a new copy, but it will cost you some money;
- you need not only the game itself, but also the obligatory content packs and update patches; on the one hand, the Linux versions of these files are pretty hard to find; on the other hand, the game itself is old enough, so there was enough time for the files to spread across the Web;
- obviously, the only render system is OpenGL; not to say it's a problem per se, but it should be noted for the record;
- all the systems (input, video, audio etc.) MAY run different from the Windows version. Some even say the graphics performance is better; as for me, the mouse control feels different a bit.
- it's AWESOME! :D

I hope this post will be of help and of encouragement :)

Sincerely yours,
10^99 years left until the heat death of our Universe.

User avatar
Sernemissza
Posts: 120
Joined: Tue 16. Nov 2010, 09:09
Description: I'll swallow your soul!
Location: Absurdistan

Re: UT 2004 on Linux

Postby Sernemissza » Sat 29. Aug 2015, 12:44

Well, in this case i have a question to the admins:
Can i put here a magnet link about an image from an original disc?

Also i can write a description about how to install the UT2004 under Linux, If there is still any claims.
Image

User avatar
Droopy_Bollocks
Posts: 148
Joined: Sun 8. Dec 2013, 22:21
Description: Gets the job done

Re: UT 2004 on Linux

Postby Droopy_Bollocks » Sat 29. Aug 2015, 19:26

along with Serne,

If anyone needs a disc image of the original, just let me know and I'll upload one no problem (obviously you must have your own DVD-Key already)

I run the linux client and although performance varies from distro to distro it is a match for the windows versions, mainly because the OpenGL subsystem is a little more mature than DX9 on windows.

DB
Don't bother asking - I won't answer.

I'm not ignorant, just finding being quiet stops me getting a bollocking ;-)

User avatar
Cat1981England
Posts: 2324
Joined: Mon 23. Aug 2010, 15:35

Re: UT 2004 on Linux

Postby Cat1981England » Sun 30. Aug 2015, 19:24

Sernemissza wrote: Can i put here a magnet link about an image from an original disc?


Droopy_Bollocks wrote:If anyone needs a disc image of the original, just let me know and I'll upload one no problem (obviously you must have your own DVD-Key already)

By all means :thumbup:

I haven't done it for a few years now, but I thought all you needed was the UT2004 Linux patch and/or .exe?

Sernemissza wrote:Also i can write a description about how to install the UT2004 under Linux, If there is still any claims.


Please do, I'm sure some people will find it very helpful.
The Universal Declaration of Human Rights, Article 1:

All human beings are born free and equal in dignity and rights. They are endowed with reason and conscience and should act towards one another in a spirit of brotherhood.

User avatar
Sernemissza
Posts: 120
Joined: Tue 16. Nov 2010, 09:09
Description: I'll swallow your soul!
Location: Absurdistan

Re: UT 2004 on Linux

Postby Sernemissza » Tue 1. Sep 2015, 21:14

UT2004 installation, version: 2015. September. 2.

Changes from version 2015. September. 1.:
Magnet link added.
Spell check.


First of all, i do not take responsibility for the consequences as described here,
but i tried to create a functional description,
which i assumed that you have some experience and administrator rights.

It is a huge difference between the English and my language, so excuse me.
I installed the Peppermint 6 in english for less trouble.


This description based on the pre-anniversary, but DVD version, which has no expansions.

Some Explanation:
Sometimes you have to use the terminal as an administrator (root).
Remember: It's easier than it looks! :)
Under the Ubuntu, and Ubuntu based systems, such as a Mint,
you can do it with the "sudo" (super user do). Under the GUI it works with "gksu".
With the other systems you can try with the "su".
I will use my nick in these commands as examples, so you have to change it for your user name,
i suggest copy this description with the text editor, replace my nick with "ctrl+h" and save it.
I tried early with shorthands, such as tilde,
but i found myself into the root folder because "sudo" used before, so that's why the examples.
http://linuxforbeginners.blogspot.hu/20 ... linux.html
You can copy any text from anywhere to the terminal, just it must be open.
If you close the source after the copy procedure (such as right click+fill+copy) then probably you can't paste it.
If you have keyboard mania, the ctrl+ins & shift+ins also works.
You will need 9.1GB+ space at least on the system partition (the Linux requires 4.8GB+), and an empty DVD.
I tried with the "Furius" to manage the image from hard disk, but never worked.
You can burn out the image with "Brasero", i suggest the "K3B" application.



Preparation:
If not installed yet, then install the gnome-commander and the gnome-terminal from the software manager/center.
If you got an error message, check your Internet connection and/or try change the software sources from the "edit" tab.
Gnome Commander:
If you have a Mint Linux then
left click on menu\accessories, then right click on Gnome-Commander, and add to desktop.
Right click on desktop\gnome-commander.desktop and hit properties\permissions
Change the owner and the group access to read and write,
and pipe the "allow executing file as program".
or copy it with the Gnome Commander:
open it from the dash (https://help.ubuntu.com/stable/ubuntu-h ... intro.html)
hit file and "start GNOME Commander as root" for administrator rights, fill your password,
and copy with "F5" from "/usr/share/applications/gnome-commander.desktop"
to your desktop folder ("/home/sernemissza/Desktop").
Hit right click on the Gnome Commander ("/home/sernemissza/Desktop/gnome-commander.desktop"),
hit properties\permissions, change the owner and group to your user name,
and fill the access permissions for owner and group, and delete everything for others.
Now the 'number view' must be "770". Hit "OK".
Hit right click on the Gnome Commander on desktop, then "properties",
left click on the line called "command", hit home, write "gksu ", with space.
Now the command must be "gksu gnome-commander".
Close.
or copy it with the terminal (the terminal is case sensitive!):
Hit ctrl+alt+t to call the terminal, then copy this line into it:
sudo cp /usr/share/applications/gnome-commander.desktop /home/sernemissza/Desktop
Like i wrote, it's case sensitive, so the "Desktop" must starts with a big "D".
Let's change the permissions:
sudo chown sernemissza:sernemissza /home/sernemissza/Desktop/gnome-commander.desktop
sudo chmod 770 /home/sernemissza/Desktop/gnome-commander.desktop
Go to the desktop, and right click on the Gnome Commander,
left click on the line called "command", hit home, write "gksu ", with space.
Now the command must be "gksu gnome-commander".
On the "Permissions" tab make sure "Allow executing file as program" is enabled.
Close.
Gnome-Terminal:
Open the Gnome Commander from the desktop, fill your password,
go with a panel to your desktop (/home/sernemissza/desktop),
go with the other panel to "usr/share/applications/"
and copy with "F5" the gnome-terminal.desktop into your desktop folder.
Hit right click on the gnome-terminal on the panel of the Gnome Commander ("/home/sernemissza/desktop/gnome-commander.desktop"),
hit properties\permissions, change the owner and group to your user name,
and fill the access permissions for owner and group, and delete everything for others.
Now the 'number view' must be "770". Hit "OK".
Hit ctrl+r to refresh the panel, so you can check the changes.
Hit right click on the Gnome Terminal on desktop, then "properties",
left click on the line called "command", hit home, write "gksu ", with space.
Now the command must be "gksu gnome-terminal".
On the "Permissions" tab make sure "Allow executing file as program" is enabled.
Close.
Hint: Under the Gnome Commander unpipe everything on the view tab, except "show device list",
enable the "Show Hidden Files" on the view tab,
switch to horizontal layout for long filenames, extend the format with ".%S" on the "settings/options/format" tab.
In the Software Center type "7z" in the search bar and install "p7zip". Maybe you need the "unrar" as well.




Installation of the game:
If you want to share the game with other users, you must create these accounts (if not available yet),
and you have to make alive them, so someone must log in into these accounts.
Under a Mint: "Menu/System Tools/Users and Groups".

You will need an Internet connection.
Insert the original disc, or a perfect copy.
Remember: if these commands didn't worked, try with the Gnome Terminal,
check the "Preparation" part of this description.
Open a terminal, and give these commands:
sudo apt-get install alsa-oss
sudo apt-get install libstdc++5
#example commands for multi-users starts
sudo groupadd -g 2004 ut2004
sudo gpasswd -a sernemissza ut2004
sudo gpasswd -a alice ut2004
#example commands for multi-users ends
sudo mkdir /root/ut2004
sudo cp /media/sernemissza/UT2004_DVD/linux-installer.sh /root/ut2004
If you got an error message, check your DVD, and/or try mount it with the Nemo/Nautilus File Manager (not with the Gnome Commander).
sudo chmod 700 /root/ut2004/linux-installer.sh
sudo /root/ut2004/linux-installer.sh
Hit and hold down the "enter" until the questions.
You may hit "enter" most of the questions, it means the game will install into the system partition.
CD Key: write the letters and numbers with 5 character groups, and separate it with "-".
Example: ABCD1-EFGH2-IJKL3-MNPQ4
For the last question:
"Installation complete.
Would you like to start now? [Y/n]"
hit "n" and press enter.
You can remove the disc now, no longer required.
It is possible, you will got a sound problem, i mean no sound at all, and sound works only if you are root (admin).
So that's why we had to install the ALSA-Oss (aoss) library.
The "libstdc++5" also requires, because the system uses the 6th version.

Let solve this problem, let's start with make a safe copy from the executable (it has no extension):
sudo cp /usr/local/games/ut2004/ut2004 /usr/local/games/ut2004/ut2004.old
Now we can edit the script.
Call a terminal, and give this command:
gksu gedit /usr/local/games/ut2004/ut2004
In the text editor hit ctrl+end, and insert the "aoss " with space after the "exec".
Now this line must be changed to "#exec aoss "./ut2004-bin" $*".
Save and close.
#soundproblem
If you still have sound problems (no sound, quiet),
try reload, or remove/reinstall the sound package (purge), but first of all,
if you have a non-onboard sound card, then check the BIOS, and set the onboard sound card to disabled.
Second in the line: check the "/home/sernemissza/.asoundrc" file.
It's a hidden file (begins with a dot) so go for the "view" tab on your file manager first.
If this file is not exist, or it's blank, then open the Text Editor (gedit) and copy from here the following:
pcm.!default {
type hw
card 1
}

ctl.!default {
type hw
card 1
}
then save as ".asoundrc" into your home folder (/home/sernemissza).
You can always undo the changes by deleting this file: "rm /home/sernemissza/.asoundrc" and you have to logout or reboot.
If it's not empty, then you can try these:
You can check the sound card status: "aplay -l | grep card" and "sudo lsmod | grep snd".
Reload: "sudo alsa force-reload"
Remove: "sudo apt-get remove --purge alsa-base pulseaudio"
Install: "sudo apt-get install alsa-base pulseaudio"
A restart or log out maybe requied.

What is waiting to be resolved is the "text to speech" feature.
Well, now we have an installed game with sound.
So you want play on CEONSS. The server runs under the version 3369 with expansions.
You maybe can play without some expansion
(even it's means game crashes if you try using an expansion vehicle, such as Cicada),
but you can't without the latest patch, so let's install the expansions.



Expansions and patch:
You need the Community Bonus Pack 1 & 2,
and the Megapack including patch 3369.
Here is the last time worked downloads:
http://www.utzone.de/forum/downloads.ph ... Re-Release
http://www.utzone.de/forum/downloads.ph ... :-Volume-1
http://www.utzone.de/forum/downloads.ph ... :-Volume-2
http://www.utzone.de/forum/downloads.ph ... tch-3369.2
Well, for faster start, you may need the map pack, which use to CEONSS.
https://www.dropbox.com/s/j0vs38ssbt58l ... ck.7z?dl=0
When it's all downloaded, then you can extract these easily with a file manager.
Put all into a folder, but keep for last the Megapack, and the CBP2 before.
So the recommended order: CEONSS, CBP1, CBP2-V1, CBP2-V2, Megapack.
When it's extracted, you have to copy/move into the game folder.
You must be an admin, so i suggest use the Gnome Commander.
Example: "mkdir /home/sernemissza/ut2004" & Target folder: "usr/local/games/ut2004". Overwrite all!
Hint: Use Gnome Commander as root, single click on a package.
The archive manager inherited the root rights from the file manager,
so you can extract the package into the existing "/root/ut2004" folder.
Some packages extracted to sub folders with their names.
Enter into these and move everything into the early mentioned folder:
/root/ut2004/cbp2-volume1/* >> /root/ut2004/
/root/ut2004/cbp2-volume2/* >> /root/ut2004/
/root/ut2004/UT2004MegaPack/* >> /root/ut2004/
In this order! ^^ Replace all!
Copy or move (F5/F6) everything into the game folder:
/root/ut2004/* >> usr/local/games/ut2004 and replace all!
Well, everything is in the place, but maybe the game won't start.
So we have to change the rights for the all files and folders to this game with a terminal:
sudo chown -R sernemissza:ut2004 /usr/local/games/ut2004 && sudo chmod -R 750 /usr/local/games/ut2004
It means: chown for set the owner and group, -R works for sub folders, username:groupname - easy, then game folder follow,
with && you can give two or more commands in one line (works for copy),
chmod sets the rights, 7 for everything, 5 for read & execute for the group, 0 excludes others.
If you don't have a group, then use
"sudo chown -R sernemissza:sernemissza /usr/local/games/ut2004 && sudo chmod -R 750 /usr/local/games/ut2004" instead.
Now you can make a desktop icon:
sudo cp /usr/share/applications/ut2004.desktop /home/sernemissza/Desktop
sudo chown sernemissza:sernemissza /home/sernemissza/Desktop/ut2004.desktop
sudo chmod 770 /home/sernemissza/Desktop/ut2004.desktop
Go to the desktop, and right click on the icon of ut2004,
on the "Permissions" tab make sure "Allow executing file as program" is enabled. Close.
Now reboot your system, to take effect for the sound driver, if necessary.
#Reboot
Start the game, make your settings except the shadows(!) , and quit the game.
The game will look into the game folder for setting first (/usr/local/games/ut2004/System),
and if there none, then your home folder comes.
So if you have a setting with your name in it, maybe the other users will use that too, so i suggest move it to your home folder:
sudo mv -f /usr/local/games/ut2004/System/User.ini /home/sernemissza/.ut2004/System



Customization:
Shadows: http://ubuntuforums.org/showthread.php?t=528209
In the User.ini find "delete" and change the found line to "Delete=playvehiclehorn 1".

Magnet link:
magnet:?xt=urn:btih:XHBB7DJWS3WRZXEPLTRVZWCKMAQ6EKKX&dn=UT2004%20DVD&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a80



I have to thanks to the Unreal & Linux community (not just the Ubuntu),
Dr. Heinz, EmanReleipS, Wormbo, and more.
Image


Return to “General”



Who is online

Users browsing this forum: CommonCrawl [Bot] and 0 guests