Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Leo-PL/aef1a6fdf3f4fa95a7606302523ad5bf to your computer and use it in GitHub Desktop.
Save Leo-PL/aef1a6fdf3f4fa95a7606302523ad5bf to your computer and use it in GitHub Desktop.
Install Unreal Tournament GOTY on Debian Jessie 64bits

Unreal Tournament on Linux

Dependencies (only for installer)

├── amd64
│   ├── libglib1.2ldbl_1.2.10-19_amd64.deb
│   └── libgtk1.2_1.2.10-18.1_amd64.deb
├── i386
│   ├── libglib1.2ldbl_1.2.10-19build1_i386.deb
│   └── libgtk1.2_1.2.10-18.1build2_i386.deb
└── libgtk1.2-common_1.2.10-18.1build2_all.deb

Prerequisites

Mount UT Iso (or put your disc into a cdrom drive if you still have one)

# mount -o loop ut.iso /media/cdrom0

Installation

First, get the correct install script from here http://liflg.org/?catid=6&gameid=51

$ chmod 755 unreal.tournament_436-multilanguage.run
# sh unreal.tournament_436-multilanguage.run

CTRL+D (exit graphical install) to continue installation through CLI

UT is now installed and lives in two directories, by default :

  • System directory : /usr/local/games/ut
  • User directory : ~/.loki/ut

We have to decompress maps in our user directory:

$ mkdir -p ~/.loki/ut/Maps
$ for i in /usr/local/games/ut/Maps/*uz ; do ucc decompress "$i" ; done
$ mv ~/.loki/ut/System/*.unr ~/.loki/ut/Maps

Now launch UT from command-line:

$ ut

Unpack UT Bonus Pack (UMOD)

If you have GOTY version, only UTBonusPack4 is needed, the others are already installed

wget http://www.deepsky.com/~misaka/scripts/umodunpack.pl
chmod +x umodunpack.pl
./umodunpack.pl -u UTBonusPack4.umod -b ~/.loki/ut

Troubleshooting

Bad substitution

$ ut
/usr/local/bin/ut: 29: /usr/local/bin/ut: Bad substitution

Bad substition ? Let's fixed that by replacing #!/bin/sh by #!/bin/bash into /usr/local/games/ut/ut

No sound

$ vim ~/.loki/System/UnrealTournament.ini

Replace AudioDevice=ALAudio.ALAudioSubsystem with AudioDevice=Audio.GenericAudioSubsystem

Then run the game with padsp:

$ padsp ut

If you are using 64-bit system, you might still get no sound. The startup may show the following error when using padsp:

ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsedsp.so' from LD_PRELOAD cannot be preloaded: ignored.

To solve this, install the 32-bit version if not already installed:

# apt-get install libpulsedsp:i386
# vim /usr/bin/padsp

Then change LD_PRELOAD directory to point to the 32 bits version :

[...]
if [ x"$LD_PRELOAD" = x ] ; then
   #LD_PRELOAD="/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsedsp.so"
   LD_PRELOAD="/usr/lib/i386-linux-gnu/pulseaudio/libpulsedsp.so"
else
   #LD_PRELOAD="$LD_PRELOAD /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsedsp.so"
   LD_PRELOAD="$LD_PRELOAD /usr/lib/i386-linux-gnu/pulseaudio/libpulsedsp.so"
fi
[...]

Finally note that some online maps downloaded may crash during the loading. the workaround is to launch Unreal Tournament without padsp for these maps. You will got no sound but you'll can play :)

Documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment