This guide has been tested on Ubuntu and Linux Mint, it *should* also work for Debian. The only part that is really specific to another distro is the first bit. If you meet any errors, then let me know. Good luck!
So, you want to map on Linux, right? Well, there are a good few guides out there that tell you how to get gtkradiant set up and working, but there is more to it than that, since you must also get your UrT setup as well. This walk-through details everything you need.
ESSENTIAL: Some time, disk space of 2.6 GB and an internet connection.
The first and most important thing: DON'T USE YOUR CURRENT URT DIRECTORY!!!. Go here http://www.urbanterror.net/page.php?6 and download a fresh version of the zip installer for Linux.
(If you already have a current UrT directory that you havn't modified in any way, you *can* copy this across instead, just make sure the directory name is set to UrbanTerror).
Second, open up a text terminal. We need to install all of the various libs to compile everything. Enter this command (which may take some time to execute, depending on your system):
sudo apt-get install build-essential scons svn libxml2-dev libglibmm-2.4-dev libgtk2.0-dev libgtkglext1-dev libjpeg62-dev libmhash-dev
you should be in your home directory, and here we will make a new directory where everything is stored.
cd .
mkdir utmapping
cd utmapping
Now move the UrbanTerror_41_FULL.zip to this folder. Once you've done this, we're back to the command line. First we unzip all the files:
unzip UrbanTerror_41_FULL.zip
You should now have a UrbanTerrir directory. We need to unpack some pk3 files that are in this directory, so to do that:
cd UrbanTerror/q3ut4/
unzip zpak000_assets.pk3
unzip zpak000.pk3
You won't ever be needing the maps that we have in the maps folder, in fact they just add clutter, so lets remove them now:
rm ./maps/*
Now let's go back and install GtkRadiant, firstly by grabbing the code:
cd ../..
svn checkout https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk/ ./GtkRadiant
You may well get a warning about an untrusted certificate here, so just agree and let your machine download everything. Once it's finished, keep on with the downloading and get the UrT mapping info that GtkRadiant needs
cd GtkRadiant/install/installs
svn checkout https://zerowing.idsoftware.com/svn/radiant.gamepacks/UrTPack/trunk/ ./UrTPack
Now we can actually build radiant:
cd ../../
scons BUILD="release"
This part may well take some time, so go get a coffee or something. The next step is testing the compile. You see, as well as radiant, you compiled the map compiler, a very important program with the name of q3map2. On my system though, this file did not work! So let's first see wether yours does. Run this command:
./install/q3map2
If the last output line is Aborted, we need to fix this issue. Quite easy to do though:
cd ..
mkdir newradiant
cd newradiant
svn co https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk .
scons target=q3map2 config=debug
Now test the new q3map2 and check all is ok:
./install/q3map2
You should now get an error about usage, and NOT a crash... this means we are starting to get there!! lets copy over the new file and delete the directory we just created
mv ../GtkRadiant/install/q3map2 ../GtkRadiant/install/q3map2.old
cp ./install/q3map2 ../GtkRadiant/install/
cd ..
yes | rm -R newradiant/
Now we are really close! First of all, we can actually run radiant:
./GtkRadiant/install/radiant.bin
In the box that comes up, UrbanTerror (standalone) should be the only option. Click the ... next to 'Engine Directory' and make sure you choose UrbanTerror (so selction says /home/USERNAME/utmapping/UrbanTerror), then click OK. Click OK again, and now gtkRadiant should be working. Woot!!
However, would you belive we are STILL not finished. If you try to compile a map at this point, one of the shaders will fail. So exit radiant, and enter the following (gedit used as an editor, you can change this if you like):
gedit ./UrbanTerror/q3ut4/scripts/urbanterror_ui.shader
Remove completely lines 29 through to 55, from the the /* to the */. Save and exit gedit.
Ok.. just two more things!! Make the UrT binary executable:
chmod +x ./UrbanTerror/ioUrbanTerror.i386
Now go and download this very very simple test map from http://urahost.com/d...php?file=451307. Start up radiant and load this map. Now we are going to compile it. Choose
BSP -> Q3Map2: (final) BSP -meta, -vis, -light -fast -filter -super 2 -bounce 8
You can switch back to the console to see it compile. This took about 20-30 seconds on my machine. It should say something like
Writing $SOME_LOCATION/test2.bsp
Wrote 0.1 MB (105128 bytes)
3 seconds elapsed
Disconnecting
On the terminal. Now we are REALLY REALLY close.... Exit radiant for the last part. You need to copy the new map to the maps folder in Urt. Look at the first line in the above (where I wrote $SOME_LOCATION). q3map2 will have written the bsp file to wherever you had the original map file. Copy this to the map folder, by changing the value of $SOME_LOCATION:
cp $SOME_LOCATION/test2.bsp ./UrbanTerror/q3ut4/maps/
Now (drum roll please) test it all out:
cd UrbanTerror/
./ioUrbanTerror.i386 +set fs_game iourtmap +set sv_pure 0 +map test2
You should see a map like this:
NOW YOU CAN MAP AWAY IN LINUX!!!!