Urban Terror Wiki
Advertisement
Autodownload

Auto-downloads only work on ioUrbanTerror clients of at least version 1.35urt (check your console to see the version), that have auto-download enabled (cl_autodownload 1). It works on any server.

The server sets a URL of the location of the maps using: sets sv_dlURL "mysite.com" (keep the URL as short as possible). When a client doesn't have a map that's being played, it will try to download it from that URL. For example, the map that is being played is ut4_example.bsp, the sv_dlURL is mysite.com and the client doesn't have the map. It will then try to download it from: http://mysite.com/q3ut4/ut4_example.pk3. So when your sv_dlURL is mysite.com, make sure the actual pk3's are in http://mysite.com/q3ut4/.

Mappers should make sure they never release 2 versions of a map with the same name. If you have a beta, call it ut4_mapname_beta1, ut4_mapname_beta2 etc. The .bsp always has to be the same name as the .pk3. Don't put multiple .bsp's in one .pk3 and don't use a small pk3 to fix 1 texture of a previous pk3.

In 4.1, the default sv_dlURL' is urbanterror.info. There's a script running on urbanterror.info that will spread the downloads over multiple mirrors. Your client will need to be at least of version 1.35urt (supports redirects) and send a correct referrer (ioQ3://x.x.x.x) for the script to accept the request. Some security software blocks the referrer and you will get a 403 error. Turn off that security.

In order to help prevent direct downloading (so that the files are accessible from only within UrT for Autodownload purposes ) you can use user agent rules on your webserver. As an example we have the .htaccess file for the apache2 webserver.

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} !^ioq3 
RewriteRule ^.* -

See also, Server Admin

This article is based on a document originally from urbanterror.info(view)

Advertisement