Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How having xonotic server to make client download custom characters' sounds?

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

#2
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"
sv_curl_serverpackages "your_package"

GreetZ Su
Reply

#3
(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:

Code:
sv_curl_defaulturl "your_http_ftp_server"
sv_curl_serverpackages "your_package"

GreetZ Su

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
Reply

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

#5
(01-25-2015, 08:04 AM)-maniac|Su- Wrote: 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

Wow, thank you very much, we are achieveing a result!! Big Grin
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
Reply

#6
(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! Smile
Now clients can succesfully download my .pk3. Smile 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
------------------- ----- ------------ ------------  ------------------------
2015-01-25 15:02:16 D....            0            0  sound
2015-01-25 15:02:16 D....            0            0  sound/announcer
2015-01-25 15:02:16 D....            0            0  sound/announcer/default
2013-08-22 17:35:52 .....       117567       113455  sound/announcer/default/03kills.ogg
2013-08-22 17:36:24 .....       119799       115829  sound/announcer/default/05kills.ogg
2013-08-22 17:56:08 .....        47119        45802  sound/announcer/default/1.ogg
.....
2015-01-25 15:02:16 D....            0            0  sound/ctf
2013-08-22 19:55:52 .....       138991       135715  sound/ctf/blue_capture.ogg
2013-08-22 19:55:52 .....           38           38  sound/ctf/blue_capture.ogg.sfl
......
2015-01-25 15:02:16 D....            0            0  sound/player
2015-01-25 15:02:16 D....            0            0  sound/player/carni-lycan
2015-01-25 15:02:16 D....            0            0  sound/player/carni-lycan/coms
2015-01-18 16:51:26 .....        24912        23205  sound/player/carni-lycan/coms/attack.ogg
....
2015-01-18 20:39:12 .....        22051        20089  sound/player/carni-lycan/player/death1.ogg
2015-01-18 20:39:12 .....        11391        10344  sound/player/carni-lycan/player/death2.ogg
2015-01-18 20:39:12 .....        12100        11038  sound/player/carni-lycan/player/death3.ogg
........
2015-01-18 20:39:12 .....        22051        20089  sound/player/marine/player/death1.ogg
2015-01-18 20:39:12 .....        11391        10344  sound/player/marine/player/death2.ogg
2015-01-18 20:39:12 .....        12100        11038  sound/player/marine/player/death3.ogg
.......
2015-01-25 15:02:16 D....            0            0  sound/player/robot/player
2015-01-18 20:39:12 .....        22051        20089  sound/player/robot/player/death1.ogg
2015-01-18 20:39:12 .....        11391        10344  sound/player/robot/player/death2.ogg
2015-01-18 20:39:12 .....        12100        11038  sound/player/robot/player/death3.ogg
.......
2015-01-25 14:10:30 .....           52           52  zzz-metalgabo.txt
------------------- ----- ------------ ------------  ------------------------

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
Reply

#7
wasn.t there not something like a file:

Code:
sound/player/default.sounds

which include :

Code:
attack sound/carni-lycan/player/death1 0
attacking sound/player/carni-lycan/player/death2 0
attackinfive sound/player/carni-lycan/player/death3 0

coverme sound/player/carni-lycan/player/death3 0
....

??

GreetZ Su
Reply

#8
(01-25-2015, 04:55 PM)-maniac|Su- Wrote: wasn.t there not something like a file:

Code:
sound/player/default.sounds

which include :

Code:
attack sound/carni-lycan/player/death1 0
attacking sound/player/carni-lycan/player/death2 0
attackinfive sound/player/carni-lycan/player/death3 0

coverme sound/player/carni-lycan/player/death3 0
....

??

GreetZ Su

Yes, it's there, but didn't help. Sad

Thanks anyway.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  I can't see my listen server on server list fnmain 1 1,185 10-07-2023, 07:28 AM
Last Post: Grimnack
  Server not visible on the server browser for others or me DankoLord 1 2,168 02-21-2023, 08:02 PM
Last Post: ballerburg9005
  Let's make our servers community-like! xord86_64 3 1,474 02-03-2023, 05:36 PM
Last Post: xord86_64
  [NEED HELP] Help Adding Custom Gametypes CarbonGhost 3 1,975 01-24-2023, 09:09 PM
Last Post: ballerburg9005
  BaI server | South American Xonotic server (located in Chile) z411 0 3,189 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 10,104 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 5,534 08-19-2020, 10:17 PM
Last Post: ballerburg9005
  [NEED HELP] Server dont appear in server browser abslimit 0 2,821 03-15-2020, 04:13 AM
Last Post: abslimit
  How to change server cfg on modified server veecho 4 4,940 04-24-2019, 08:15 PM
Last Post: BuddyFriendGuy
  Help needed with custom gametypes Notavi 4 3,542 07-29-2018, 07:22 AM
Last Post: Freddy

Forum Jump:


Users browsing this thread:
1 Guest(s)

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