How having xonotic server to make client download custom characters' sounds? - 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: How having xonotic server to make client download custom characters' sounds? (/showthread.php?tid=5268) |
How having xonotic server to make client download custom characters' sounds? - gabolander - 01-24-2015 Hi there, I successfully changed some sounds on various players in default .pk3 data file (xonotic-20150113-data.pk3 in my case), and I changed files such as, eg., death1.ogg, death2.ogg,pain100.ogg, ecc. sounds in /player/soldier/player/ for example. Then I repacked using the same name xonotic-20150113-data.pk3 in my case. Now, when I locally run xonotic (0.8.0), I can hear the sounds I changed, but if I raise up a server, how can I have client to download my updated, custom sounds? Have I to change/set some options in my server.cfg? I'd really appreciate any suggestion. Thanks in advance? Gabo RE: How having xonotic server to make client download custom characters' sounds? - -maniac|Su- - 01-24-2015 to ship different models/sounds/textures by server you have to pack them into a pk3 file and transfer it like maps by using: Code: sv_curl_defaulturl "your_http_ftp_server" GreetZ Su RE: How having xonotic server to make client download custom characters' sounds? - gabolander - 01-25-2015 (01-24-2015, 02:46 PM)-maniac|Su- Wrote: to ship different models/sounds/textures by server you have to pack them into a pk3 file and transfer it like maps by using: Hi first of all thank you very much for your reply. To be honest, I'm just a little bit confused.... I tried to set sv_curl_defaulturl "http://<my_publicIP>/" and in sv_curl_serverpackeges "zzzmetalgabo.pk3" (that is my package with custom sounds). I figure out, my webserver (apache2) should be up and running to make my pk3 available on port 80 and I put my pk3 under web server's document root. When I raise up server, I don't find any information about my zzzmetalgabo.pk3 in the server log, and when a client connects to my server, it runs with default sounds with its characters. I also tried to copy zzzmetalgabo.pk3 in root's ~/.xonotic/data (since I run server with root), but with no luck. Any other things I can check? I tried to google around, but didn't find any useful information to custom sounds to client of already present characters. Thank you in advance for your help. Gabo (01-24-2015, 02:46 PM)-maniac|Su- Wrote: to ship different models/sounds/textures by server..... BTW, another weird thing... I set an 'hostname' variable in server.cfg to name my server (say, "Server Gabo 1234"). If I locally run client in my local network, I can see my server name in the multiplayer server list, but when a friend try to search/filter it from internet, doesn't. If I tell him my public-ip:port (es. "78.100.200.300:26000"), he can succesfully connect and play into my server, though. I can I my server listed in the public server list? Thanks in advance for your help. Gabo RE: How having xonotic server to make client download custom characters' sounds? - -maniac|Su- - 01-25-2015 first of all - make sure your map/webserver is working sec - insert a file zzzmetalgabo.txt into pk3 file zzzmetalgabo.txt only contains something like Code: File used for package ID in sv_curl_serverpackages. edit your server-config too: sv_curl_serverpackages "zzzmetalgabo.pk3 zzzmetalgabo.txt" restart server should be working (at leas it does 4 me) GreetZ Su RE: How having xonotic server to make client download custom characters' sounds? - gabolander - 01-25-2015 (01-25-2015, 08:04 AM)-maniac|Su- Wrote: first of all - make sure your map/webserver is working Wow, thank you very much, we are achieveing a result!! Now, locally it works, zzzmetalgabo.pk3 is correctly loaded, but when a public users connects, it is displayed for a while "downloading dlcache/zzzmetalgabo.pk3 0/??? K " and it fails, and he plays with standard sounds. When it looks into his ~/.xonotic/data/dlcache, he can see a 0 length file zzzmetalgabo.pk3, so something didn't work with webserver. Webserver is up and running (apache), and if I target "http://myaddress/zzzmetalgabo.pk3" it a "wget" command, for example, I can normally download the file... Thanks for any further suggestions. Any idea for make my server appear in multiplayer server list?? Thanks again. Gabo RE: How having xonotic server to make client download custom characters' sounds? - gabolander - 01-25-2015 (01-25-2015, 08:04 AM)-maniac|Su- Wrote: first of all - make sure your map/webserver is working Hi mate, there's an update! Now clients can succesfully download my .pk3. It is stored in their ~/.xonotic/data/dlcache dir. The weird thing now, is that the clients can hear announcers' custom sounds, but not players' custom sounds (e.g. soldier,marine,robot etc.). My pk3 structure is like following: Code: Date Time Attr Size Compressed Name For having even the custom player/characters sounds working, the clients should have to manually move the downloaded zzz-metalgabo.pk3 from $HOME/.xonotic/data/dlcache to ${XONOTIC_GAME_DIR}/data dir. Where am I still wrong in your opinion? Tnx in advance Gabo RE: How having xonotic server to make client download custom characters' sounds? - -maniac|Su- - 01-25-2015 wasn.t there not something like a file: Code: sound/player/default.sounds which include : Code: attack sound/carni-lycan/player/death1 0 ?? GreetZ Su RE: How having xonotic server to make client download custom characters' sounds? - gabolander - 01-25-2015 (01-25-2015, 04:55 PM)-maniac|Su- Wrote: wasn.t there not something like a file: Yes, it's there, but didn't help. Thanks anyway. |