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
Question [NEED HELP] How to setup a LAN ? Sospi 1 504 02-07-2024, 08:28 PM
Last Post: [CISN] Neigdoig
  I can't see my listen server on server list fnmain 1 673 10-07-2023, 07:28 AM
Last Post: Grimnack
  Server not visible on the server browser for others or me DankoLord 1 1,820 02-21-2023, 08:02 PM
Last Post: ballerburg9005
  BaI server | South American Xonotic server (located in Chile) z411 0 2,755 01-02-2022, 11:36 PM
Last Post: z411
  Full server tutorial start-2-finish with maps & config from live server xonotic.us.to ballerburg9005 0 8,051 09-03-2021, 10:21 AM
Last Post: ballerburg9005
Question [NEED HELP] Server uses 40% CPU whereas Nexuiz server runs with max 10% e-pig 6 4,966 08-19-2020, 10:17 PM
Last Post: ballerburg9005
  [NEED HELP] Server dont appear in server browser abslimit 0 2,578 03-15-2020, 04:13 AM
Last Post: abslimit
  How to change server cfg on modified server veecho 4 4,319 04-24-2019, 08:15 PM
Last Post: BuddyFriendGuy
  Dedicated server setup Rec0d 5 8,207 04-03-2019, 02:00 PM
Last Post: Rec0d
  how to setup a xonotic linux server on CentOS 7.5 DrunkenMaster 0 3,369 05-27-2018, 03:04 PM
Last Post: DrunkenMaster

Forum Jump:


Users browsing this thread:
1 Guest(s)

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