Monday, July 26, 2010

Urban Terror

I don't think that I have ever written a review on the fascinatingly addictive game, Urban Terror; and, although I may write one in the future, that is not the purpose of this post.

Yesterday, while trying to hookup multiple UT clients to a single public server, I discovered that, by default, all clients are set to use the same port. This setup results in a situation where no two clients - operating behind the same router - can connect to a public server at the same time, unless the traffic is routed accordingly. Some routers are setup to handle this traffic automatically, but if your particular router is not setup in this manner, it can cause a headache. This particular headache caused me no little grief, and I spent much time on google searching for a viable solution.

I finally discovered - in UT's forums, no less - that there is a config file that runs every time the UT client is run. In that file, it is possible to manually set the port through which traffic will be routed to and from that client. To configure your client accordingly, your must locate UT's autoexec.cfg file.

The autoexec.cfg file is located in your UrbanTerrorq3ut4 folder. Open autoexec.cfg file with notepad, if you're in windows; or, if you're in linux, use your favorite text editor...whether it be gedit, nano, jedit, etc...

Here are the default contents of said file:

//In this file you can do settings that will be executed everytime Urban Terror is started. It will not get overwritten.
//Lines starting with // are ignored.
//Example1: exec yourconfig.cfg
//Example2: set cg_fov "110"
//Example3: bind x ut_weaptoggle knife


Append the following to said autoexec.cfg file.

seta net_port "296x"


Where x is a positive integer between 0 and 9. Bear in mind, that if you only have two computers, you should only have to change this file on one client. If you have more than two clients, than you will need to change the file on all but one of the clients.

Also, if your UT install is located in the program files folder of either Vista or Windows 7, you will need to either edit this as an administrator, or simply copy it to your My Documents folder, edit it there, and then copy it back to the UrbanTerrorq3ut4 folder.

There! Now you should be able to get all your UT clients onto the same public server!

Frag on!

Ch@d

No comments:

Post a Comment