Xonotic Forums
Server Setup for Dummies - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Server Administration (https://forums.xonotic.org/forumdisplay.php?fid=16)
+--- Thread: Server Setup for Dummies (/showthread.php?tid=5952)



Server Setup for Dummies - litvinenkotea - 12-23-2015

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?


RE: Server Setup for Dummies - It'sMe - 12-26-2015

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.


RE: Server Setup for Dummies - litvinenkotea - 12-26-2015

Are there still any public map servers around?


RE: Server Setup for Dummies - SPLAT - 12-27-2015

http://stats.xonotic.org/games
http://stats.xonotic.org/topservers


RE: Server Setup for Dummies - It'sMe - 12-27-2015

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.)


RE: Server Setup for Dummies - Freddy - 12-27-2015

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


RE: Server Setup for Dummies - BuddyFriendGuy - 09-18-2018

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.


RE: Server Setup for Dummies - tehjester78 - 12-08-2018

(12-26-2015, 11:39 AM)It\sMe Wrote: 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.
 I can get the maps to show up in the vote but they have no image and when you go to the map to play its all black. i just cant find a step by step for this. I'm using Ubuntu server 16.04.5 and latest xonotic.zip from this site.
So to be clear, I need a copy of the map.pk3 file in a webserver dir and also my ~/.xonotic/data dir as well? After i have the map files in place i can type 'sv_curl_defaulturl http://my.server.com/xon/map/filepath' in my servers console? thats if all the maps are in one dir.
I love the old quake3 and UT maps and would like to host them on my dedicated server.
Thanks!!
*edit*
I did figure it out. if you have a webserver running, make a folder for the maps in it. copy map.pk3's into the web dir and the xonotic/data dir. in the xonotic server.cfg find the line 'sv_curl_defaulturl http://your/path/here' <==path to the maps dir
I restarted mine and it worked. dont know if the restart is required.