How to install an Urban Terror server with bots on FreeBSD
This will install an Urban Terror server running under the user urban with 4 bots enabled on the server.
First of all we install the binaries, I prefer installing them from the ports, in case you don't have root access you might want to manually download from http://www.urbanterror.info. The configuration is quite the same so you should be able to install on your own.
For the port install use:
cd /usr/ports/games/iourbanterror/ make WITHOUT_CLIENT=1 \ WITHOUT_GAMELIBS=1 \ WITH_DEDICATED=1 \ WITHOUT_CURL=1 \ WITHOUT_OPENAL=1 \ WITHOUT_MUMBLE=1 \ WITHOUT_VORBIS=1 \ WITH_TEAMARENA=1 install clean
Lets get some coffee, cause this installation might take a while... The installation requires downloading UrbanTerror411.zip from one of the mirrors which is around 1GB in size
After installing you need to add a user to run the server.
pw user add urban -mI don't set a password for this account simply because I mostly su into it
So...
su - urbanFirst create the required directories
mkdir -p .ioUrbanTerror/q3ut4 cd .ioUrbanTerror/q3ut4
In this directory you need to add the configuration files: server.cfg / mapcycle.txt / bots.cfg
server.cfg
sets "Admin" "Marius van Witzenburg" sets "Email" "marius@kitara.nl" set rconpassword "This_Is_Your_RCON_Password" set g_gametype "0" set sv_hostname "Fire in the hole!" set g_respawndelay "1" set bot_enable "1" set g_teamautojoin "1" set g_maxteamkills "5" set g_respawnprotection "3" // (restart/map/nextmap/cyclemap) set g_allowVote "536870926" set g_log "" set g_logroll "0" set fraglimit "50" set timelimit "15" // Startup map map ut4_turnpike // Add bots exec bots.cfg
In case you want to change this configuration, check out: http://www.urbanterror.info/docs/180-/
mapcycle.txt
ut4_turnpike ut4_abbey ut4_prague ut4_mandolin ut4_algiers ut4_austria ut4_sanc ut4_riyadh ut4_thingley
I limited the map list to the maps that work fine with bots.
bots.cfg
kick allbots addbot boa 4 blue 25 "Bot 1" addbot chicken 4 blue 25 "Bot 2" addbot cockroach 4 blue 25 "Bot 3" addbot goose 5 blue 25 "Bot 4"
You can start the server by manual but I would advice you do run the server with this script in tmux or in GNU Screen.
start.sh
#!/bin/bash # Dedicated # 1 don't report # 2 report to master servers myExit() { kill $$ exit $? } trap myExit SIGINT while true do /usr/local/bin/ioUrTded \ +set fs_game q3ut4 \ +set dedicated 1 \ +set net_ip 192.168.1.5 \ +set net_port 27960 \ +set com_hunkmegs 128 \ +exec server.cfg echo "server crashed on `date`" > /usr/home/urban/last_crash.txt done
Run it by doing
chmod 700 start.sh ./start.sh
In case you want this server to be reachable for the public, don't forget to set dedicated to 2.
Good luck! If you have any questions, let me know!




