Sorry I just saw your post now. I thought somebody else would be able to help you. Let me try to answer your questions here. Hopefully it's not too late.
(05-08-2020, 07:43 PM)atomic.kidd Wrote: Q: will this correct maps I've copied over to the server when loaded per game type to play only to experience some maps players experience lights out - everything dark black except
weapons and ammo icons for the pickup - Map textures are gone - how to really address this.
A blank map is most likely due to the client not having the correct map file.
When entering a game, the server tells the client which map file is needed, if the client has it, great, but if not, the client relies on the server to provide the URL for th client to download the map file. This is assuming the URL works. If the client fails to get the file from the URL (error 403, 404, 500, etc.), it will result a zero-length *.pk3 file. This causes the famous blank map problem.
To make it worse, if the user does not delete this zero-length file, when the user goes to another server, this zero-length file will block any new download.
For myself, I have a little script that I run before each game to find all zero-length files in dlcache/ and delete them. However, I haven't got the time to make it work for all platoforms so it's not in the official code base yet.
Code:
find $user_dir/data/dlcache -type f -size 0 -exec rm -f {} \;
(05-08-2020, 07:43 PM)atomic.kidd Wrote: Q: if parts of maps are not correct - does the curl_urls.txt point to a map resource to where - All the Right info is then downloaded to Server and Connecting player clients so they get the right data fill to play maps in full life. (this is the grease info needed for this curl_urls.txt file yes/no? )
one other eg: hard to really find step methods for setting Mods - ie: good one is MairoSMB mod - seems there's like 4 or 6 "Master.gz" files to all this mod - be nice to know how the right way to unzip/tar xvf these and set to server up these files and make playable. Documentation for some of these is hard to follow to find to do.
Versioning is a long lasting problem in our ecosystem. We rely on mappers and re-mappers to name different versions of their works differently. If they don't, then we have the collision problem.
Which server are you referring to? Perhaps the server admin can work with @Mario about this?
(05-08-2020, 07:43 PM)atomic.kidd Wrote: need little more info maybe correct info as to - correct Contents for ~/Games/Xonotic/data/curl_urls.txt file what really should it contain
...
Q: - does one serving Xonotic Server require to run along side a simple HTTP server - see info per some FTP server etc - how to use be more to need as well.
all helps thx for the some leads to correcting some of these issues (we're closer but not fully operating right yet!). Reading around the post here - shows many also staggering on cmdline. for right syntax..
syntax syntax - its all in the wrist. !
Here's a working curl_urls.txt (my actual curl_urls involves a custom file server that will try to check whether
http://dl.xonotic.fps.gratis can serve the file, and use the local files as the backup. The setup is a bit more involved; I'll keep it simple for clarity instead):
Code:
data* -
* http://dl.xonotic.fps.gratis/
It basically bans any download of files with names like "data_file.cfg", "data2.txt", etc., and then tells the client to go to
http://dl.xonotic.fps.gratis/ for all other files. So it's probably easier to just host files that are also on
http://dl.xonotic.fps.gratis/
Or if you want to run your owwn file server, you can change that URL prefix to whatever you like:
Code:
data* -
* http://your.server.com/maps/
(05-08-2020, 07:43 PM)atomic.kidd Wrote: ps: a python HTTP server can be fed via cmdline -->
/usr/bin/python -m SimpleHTTPServer 26111 <-- poss get away with just type -> python -m SimpleHTTPServer 26111
being run from the /myBigSpace/Games/Xonotic/data directory same where your server.cfg is contained - this will open up this directory and all the .pk3 files for connected players to sync with - still few shady details to work thru and make right. any help speeds up the Laughing part of game play!
connect via any browser now - serverIP:26111 being the port you offer, 8080 is another more common HTTP port to use. But will Xonotic Server and connecting Clients get right data fill to play all maps in full texture design etc. (pss: remember firewalls and ports to open for this) thx. Browser test works showing me *.pk3 files.
Using SimpleHTTPServer or python3's http.server is probably OK as a temporary solution, but be aware that they don't scale well. It's not multi-threaded, meaning if you have more than one user, they have to take turns downloading. Off loading file serving to
http://your.server.com/maps/ is a good idea.
(05-08-2020, 07:43 PM)atomic.kidd Wrote: digging more reading ~/Xonotic/Docs/mapping.txt says ~/Xonotic/data/data/mapname.mapinfo - but here missing ~/Xonotic/data/data/maps/mapname.cache with in too the ~/maps dir is another ~/maps/autogenerated/HereAreMapnames.mapinfo files - - maps also are now named mapname.pk3 - data is hard to follow to really wobble grey matter. maybe myBad and me not burning the right grass. dunno.
if I do not have a ~/data/maps/autogenerated/mynewMap.mapinfo - does this suggest I perform a ls -la |awk '{print $9}' > mapList and build create a single entry eachmapname.mapinfo file matching and then enter all the necessary game types I wish this map to be played from - this info is not downloaded to Client when playing - yet can see the maps fine there they seem to play locally just not on my server I want my buds to play with along as well. Can see (only dark no lites on type issues).
Diggin more for answers. thx for leading me BuddyGuy Ace cool dude.
I never had a problems with cache or mapinfo files. You shouldn't have to fix any map files (although it's true that there are a few wcorrupted files out there). On my server, I just download map files from either
http://dl.xonotic.fps.gratis/ or the forums, and then serve them to my users, and everything works.
Hope this helps.
EDIT: I had the public map server URL wrong. I missed the "dl" subdomain name. Corrected now.