Garry's Mod

Garry's Mod

End of Round Music for TTT
47 Comments
Puro "Dingus" Zazahitter 3 Jul, 2023 @ 11:43am 
You know, that is pretty funny, so funny that I'll do the same thing
Kurochi 6 May, 2020 @ 4:11am 
Find it funny how you stole my picture
Canonical 12 Jul, 2019 @ 4:48am 
Quite the necro here but I'm trying to test it out on my own self hosted server. In the clientside console I get this error:
Failed to load sound "yourmusic.whatever", file probably missing from disk/repository

i'm clearly messing something up. do i install the sound files in my gmod server folder, ie c:/gmodserver/garrysmod/sound, or do i install it locally as is done in the video?
SovetskiDuck 9 Jul, 2019 @ 7:59am 
Thanks Raggle
Raggle 1 Jul, 2015 @ 5:30pm 
Make sure your sound is encoded in the correct format for Source Engine to play it.

I believe 44100hz, 16bit PCM WAV is correct.
Audacity is pretty much the standard program for this.

Sometimes you will need to add resource.AddFile("sound/******.wav") somewhere in a lua file for players to download the sound.

Hope I helped.
Captain Wergberg 1 Jun, 2015 @ 4:41pm 
Failed to load sound "beasty_boys_make_noise.mp3", file probably missing from disk/repository
Please help
Mooseham 2 May, 2015 @ 12:04pm 
I literally cannot get this to work by adding my own sounds, anybody can help at all? ive tried so many end of round sounds addons but none work.
[FC.] HG Dosenkohl 18 Feb, 2015 @ 7:25am 
I dont have FastDL how do i make shure my people get them ?
Crypto 30 Sep, 2014 @ 3:23pm 
Cant get it to work at all?
Murdina 22 Jul, 2014 @ 3:47pm 
Gmad extracter crashes when i try to get it fix please!
Bastard Man 8 Jul, 2014 @ 9:52am 
there is no sounds folder in the server's garrysmod folder
Anna 5 Jul, 2014 @ 3:31pm 
Gmad crashes when i try to extract it........ i want to put it on my fast dl thing and i cant extract it
KΛIBΛ 28 Jun, 2014 @ 2:30am 
Well done!
Remster292 29 May, 2014 @ 7:40pm 
So some sounds are not working at all on my server. I will do the ulx playsound command and it says "you played sound hammer.mp3" but no sound comes out, help?
~Fluffy 7 May, 2014 @ 6:13pm 
Ok, I added the endofroundmusic.lua file to my dedicated server in the garrysmod\lua\autorun folder and here is the text:

resource.AddFile("sound/cultofpersonality.wav")
resource.AddFile("sound/rapgod.wav")
resource.AddFile("sound/donovan.wav")


local function PlayMusic(wintype)
if wintype == WIN_INNOCENT then
BroadcastLua('surface.PlaySound("cultofpersonality.wav")')

elseif wintype == WIN_TRAITOR then
BroadcastLua('surface.PlaySound("sound/rapgod.wav")')

elseif wintype == WIN_TIMELIMIT then
BroadcastLua('surface.PlaySound("donovan.wav")')
end
end
hook.Add("TTTEndRound", "MyMusic", PlayMusic)

And it still isn't playing. I have the songs in the garrysmod\sounds folder! What Am I doing wrong? I even tried putting it in the terrortown\gamemode folder but still to no avail. HELP!
COACH 4 May, 2014 @ 2:39am 
help!
[TA] Kage Kitsune Senpai 19 Mar, 2014 @ 9:17pm 
everyone else can here the music but me any ideas
LilGSpot 26 Jan, 2014 @ 8:52am 
wtf do you mean garrysmod/sounds there is no garrysmod/sounds
boy liker 4 Jan, 2014 @ 3:15am 
what do i do with the lua file
Hex: Chromatica 20 Dec, 2013 @ 2:49pm 
Thanks we fixed it
CervixDestroyer  [author] 19 Dec, 2013 @ 7:56pm 
@Viz, it isn't my code. Can't help you out.
Hex: Chromatica 23 Nov, 2013 @ 1:19pm 
Hey do you know what is wrong with this?
http://pastebin.com/uXkH2N6u
Cookie 28 Oct, 2013 @ 5:31pm 
can i use this on a listen server?
CervixDestroyer  [author] 10 Aug, 2013 @ 10:36am 
@HaloShock123 You can increase it by making the .wav file louder. But don't make it to loud or it will become distorted and annoying from the player's standpoint.
Mumen Rider 9 Aug, 2013 @ 9:34pm 
Is there anyway to increase the volume?
nzkfc 1 Aug, 2013 @ 12:38am 
Oh right, ok will try yours :)
CervixDestroyer  [author] 31 Jul, 2013 @ 8:46pm 
@nzkfc Not my code, so I'm not going to worry about it too much. Try mine to make it much easier. @GRiiM No, the hooks make the song play server wide. Making the hook selective would add much more code. So pick a song that is not liked by one group.
nzkfc 31 Jul, 2013 @ 5:30am 
Hi Moneyinphx, thanks for making this.

AM I doing something wrong? I can't hear any music?

Addon Config:
http://pastebin.com/Fvzec4tQ (I tried it with both sound/roundmusic and just roundmusic/)

FastDL:
http://imgur.com/9hE1b2N

Cheers
Veilance 30 Jul, 2013 @ 8:48pm 
Hi, I'm using this on my server and it works fantastically. Thanks a lot for making it!
However there are some players who don't want to listen to music playing at the end of rounds, is there a way that they can turn it off client side?
CervixDestroyer  [author] 27 Jun, 2013 @ 11:55am 
There is actually no way to tell you what that song is. Remember it is a custom name to force a download for a song to work in a server. You will have to ask the server owner.
Zar457 9 Jun, 2013 @ 12:01pm 
Hey MoNeYINPHX, can you give me the name of the song in lavendert.mp3, because I REALLY want to know the name of the song. Like can you give me a youtube link to the song because I just LOVE IT!!!1111
CervixDestroyer  [author] 1 Jun, 2013 @ 12:27am 
As of right now, you can't have more then one song for each win hook. You have to only have one song per win hook. It's a limitation of the hook.
Crazy Polar Squirrel 29 May, 2013 @ 9:24pm 
It doesn't work does not play any help?
Deraphel 27 Mar, 2013 @ 12:03am 
How would I make the End Round Music have more than 1 song for WIN_INNOCENT & WIN_TRAITOR?
CervixDestroyer  [author] 16 Mar, 2013 @ 10:36am 
I'll take a look into it. I may have added an extra space or something on accident during the update.
Wibble 14 Mar, 2013 @ 10:31am 
ERROR] lua/autorun/endofroundmusic.lua:33: unfinished string near ''surface.PlaySound("i.wav")'
1. unknown - lua/autorun/endofroundmusic.lua:0
Wibble 14 Mar, 2013 @ 10:29am 
Due to LUA errors
Wibble 14 Mar, 2013 @ 10:29am 
I just tried that and my server fell apart and broke
CervixDestroyer  [author] 13 Mar, 2013 @ 11:23pm 
@Larry Newman: The functions for TTt have not changed, at least for the sound triggers. @Freakgood You are using an extra ) in your code "BroadcastLua('surface.PlaySound("Seekbro2013.wav")')" It should be
BroadcastLua('surface.PlaySound("Seekbro2013.wav"')
Larry Newman 11 Mar, 2013 @ 3:08pm 
You could try making a table instead of using a single sound for it. That makes it more simple. And
BroadcastLua('surface.PlaySound("friends2013.wav")')
I think the functions have changed according to Garry. Instead of surface.PlaySound I think it's PlaySound
Wibble 11 Mar, 2013 @ 1:12pm 
I have changed the code over and over and the sound files download but nothing plays
Wibble 11 Mar, 2013 @ 12:56pm 
Does not work
»Zba« Freakgood(swe)Warmin 9 Mar, 2013 @ 6:46pm 
So why isnt this freaking working for me

resource.AddFile("sound/Seekbro2013.wav")
resource.AddFile("sound/whatyousay2013.wav")
resource.AddFile("sound/friends2013.wav")

local function PlayMusic(wintype)
if wintype == WIN_INNOCENT then
BroadcastLua('surface.PlaySound("friends2013.wav")')

elseif wintype == WIN_TRAITOR then
BroadcastLua('surface.PlaySound("Seekbro2013.wav")')

elseif wintype == WIN_TIMELIMIT then
BroadcastLua('surface.PlaySound("friends2013.wav")')
end
end
hook.Add("TTTEndRound", "MyMusic", PlayMusic)

the info stuff u put in when u updated is still there just didnt past it here
CervixDestroyer  [author] 6 Mar, 2013 @ 7:50pm 
Just updated the addon! Now it is more user friendly! Has descriptions for what each section means and what to do!
󠀡󠀡 6 Mar, 2013 @ 7:35pm 
Really good plugin, good author, he's great with support if needed
CervixDestroyer  [author] 16 Feb, 2013 @ 7:43pm 
You most likely misconfigered it. It is case sensitive. The sound file HAS to be a unique name and has to be in the Fast DL server. Hit me up on Skype if you want some professional help. MoNeYINPHX

P.S We haven't had anyone say that this does not work that was legitimate. It was typically their fault somewhere.
»Zba« Freakgood(swe)Warmin 15 Feb, 2013 @ 12:07pm 
Just tested this on my server and it doesnt work