Garry's Mod

Garry's Mod

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