Xonotic Forums
[NEED HELP] Helps for a right way to create a xon server and/or create concise guides - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Help & Troubleshooting (https://forums.xonotic.org/forumdisplay.php?fid=4)
+--- Thread: [NEED HELP] Helps for a right way to create a xon server and/or create concise guides (/showthread.php?tid=8533)



Helps for a right way to create a xon server and/or create concise guides - derrant - 03-29-2021

Hey guys I have follow the tutorials for creating a dedicated server for xon
  • I moved the shell script in the xon main directory;
  • I have done the port forwarding;
  • I have tried to host a map with SimpleHttp python package
  • I have edited the premade server.conf file
  • I have moved the map, file and else in the right place (the first "data" directory in .xonotic in a current debian 10 distro, and in the past, ubuntu,  linux mint, or manjaro )
But finally, every time, the map is black with just players and object visible.
A map downloading issue, yep i read (during download file happen that the percent text to download the map there are "???" instead of the real package weight info, and the downloaded map is 0 kb, classic) ... So my request is know a way to finally run a server with custom maps, but also my idea is of ask an help of every skilled xon member to create an efficient guide for every main topic, a clear, concise and complete guide for example for these major and crucial topics:
  • Step by step how to run a dedicated server and made it visible in public list online;
  • Step by step how to correctly download and setup Netradiant with the texture pack used in xon (actually i made a video about this);
  • Step by step how to insert custom music inside a map;
  • Step by step how to set bots movements around the map;
  • Step by step how to create new 3d models for player;
  • Step by step how to insert blender or another 3d editor object in custom maps with texture;
  • Step by step how to create custom textures and used them on your maps;
  • Step by step how to configure and correctly use the shadow script  used for the engine for the textures;
  • Step by step how to use particular classes or functions in the map made in netradiant (like teleporter, jumpad, object animation, doors, powerups, minor effects like smoke or fire in the torches).
So if we made a clear guide once and for all these subjectes, we (I can) make, videotutorials for the beginner players, and keep it as point of reference on youtube on an official xon channel (if it doesn't exist yet).. A video guide is better than thousand pieces and messy part of documentation outside and inside the forum IMHO.

So what are yours opinions?


RE: Helps for a right way to create a xon server and/or create concise guides - SpiKe - 03-29-2021

Hello derrant,

There are a few guides on the official Xonotic wiki: https://gitlab.com/xonotic/xonotic/-/wikis/home
Just posting it here in case you weren't aware of it and had other sources of documentation Smile

Some parts of the wiki may still be incomplete though, but it's continuously improving.

As for your map downloading issue, did you set up sv_curl_defaulturl ? And did you also set up the port forwarding for the HTTP server?
You can find more documentation about map downloading here: https://gitlab.com/xonotic/xonotic/-/wikis/Automatic-map-downloads


RE: Helps for a right way to create a xon server and/or create concise guides - derrant - 03-29-2021

(03-29-2021, 03:48 PM)SpiKe Wrote: Hello derrant,

There are a few guides on the official Xonotic wiki: https://gitlab.com/xonotic/xonotic/-/wikis/home
Just posting it here in case you weren't aware of it and had other sources of documentation Smile

Some parts of the wiki may still be incomplete though, but it's continuously improving.

As for your map downloading issue, did you set up sv_curl_defaulturl ? And did you also set up the port forwarding for the HTTP server?
You can find more documentation about map downloading here: https://gitlab.com/xonotic/xonotic/-/wikis/Automatic-map-downloads
Thanks for reply, yes i have edited the server.cf file, the link of the http hosting should be inside brackets double quotes?
How i should do to correctly use simplehttp package?
  • I open the terminal, i move to the folder that contain the package.pk3
  • I write $ python -m SimpleHTTPServer
  • then i open the link of my ip:8000
  • I copy the link of the download of the .pk3 package and I insert it in bracket after the sv_curl_defaulturl code, that i have uncommented
is this a right way to do ?

edit: not bracket but double quotes
however, I saw the git guide, I read posts with similar subjects, I read the do inside the game folder...


RE: Helps for a right way to create a xon server and/or create concise guides - SpiKe - 03-29-2021

Yes, with sv_curl_defaulturl you should use double quotes:
Code:
sv_curl_defaulturl "http://your_map_repository_url_here/"
Don't copy a direct link to your specific pk3, but rather the link to the directory that contains it (and possibly your other maps).

If you prefer to use the curl_urls.txt method, using double quotes isn't needed (see https://gitlab.com/xonotic/xonotic/-/wikis/Automatic-map-downloads)

I'm not familiar with SimpleHTTPServer so I can't help with parts that are specific to this HTTP server.


RE: Helps for a right way to create a xon server and/or create concise guides - derrant - 03-29-2021

(03-29-2021, 04:20 PM)SpiKe Wrote: Yes, with sv_curl_defaulturl you should use double quotes:
Code:
sv_curl_defaulturl "http://your_map_repository_url_here/"
Don't copy a direct link to your specific pk3, but rather the link to the directory that contains it (and possibly your other maps).

If you prefer to use the curl_urls.txt method, using double quotes isn't needed (see https://gitlab.com/xonotic/xonotic/-/wikis/Automatic-map-downloads)

I'm not familiar with SimpleHTTPServer so I can't help with that, sorry (
HIIIII Magic! I think that the problem was to set the full link with the .pk3 and not just the directory, in other words, to use http:bla.bla.bla/folder/map.pk3 instead of http:bla.bla.bla/folder ahhhhh finally i tried it 3 times , deleting first the map in dlcache directory, and now it can download the pk3 from the simpleHttpsserver link. Thanks for the help, finally it works!


RE: Helps for a right way to create a xon server and/or create concise guides - SpiKe - 03-29-2021

Nice, enjoy your server, glad that I could help! ^^


RE: Helps for a right way to create a xon server and/or create concise guides - Antibody - 03-31-2021

derrant, please note that SimpleHTTPServer shouldn't be used for anything other than testing. It's not a production grade server. 

Also if you're wanting to use a supported version there's the http.server module in the standard library in Python 3.
Code:
python3 -m http.server 8080