I'm trying to run a LAN server, and I want to use a selection of favorite maps that aren't included with the game. Right now, the other players get black maps. So I need a way to get pk3 files to the other players (and they don't want to download all the maps at once because that would be a few GB). I've done a little research but it doesn't make complete sense. Can the Xonotic server transfer the files from my maps directory, or do I need to run yet another server just for the maps?
Can I set up my server to connect to an existing map server? What server would that be and which variable(s) do I set to link to this server (mapdl.xonotic.eu/samual apparently existed in the past but it is no more)? Can I choose individual maps according to what I think is conducive to small deathmatch competitions?
The Xonotic server itself does not distribute the pk3 files to the connected clients.
You need to setup some kind of HTTP or FTP server.
The full
README can be found here, which is
Xonotic/Docs/mapdwonload.txt in the extracted game folder.
There are two options:
1)
Use the cvar
sv_curl_defaulturl for the default download URL, like:
Code:
sv_curl_defaulturl http://example.com/xonotic/pk3/
The URL, where the clients download the map, for example is
http://example.com/xonotic/pk3/mapname.pk3
2) The more adjustable option is using
curl_urls.txt, like
Code:
map1.pk3 http://example1.com/xonotic/pk3/
map2.pk3 http://example.2com/xonotic/files/
* http://default.com/pk3/
Place the
curl_urls.txt in the same folder (
~/.xonotic/data/) as your server.cfg.
It offers the option to use different URL paths for specific maps and/or patterns.
Are there still any public map servers around?
There are many HTTP servers, that offer map downloads.
But I think its not the best to post them here.
If the next one searches for a map download server and everyone ends up in this thread, it might result in a lot of traffic for this HTTP server.
So you can easily check where you download your pk3 files when playing on a server. Just check console output.
(Enable private messaging and I can tell you some.)
If you have python installed you can use it to create a http download server. Just run
Code:
python -m SimpleHTTPServer
in a folder with all maps. The http server will be started on port 8000
Just to add a new public server info to this thread since this is the first Google hit.
Here's my curl_urls.txt as an example:
Code:
data* -
labyrinth_v2.pk3 http://1.2.3.4/xonotic/maps_all/
float_v1_3.pk3 http://1.2.3.4/xonotic/maps_all/
antares-dm1_b2.pk3 http://1.2.3.4/xonotic/maps_all/
antares-ctf1_b2.pk3 http://1.2.3.4/xonotic/maps_all/
quark_v4.pk3 http://1.2.3.4/xonotic/maps_all/
kolossus_b3.pk3 http://1.2.3.4/xonotic/maps_all/
metro_r2.pk3 http://1.2.3.4/xonotic/maps_all/
csprogs-xonotic-v0.8.2-2141-g95888e346.pk3 http://1.2.3.4/xonotic/misc/
* http://dl.xonotic.co/
1.2.3.4 should be your domain name or ip that serves the map files. Those are the maps I can't find in the fall back server, dl.xonotic.co, so I'm hosting them myself.