Garry's Mod

Garry's Mod

End of Round Music for TTT
47 kommentarer
DingusZazahitter426 3. juli 2023 kl. 11:43 
You know, that is pretty funny, so funny that I'll do the same thing
Kurochi 6. maj 2020 kl. 4:11 
Find it funny how you stole my picture
Canonical 12. juli 2019 kl. 4:48 
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. juli 2019 kl. 7:59 
Thanks Raggle
Raggle 1. juli 2015 kl. 17:30 
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. juni 2015 kl. 16:41 
Failed to load sound "beasty_boys_make_noise.mp3", file probably missing from disk/repository
Please help
Mooseham 2. maj 2015 kl. 12:04 
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.
HG Dosenbier 18. feb. 2015 kl. 7:25 
I dont have FastDL how do i make shure my people get them ?
Crypto 30. sep. 2014 kl. 15:23 
Cant get it to work at all?
Murdina 22. juli 2014 kl. 15:47 
Gmad extracter crashes when i try to get it fix please!
Bastard Man 8. juli 2014 kl. 9:52 
there is no sounds folder in the server's garrysmod folder
Anna 5. juli 2014 kl. 15:31 
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. juni 2014 kl. 2:30 
Well done!
Remster292 29. maj 2014 kl. 19:40 
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. maj 2014 kl. 18:13 
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. maj 2014 kl. 2:39 
help!
[TA] Kage Kitsune Senpai 19. mar. 2014 kl. 21:17 
everyone else can here the music but me any ideas
LilGSpot 26. jan. 2014 kl. 8:52 
wtf do you mean garrysmod/sounds there is no garrysmod/sounds
boy liker 4. jan. 2014 kl. 3:15 
what do i do with the lua file
Hex: Chromatica 20. dec. 2013 kl. 14:49 
Thanks we fixed it
CervixDestroyer  [ophavsmand] 19. dec. 2013 kl. 19:56 
@Viz, it isn't my code. Can't help you out.
Hex: Chromatica 23. nov. 2013 kl. 13:19 
Hey do you know what is wrong with this?
http://pastebin.com/uXkH2N6u
Cookie 28. okt. 2013 kl. 17:31 
can i use this on a listen server?
CervixDestroyer  [ophavsmand] 10. aug. 2013 kl. 10:36 
@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 kl. 21:34 
Is there anyway to increase the volume?
nzkfc 1. aug. 2013 kl. 0:38 
Oh right, ok will try yours :)
CervixDestroyer  [ophavsmand] 31. juli 2013 kl. 20:46 
@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. juli 2013 kl. 5:30 
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. juli 2013 kl. 20:48 
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  [ophavsmand] 27. juni 2013 kl. 11:55 
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. juni 2013 kl. 12:01 
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  [ophavsmand] 1. juni 2013 kl. 0:27 
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. maj 2013 kl. 21:24 
It doesn't work does not play any help?
Deraphel 27. mar. 2013 kl. 0:03 
How would I make the End Round Music have more than 1 song for WIN_INNOCENT & WIN_TRAITOR?
CervixDestroyer  [ophavsmand] 16. mar. 2013 kl. 10:36 
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 kl. 10:31 
ERROR] lua/autorun/endofroundmusic.lua:33: unfinished string near ''surface.PlaySound("i.wav")'
1. unknown - lua/autorun/endofroundmusic.lua:0
Wibble 14. mar. 2013 kl. 10:29 
Due to LUA errors
Wibble 14. mar. 2013 kl. 10:29 
I just tried that and my server fell apart and broke
CervixDestroyer  [ophavsmand] 13. mar. 2013 kl. 23:23 
@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 kl. 15:08 
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 kl. 13:12 
I have changed the code over and over and the sound files download but nothing plays
Wibble 11. mar. 2013 kl. 12:56 
Does not work
»Zba« Freakgood(swe)Warmin 9. mar. 2013 kl. 18:46 
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  [ophavsmand] 6. mar. 2013 kl. 19:50 
Just updated the addon! Now it is more user friendly! Has descriptions for what each section means and what to do!
󠀡󠀡 6. mar. 2013 kl. 19:35 
Really good plugin, good author, he's great with support if needed
CervixDestroyer  [ophavsmand] 16. feb. 2013 kl. 19:43 
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 kl. 12:07 
Just tested this on my server and it doesnt work