SRCDS Steam group


How to add sounds when people connect to server.
#1
Hi, I am wondering how to add custom sounds for when people connect to your server. this is what my
Code:
quakesoundslist.cfg
looks like from my
Code:
/tf/addons/sourcemod/configs
Directory.
Code:
"QuakeSoundsList"
{
    "sound sets"
    {
        "sound set 1"        "standard"
        "sound set 2"        "female"
        "sound set 3"        ""
        "sound set 4"        ""
        "sound set 5"        ""
    }
    "headshot"
    {
        "1"
        {
            "standard"        "quake/headshot.mp3"
            "female"        "quake/female/headshot.mp3"
            "config"        "9"
        }    
        "3"
        {
            "standard"        "quake/hattrick.wav"
            "female"        "quake/female/headshot.mp3"
            "config"        "9"
        }
        "5"
        {
            "standard"        "quake/headhunter.wav"
            "female"        "quake/female/headshot.mp3"
            "config"        "9"
        }        
    }
    "killsound"
    {
        "4"
        {
            "standard"        "quake/dominating.mp3"
            "female"        "quake/female/dominating.mp3"
            "config"        "9"
        }    
        "6"
        {
            "standard"        "quake/rampage.mp3"
            "female"        "quake/female/rampage.mp3"
            "config"        "9"
        }
        "8"
        {
            "standard"        "quake/killingspree.mp3"
            "female"        "quake/female/killingspree.mp3"
            "config"        "9"
        }
        "10"
        {
            "standard"        "quake/monsterkill.mp3"
            "female"        "quake/female/monsterkill.mp3"
            "config"        "9"
        }
        "14"
        {
            "standard"        "quake/unstoppable.mp3"
            "female"        "quake/female/unstoppable.mp3"
            "config"        "9"
        }
        "16"
        {
            "standard"        "quake/ultrakill.mp3"
            "female"        "quake/female/ultrakill.mp3"
            "config"        "9"
        }
        "18"
        {
            "standard"        "quake/godlike.mp3"
            "female"        "quake/female/godlike.mp3"
            "config"        "9"
        }
        "20"
        {
            "standard"        "quake/wickedsick.mp3"
            "female"        "quake/female/wickedsick.mp3"
            "config"        "9"
        }
        "22"
        {
            "standard"        "quake/impressive.mp3"
            "female"        "quake/female/wickedsick.mp3"
            "config"        "9"
        }
        "24"
        {
            "standard"        "quake/ludicrouskill.mp3"
            "female"        "quake/female/holyshit.mp3"
            "config"        "9"
        }
        "26"
        {
            "standard"        "quake/holyshit.mp3"
            "female"        "quake/female/holyshit.mp3"
            "config"        "9"
        }        
    }
    "combo"
    {
        "2"
        {
            "standard"        "quake/doublekill.mp3"
            "female"        "quake/female/multikill.mp3"
            "config"        "9"
        }    
        "3"
        {
            "standard"        "quake/triplekill.mp3"
            "female"        "quake/female/multikill.mp3"
            "config"        "9"
        }
        "4"
        {
            "standard"        "quake/multikill.mp3"
            "female"        "quake/female/multikill.mp3"
            "config"        "9"
        }
        "5"
        {
            "standard"        "quake/combowhore.mp3"
            "female"        "quake/female/multikill.mp3"
            "config"        "9"
        }        
    }
    "first blood"
    {
        "standard"        "quake/firstblood.mp3"
        "female"        "quake/female/firstblood.mp3"
        "config"        "9"
    }
    "grenade"
    {
        "standard"        "quake/perfect.mp3"
        "female"        "quake/perfect.mp3"
        "config"        "9"
    }
    "selfkill"
    {
        "standard"        "quake/humiliation.mp3"
        "female"        "quake/humiliation.mp3"
        "config"        "9"
    }
    "round play"
    {
        "standard"        "quake/play.wav"
        "female"        "quake/female/prepare.mp3"
        "config"        "9"
    }
    "knife"
    {
        "standard"        "quake/humiliation.mp3"
        "female"        "quake/female/bottomfeeder.mp3"
        "config"        "6"
    }
    "teamkill"
    {
        "standard"        "quake/teamkiller.mp3"
        "female"        "quake/teamkiller.mp3"
        "config"        "9"
    }
    "join server"
    {
        "standard"        "quake/finalcountdown3.mp3"
        "female"        "quake/female/finalcountdown3.mp3"        
        "config"        "1"
    }
}
Notice how I edited the "join server" function to the custom sounds I would like to be played to the person that joins. But when I connect to my server I get this error from console
Code:
*** Invalid sample rate (24000) for sound 'quake\finalcountdown3.mp3'.
How can I check to see what sample rate my sound file is and is there a way to change it? I have Adobe Soundbooth CS4 to use.

Also when ever anyone connects to my server it keeps downloading the play.wav and the prepare.wav files even though they r not in my sound/quake and sound/quake/female directory, is there a way to fix this? Thank you.


EDIT: I have changed the .mp3 file to a .wav file with a sample rate of 22050 Hz. Now when I join my server I get these errors on console.
Code:
Unsupported 32-bit wave file quake\finalc2.wav
Unsupported 32-bit wave file quake\female\finalc2.wav
Failed to load sound "quake\finalc2.wav", file probably missing from disk/repository
I am not sure what the Unsupported 32-bit error is and I am not 100% sure on what the probably missing from disk/repository error is. Thanks.

EDIT2: Alright, So I went back into Adobe Soundbooth and saved the .wav file AGAIN and set the bit rate to 16-Bit and I DO NOT get the unsupported bit rate error anymore. the Only error I get now is
Code:
Failed to load sound "quake\finalc2.wav", file probably missing from disk/repository
I am not certain on how to fix this. If I figure it out I will post back. Thanks


P.S. No one has been able to help me on the Plugins thread, so I was wondering maybe someone here knew how to do this. I have been trying to get this to work for about 3 days now.

Link to plugin:http://forums.alliedmods.net/showthread.php?t=91385
Reply
#2
Hey, make sure the bitrate etc matches the settings on the mp3's/wavs already in place.
It's little tricky business but it should work in the end.

I'm not sure why it says fails to load, file missing, it should only pop up if the file isn't there.
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#3
Yeah, I'm not sure either because it actually downloads when people connect it just will not play. I checked the bitrate and I cant get it to match the bitrate of the original sound file that was already in the plugin, so maybe that's why? So I guess I'll just try to embed it in my MOTD.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)