• Cannot play custom sounds?
    23 replies, posted
I'm trying to play a custom sound on my server. The sound is located D:\Servers\Gmod\garrysmod\music\quake so I put ] ulx playsound music/quake/monsterkill.wav and I get the error 'That sound doesn't exist on the server!'. I've also tried playmusic/quake/monsterkill.wav and received the error 'Failed to load sound "music\quake\monsterkill.wav", file probably missing from disk/repository' so what could I be doing wrong? Also, paths like these npc/metropolice/vo/moveit.wav work fine. Any help would be much appreciated.
Try ulx playsound sound/music/quake/monsterkill.wav
[QUOTE=code_gs;43649686]Try ulx playsound sound/music/quake/monsterkill.wav[/QUOTE] Am I suppose to have a sound folder? Because I've never had one before.
Yes, all sounds should be in garrysmod/sound. From there, subfolders can be made such as music and such.
Still, no progress. :\ [IMG]http://puu.sh/6vYQe.jpg[/IMG]
Then you don't have the sound on your client.
[QUOTE=code_gs;43650039]Then you don't have the sound on your client.[/QUOTE] How do I play it server wide? or if I did FastDL would that help?
You have to send the sound via FastDL.
Still nothing. This doesn't make any sense! I created a sound folder inside my folder that is in sv_downloadurl and maps work in the maps folder, but when I put my quake folder inside the sound folder still nothing! x________________________________________x
Post your FastDL link.
Your sound needs to have a Sample Rate of 44100 Hz for the Source Engine to be able to play it. Although, you use the quake sounds so they should be fully compatible. Anyway, post your FastDL link as code_gs said and triple check that the files structure is the same for your resource.AddFile script.
Sorry guys, here it is. [url]https://www.dropbox.com/sh/s10lnph8uhmtua7/kZqrvajkHo[/url] "triple check that the files structure is the same for your resource.AddFile script." What do you mean?
Dropbox doesn't work for FastDL. Get another host.
[QUOTE=Svenskunganka;43661331]Dropbox doesn't work for FastDL. Get another host.[/QUOTE] Do you know any free ones?
There is no free hosting that allows FastDL mirrors (Hosting of game content). You have to buy one.
Then how would I go about hosting my own?
Forward port 80, install a web-server like apache. I suggest you to get the entire [URL="http://www.wampserver.com/"]WAMP Server software[/URL] (Windows, Apache, MySQL and PHP in a package) if you plan on hosting a website later on. Either way, you need [URL="http://httpd.apache.org/download.cgi#apache24"]Apache[/URL]. Then you put the sounds in a web-server directory, put the server online and then change your server.cfg params to this: [CODE] sv_downloadurl "http://your.server.ip.here/fastdl" sv_allowdownload 0 sv_allowupload 0 // Security measure, make sure it's disabled. [/CODE]
Alright. Does it have to be named "fastdl"? I just put it inside htdocs/garrysmod/sound For the sv_downloadurl I put sv_downloadurl "http://my.public.ip.address/garrysmod" Here's a wav file I converted to 44100hz if you want to check it out or test it. [url]http://www.mediafire.com/listen/1au98unagkf9es0/dominating.wav[/url] I also had my friend see if he had access to play [url]http://my.public.ip.address/garrysmod/dominating.wav[/url] and he did. So the web server is working fine. Again, thanks for the help.
Then everything should be working perfectly fine!
[QUOTE=Svenskunganka;43663964]Then everything should be working perfectly fine![/QUOTE] Could you try and see if you can make it work in gmod? [editline]25th January 2014[/editline] Aha! For some reason, they're not downloading via my websever. I thought sv_download was suppose to be set to 1?
sv_allowdownload is supposed to be set to 0. Anyway, have you made a resource.AddFile Lua file for the sounds?
[QUOTE=Svenskunganka;43664408]sv_allowdownload is supposed to be set to 0. Anyway, have you made a resource.AddFile Lua file for the sounds?[/QUOTE] Yes, that was the problem. The wav files also have to be 16-bit PCM. When I change it to a 16-bit PCM from a 32-bit float in Audacity, I export it, close Audacity, open the wav back up in Audacity, it's back to a 32-bit float. It didn't do this earlier when I was testing that. Hmmmm.
What do you mean exactly?
[QUOTE=Svenskunganka;43664566]What do you mean exactly?[/QUOTE] [QUOTE=~Kiwi~v2;37132389]Make sure you also have the format set to 44150hz 16bit PCM WAV.[/QUOTE] Disregard the 44150hz, because I early had a file at 44100hz 16-Bit PCM format and it played on the server. All my wav files are 32-Bit Float format and for some reason are not converting to 16-Bit PCM format and 32-Bit Float will not play on the Source Engine. [editline]25th January 2014[/editline] Nevermind, I forgot the sound/ part in resource
Sorry, you need to Log In to post a reply to this thread.