Installer Steam
log på
|
sprog
简体中文 (forenklet kinesisk)
繁體中文 (traditionelt kinesisk)
日本語 (japansk)
한국어 (koreansk)
ไทย (thai)
Български (bulgarsk)
Čeština (tjekkisk)
Deutsch (tysk)
English (engelsk)
Español – España (spansk – Spanien)
Español – Latinoamérica (spansk – Latinamerika)
Ελληνικά (græsk)
Français (fransk)
Italiano (italiensk)
Bahasa indonesia (indonesisk)
Magyar (ungarsk)
Nederlands (hollandsk)
Norsk
Polski (polsk)
Português (portugisisk – Portugal)
Português – Brasil (portugisisk – Brasilien)
Română (rumænsk)
Русский (russisk)
Suomi (finsk)
Svenska (svensk)
Türkçe (tyrkisk)
Tiếng Việt (Vietnamesisk)
Українська (ukrainsk)
Rapporter et oversættelsesproblem
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.