SRCDS Steam group


sv_downloadurl and custom sounds
#1
Hey everyone Smile

I can't get sv_downloadurl to work with custom sounds, it works with maps and stuff, but not with custom sounds. I have tried with sv_pure 0 (I have sv_pure 1 and a whitelist with the sounds whitelisted normally), and it works if I don't use sv_downloadurl.
The file just doesn't get downloaded...

I run SRCDS at my Linux machine with Ubuntu-Server x86_64. The downloadurl is pointing at the same server.

Anyone knows what's going on? Sad
Reply
#2
Well if maps works and sound won't work. I believe it's an error made by you. Smile

Try double check all the files and make sure the directory is identical on both.
Reply
#3
First, I'd say ensure that the directory structure mirrors the cstrike dir structure for the files you're hosting, so your web server has the structure:
Code:
/var/www/Your File Hosting Directory/sounds/
/var/www/Your File Hosting Directory/maps/
/var/www/Your File Hosting Directory/gfx/
and so on.

Then ensure that the permissions for all the files allow 'Other' users to read them, par exemple:
Code:
sudo chmod -Rv 755 /var/www/Your Dir/sounds/
etc. etc.

After that I can only suggest checking your sv_download url is pointing to the right place (the parent directory that holds sounds, maps, gfx etc) and that the file type and formatting is compliant with whatever admin software you're using (making sure that you're not specifying a .wav as an mp3 file, and ensuring that sounds have a sensible format, 16-bit, 44.1khz).

Sorry if you know all that, but nothing beats the good old quadruple-check when it comes to these things.

DaRab,.
Desktop:
Core2Duo E6750 @ 3.04Ghz - 2GiB DDR2 @ 800Mhz - Asus P5K Premium WiFi mobo - Hiper 530W PSU & Osiris Case - Sapphire ATi HD4870 - Creative X-Fi Xtreme Audio - Win XP Pro 32bit

Server:
Pentium 4 @ 3Ghz - 1GiB DDR2 @ 800Mhz - Asus PM5T mobo - Asus RS120-E3 1U Rackmount case - 500GB Hardware RAID0 array - Ubuntu 9.04 Server Edition - Massive Genitals.
Reply
#4
I know the sound works, it's something with sv_downloadurl. If I remove downloadurl it works.
I have also tried to visit http://omega.dataviruset.com/srcds_jail_downloadurl/sound/consnd/swejail_tingalin.mp3 and it works.
I'm using the EventScript "welcom_sound"; http://addons.eventscripts.com/addons/view/welcom_sound
and the source is set to consnd/swejail_tingalin.mp3. Am I wrong, or should this work?

Maybe there are other sollutions on this problem, is it possible to open a web page that plays the welcome sound? Maybe it would be a little more flexible...
Reply
#5
Set the sv_downloadurl to http://omega.dataviruset.com/srcds_jail_downloadurl/
Reply
#6
It is set to that, and it just doesn't work... sv_allowdownload and sv_allowupload is set to 1 and I can access my files from that URL.
It says missing map too...
Reply
#7
hmm

Do you own the main domain?
Reply
#8
realchamp Wrote:hmm

Do you own the main domain?

Yes, I do...
Reply
#9
What does the client's in-game console spit out when you try to join the server? Can it find the file?
Have you created a directory structure like this:
http://omega.dataviruset.com/srcds_jail_downloadurl/sounds/consnd/
and dropped the mp3 in there, making sure the permissions for the files and folders allow 'other' users? If you do this, you should only have to reference the file as 'consnd/swejail_tingalin.mp3' in your sounds file.
Desktop:
Core2Duo E6750 @ 3.04Ghz - 2GiB DDR2 @ 800Mhz - Asus P5K Premium WiFi mobo - Hiper 530W PSU & Osiris Case - Sapphire ATi HD4870 - Creative X-Fi Xtreme Audio - Win XP Pro 32bit

Server:
Pentium 4 @ 3Ghz - 1GiB DDR2 @ 800Mhz - Asus PM5T mobo - Asus RS120-E3 1U Rackmount case - 500GB Hardware RAID0 array - Ubuntu 9.04 Server Edition - Massive Genitals.
Reply
#10
DaRabman Wrote:What does the client's in-game console spit out when you try to join the server? Can it find the file?
Have you created a directory structure like this:
http://omega.dataviruset.com/srcds_jail_downloadurl/sounds/consnd/
and dropped the mp3 in there, making sure the permissions for the files and folders allow 'other' users? If you do this, you should only have to reference the file as 'consnd/swejail_tingalin.mp3' in your sounds file.

It says that the file is missing from disk/repository. I have that directory structure and as I said before, I can access the file via http :/
Reply
#11
Do you run with sv_pure 1 or 2? Smile
(or sv_consistency 1?)
Reply
#12
sv_pure 1 with everything whitelisted and sv_consistency 1.
Reply
#13
I believe you haven't done that right then.

Try setting them both to zero and give it a try agian.
Reply
#14
I have tried, but it didn't work either...
I tried something else now; playing the welcome sound from a Windows Media Player plugin in the motd.txt, and it worked quite well, so I have solved it in another way...
Reply
#15
hmmm weird :/
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)