Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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?
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.
Please help
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!
http://pastebin.com/uXkH2N6u
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
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?
1. unknown - lua/autorun/endofroundmusic.lua:0
BroadcastLua('surface.PlaySound("Seekbro2013.wav"')
BroadcastLua('surface.PlaySound("friends2013.wav")')
I think the functions have changed according to Garry. Instead of surface.PlaySound I think it's PlaySound
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
P.S We haven't had anyone say that this does not work that was legitimate. It was typically their fault somewhere.