Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Server Setup for Dummies

#1
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?
Reply

#2
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.
Reply

#3
Are there still any public map servers around?
Reply

#4
http://stats.xonotic.org/games
http://stats.xonotic.org/topservers
[Image: 38443.png]
Reply

#5
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.)
Reply

#6
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
Reply

#7
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.
Reply

#8
(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. 
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  [SOLVED] Opensuse Leap 15.1 and Server.cfg ldegroot 3 245 08-01-2019, 02:52 PM
Last Post: ldegroot
  LAN server console commands dbl 1 458 06-13-2019, 04:55 AM
Last Post: martin-t
  How to change server cfg on modified server veecho 4 703 04-24-2019, 08:15 PM
Last Post: BuddyFriendGuy
  Server error "Weapon stats writing failed: -404" FlufyBuny 1 358 04-13-2019, 04:36 AM
Last Post: It'sMe
  Dedicated server setup Rec0d 5 688 04-03-2019, 02:00 PM
Last Post: Rec0d
  South American Dedicated Server Professor 3 708 03-03-2019, 07:02 PM
Last Post: end user
Information [TUTORIAL] Xonotic Server behind OPNSense (and pfSense) gurbe 0 487 01-27-2019, 09:07 AM
Last Post: gurbe
  Xonotic server running behind UDP proxy not working doombringeroperator 2 690 01-07-2019, 02:23 PM
Last Post: doombringeroperator
  [NEED HELP] Server show on the browser list, but I can't connect! Professor 1 701 12-19-2018, 11:39 AM
Last Post: Professor
  Local LAN Xonotic game server player Stats animatedjay 3 1,180 11-23-2018, 12:38 AM
Last Post: BuddyFriendGuy

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-