7 Should already work without configuration. You can however use the following
8 cvars for further tuning (see xonotic.org/tools/cacs for more up-to-date information):
10 cl_curl_enabled download support enabled (master switch)
11 cl_curl_maxdownloads maximum number of downloads at once
12 cl_curl_maxspeed maximum total speed in KiB/s
14 Downloaded packages end up in |Xonotic/data/dlcache/| or
15 |~/.xonotic/data/dlcache/| and are only used till you exit Xonotic.
16 If you want to play them localy or use them to setup a server of your
17 own you can "accept" the packages by moving it one level up - right
18 next to your config.cfg.
20 You should regularily clean up your cache to save space and make the maps
21 you really want available from the menu.
26 First of all, you need a HTTP or FTP server to host your PK3s. You can either
27 use some web space provider, or set up your own. For this, use any FTP or HTTP
28 server software you want (HTTP: lighttpd, Apache, thttpd; FTP: Filezilla,
29 vsftpd). HTTP is to be preferred because it works better for firewalled
32 On the server, you need to set up where to download the PK3s of the maps you
33 are running. You can either use the cvar
35 sv_curl_defaulturl default download URL
37 to set it to some site, or put a file named "curl_urls.txt" in the data
38 directory of the following format:
45 where always the first wildcard pattern match is taken.
48 strale* http://stralemaps.invalid/
49 * http://all.the.other.stuff.invalid/id/here.php?pak=
50 foo* http://wont.get.here.invalid/
52 The pk3 name will be appended to the URL by DarkPlaces. Note that you NEED to
53 append a trailing slash if you refer to a directory. If you specify a "-" as
54 URL, the package will not be offered for download.
57 INFORMATION FOR MIRROR/MAP SERVER ADMINS:
59 The Referer is always set to dp://serverhost:serverport/, the User-Agent
60 always starts with "Xonotic". Look at this sample log line:
62 141.2.16.3 - - [06/Jun/2006:19:43:14 +0000] "GET /~polzer/temp/nexmaps.php?filename=o-fun.pk3 HTTP/1.1" 302 - "dp://141.2.16.3:26000/" "Xonotic Linux 21:26:17 Jun 6 2006"
65 If you want to set up a redirection service, here is a sample PHP code for you
70 function findmap($filename)
72 # insert your database query or whatever you want here
73 if($filename == "foo.pk3")
74 return "http://barserver.invalid/foo.pk3";
78 function bailout($code, $title, $message)
80 header("HTTP/1.1 $code $title");
81 echo "<html><title>$title</title><h1>$title</h1>$message</html>";
85 $filename = $_GET['filename'];
87 $useragent = getenv("HTTP_USER_AGENT");
88 if(strpos($useragent, "Xonotic ") !== 0)
89 bailout(403, "Forbidden", "You're not a Xonotic client.");
91 $url = findmap($filename);
93 bailout(404, "Not Found", "Well... try another file name?");
95 header("HTTP/1.1 302 Moved Temporarily");
96 header("Location: $url");