http://www.urbanterror.info/support/179-autodownload/
 Login | Register 
Advertisement
printer


Server Admin

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 that has:
sv_allowDownload set to 1,
a valid sv_dlURL argument.

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.pk3, 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/.

In 4.x, 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 [NC]
RewriteRule ^.* - [F,L]
level_none By FrozenSand  -  Friday, 10 June 2011  -  viewed by 2410 members and 37422 visitors

bullet_disabledSponsored link
www.urbanterror.info

Copyright © 1999-2017 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942