Raised This Month: $ Target: $400
 0% 

Sound's dir


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SilentLikeSilence
Senior Member
Join Date: Jul 2009
Old 08-16-2009 , 03:04   Sound's dir
Reply With Quote #1

Hello!

I made a little plugin which should play a "welcomesound" for the client who joins.

The sound is downloaded, but when it should play it, I see this error message in my client console:

Failed to load sound "sound/sourcemod/welcomesound.mp3", file probably missing from disk/repository.

Script details:
PrecacheSound("sourcemod/welcomesound.mp3", true);
AddFileToDownloadsTable("sound/sourcemod/welcomesound.mp3");

EmitSoundToClient(client, "sourcemod/welcomesound.mp3");

And i allowed welcomesound on my whitelist.

Thanks for help Silent
SilentLikeSilence is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 08-16-2009 , 04:37   Re: Sound's dir
Reply With Quote #2

Is the sound really in your local sound folder? Just because it shows that it's downloading it doesn't necessarily mean it's downloading it. A reason for it not downloading it might be using sv_downloadurl but not having the file there.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
SilentLikeSilence
Senior Member
Join Date: Jul 2009
Old 08-16-2009 , 06:08   Re: Sound's dir
Reply With Quote #3

I can see it in my tf2s sound/sourcemod folder.

Last edited by SilentLikeSilence; 08-16-2009 at 07:50.
SilentLikeSilence is offline
Buzzaard
Member
Join Date: Apr 2005
Location: Florida
Old 08-16-2009 , 17:38   Re: Sound's dir
Reply With Quote #4

Try deleting the file from your computer and then reconnect to your server and see if it downloads properly. Also do you use a fast download server and if so did you upload it to both your game server and the fast download server?
Buzzaard is offline
SilentLikeSilence
Senior Member
Join Date: Jul 2009
Old 08-16-2009 , 18:53   Re: Sound's dir
Reply With Quote #5

I uploaded it to gameserver and to fastdownload too.

Anyway, i noticed that i cant play any sound from console (like a quake sound), i get the same error message.
SilentLikeSilence is offline
Hawkeye-
Senior Member
Join Date: Jan 2009
Old 08-17-2009 , 13:02   Re: Sound's dir
Reply With Quote #6

If your running sv_pure, make sure the sound directies you have the files stored is is referenced in the whitelist.cfg, otherwise they won't be allowed and throw the error you are seeing.
Hawkeye- is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode