Call of Duty: United Offensive Linux Server and Other Goodies

I’ve been planning for a long time to write a guide about one of my favorite games, Call of Duty United Offensive. For me, this was the best game back in the day alongside MoHAA, because IT HAD TANKS!
We played the hell out of it on Kursk, Carentan, Fox, and the Bas maps.
I feel like because of all the fun I had, I owe it to the game to not let it disappear into obscurity, so below I’ll describe how to set up a Linux dedicated server, how to configure 1920x1080p resolution, which ports need to be opened, and maybe I’ll even have time to cover mods.
Installing a Call of Duty: United Offensive dedicated server on Ubuntu 12.04:
You need a clean CoD + United Offensive installation without mods. Zip up the entire folder, upload it to the server machine, and extract it. (For the lazy ones, here’s the version I prepared, which you should ONLY DOWNLOAD IF YOU OWN A LEGITIMATE COPY OF THE GAME!)
wget http://dl.zoliben.com/egyeb/cod_uo.zip unzip cod_uo.zip
Switch to the Call of Duty folder:
cd "Call of Duty"
IMPORTANT!!!
You need to rename the ‘Main’ folder to ‘main’:
mv Main main
Then download the server files into the game folder:
wget http://dl.zoliben.com/egyeb/serverfiles.zip
Then extract the contents of the zip file:
unzip serverfiles.zip
Then make the game launcher executable:
chmod +x coduo_lnxded
You also need a startup script:
nano start.sh
Paste this in, editing it to your needs:
./coduo_lnxded +set dedicated 2 +set net_ip yourserverip +set net_port 28960 +set sv_maxclients 24 +set sv_punkbuster 1 +exec dedicated.cfg +map mp_kursk +map_rotate
Save it, then make the startup script executable:
chmod +x start.sh
Then start the server to see if it works:
./start.sh
If it throws an error about not finding the „libstdc++.so.5” file, then download it from here, and copy its contents to the /usr/lib folder.
If it starts now, check if you can connect to it from within the game:
In the game, press the 0 (zero) key to bring up the console, and type this:
connect yourserverip:28960
If you can connect, then everything is fine.
Now you just need to configure the server, which you can do by editing and uploading the configuration file downloaded from here to the Call of Duty/uo/ folder.
Setting up FullHD:
You need to open the Call of Duty/uo/uoconfig.cfg file, find the following lines and change them:
- seta r_customwidth „XXXX” –> seta r_customwidth „1920”
- seta r_customheight „XXXX” –> seta r_customheight „1080”
- seta cg_fov „XX” –> seta cg_fov „96”
- seta r_mode „X” –> seta r_mode „-1”
- seta com_introplayed „0” –> seta com_introplayed „1”
Once you’re done, save it, and DO NOT change the resolution from within the game, as it will overwrite the changes you just made.
If you want to host a server from your home computer, you need to allow the following ports through your firewall and forward them on your router:
TCP: 28960
UDP: 20500; 20510; 20600; 20610; 28960
If you couldn’t get the server working, leave a comment and I’ll try to help. If nothing works or you don’t want to mess with it anymore, feel free to use my server:
81.2.239.19:28960