#######################################
# Unreal Tournament Linux + 451 Patch #
#	 Bundled by KayX291	      #
#######################################

###################
##     ABOUT	 ##
###################

This is a bundle of Loki Software's port of Unreal Tournament with the unofficial 451 patch.

I have used Flibitijibibo's SteamUT Linux Install files as a base and later applied the mentioned patch,
the reason for creating it is due to the disappearance of this similar bundle that was made before but 
disappeared which I will explain later.

For hosting a server please use this guide: http://wiki.unrealadmin.org/Server_Install_linux

############################
##	INSTALLATION      ##
############################

Basically all you have to do is move these files into the Unreal Tournament's folder and replace everything.

Once it's done, run either "ut" or "ut-fps" script to play the game.

The configuration files are located in .loki/ut/System in your Home folder.

WARNING! By default it uses Loki Software's OpenAL, which relies on Open Sound System (OSS),
but since it's been replaced by ALSA, perform one of these actions.


1. Install one of these OSS emulators

a) If using PulseAudio you need padsp package and run the game with "padsp" command.
b) If using ALSA you need alsa-oss package, load the snd-seq-oss, snd-pcm-oss and snd-mixer-oss modules and run the game with "aoss -32" command.
c) Install osspd package and enable/start it's service. (Most recommended)

In most Linux distributions or even Debian-based ones rely on Systemd for managing the services via systemctl. To enable and start osspd type these commands:
|=============================|
| sudo systemctl enable osspd |
| sudo systemctl start osspd  |
|=============================|

2. Replace "AudioDevice=ALAudio.ALAudioSubsystem" with "AudioDevice=Audio.GenericAudioSubsystem" in UnrealTournament.ini located in ~/.loki/ut/System.

The Goodies folder contains some additional stuff that are optional.

######################
##	ISSUE(S)    ##
######################

=====The Game Runs Too Fast=====
Due to the way the game has been ported, the game may run too fast due to the CPUs above Pentium 4.
As a minor fix, i've created the "ut-fps" script. If this issue occurs, use that script instead.

Another alternative is the use of CPU frequency management such as cpufrequtils or cpupower

You may also try loading modules for additional CPU frequency profiles with "modprobe <name of .ko.gz file>" as root/superuser/sudo.
You can list available ones with "ls /usr/lib/modules/$(uname -r)/kernel/drivers/cpufreq/" and once loaded, run the "ut" script.

CPUPower can make use of these profiles, then again the kernel or the game might do that for you.

=====Game looks ugly for me=====
This may look ugly due to the fact the port uses SDLGL by default, it's possible to change it into OpenGL.

Open UnrealTournament.ini located in ~/.loki/ut/System and replace:

|==================================================|
| GameRenderDevice=SDLGLDrv.SDLGLRenderDevice	   |
| WindowedRenderDevice=SDLGLDrv.SDLGLRenderDevice  |
| RenderDevice=SDLGLDrv.SDLGLRenderDevice	   |
|==================================================|

with:

|===================================================|
| GameRenderDevice=OpenGLDrv.OpenGLRenderDevice	    |
| WindowedRenderDevice=OpenGLDrv.OpenGLRenderDevice |
| RenderDevice=OpenGLDrv.OpenGLRenderDevice	    |
|===================================================|

Under [OpenGLDrv.OpenGLRenderDevice] you can change the graphics settings, same goes for [SDLGLDrv.SDLGLRenderDevice] section.

=====The Game Won'T Run=====
Use the command "linux32" at the beginning.

=====Sound Quality is low=====

Edit UnrealTournament.ini located in ~/.loki/ut/System/

Depending on what AudioDevice you are using replace:

|====================|
| OutputRate=22050Hz |
| Channels=16	     |
|====================|

with

|====================|
| OutputRate=44100Hz |
| Channels=32	     |
|====================|

In either [AudioDevice=ALAudio.ALAudioSubsystem] or [AudioDevice=Audio.GenericAudioSubsystem] section.

#######################
##	SUMMARY	     ##
#######################

Bundle created by KayX291.
Linux Port of Unreal Tournament was created by Loki Software.
Unreal Tournament franchise was created by Epic Games
UT Linux Steam Installer Pack was created by Flibitijibibo.
Testers of this pack: Klumpen, Hexley, KayX291

###########################
#	STORY TIME!	  #
###########################

Alright, time for me to tell the story why I've made this.

I have encountered one nice little package which is similar to this and even provided help with the speed issue.
Decided to include this guide into the PCGamingWiki article about it. Later on I have learned that the creator removed the guide,
as a "strike", as the store which he published the guide in the forum made a statement where the client for Linux platform is on
lower priority. Because of that action, he ruined the chance to get the best version of it for everyone.

But this is not the only thing i'd like to talk about. I'd like to talk about the overall elitism and and toxicity of the Linux gaming community.

Now, lemme say this. Linux as a gaming platform is having a veeery slow progress in terms of releasing games to it and it's not because
of the fact that most developers don't know about the programs or APIs which the platform uses, but because of some of the arrogant pricks of this community.
If someone made a port of the game you like for the Linux and doesn't run well, don't get too critic about it, instead why won't you just tell em that
you appreciate the effort and point out the issues you've found in POLITE manner.

That way the developer will feel better and keep on improving it or even better, encourage him/her to make more games/ports for Linux!

If you keep bashing, insulting and too critic about an issue against the developer, ya pretty much discourage him to make that port, or worse
no updates or further releases for the platform that you like. See The Stanley Parable on Linux story. Game got ported to Linux and the 1st thing
the developer got were insults and guess what happened?

The port BARELY reached the state that it won't get a Linux release.

Same thing happens with making petitions, requests to the developer to port their games on Linux. If it gets accepted, awesome!

If it gets rejected, don't throw your damn tantrums around when responding to it like that one guy who made a petition to Blizzard to port their games on Linux.
Instead, you could try to convince em why they should, some of em would use some sort of survey (Like where DICE used *cough*Steam Survey*cough* as a reason) as a judgement, but if you are smart with your choice of words and actions (while making it professional and polite) they may change their mind now or later in the future.

The final thing i wanna to say is that if some store offers games on Linux, but using a wrapper to do it such as WINE? Don't go around saying things such as:
"This is nothing but a waste of free space!" or some other stuff which discourages em to make more. These are for people who are new to the system, granted some of em
may be made by the publishers and may have some issues (See TopWare Interactive), but anyway. If you made that on your own? Good for you, but mind the others.

I ain't gonna make a tl;dr of this and that's all I have to say about this.
