Ulysses
General => Developers Corner => Topic started by: C.Finley on July 05, 2016, 02:53:36 PM
-
I am having trouble with the F1 menu the Enable End Round Music I disable it but it doesn't disable can someone help. I'm guessing it would effect this part.
local function AddSettings( dtabs )
local musicsettings = vgui.Create( "DPanelList", dtabs )
musicsettings:StretchToParent( 0, 0, padding, 0 )
musicsettings:EnableVerticalScrollbar( true )
musicsettings:SetPadding( 10 )
musicsettings:SetSpacing( 10 )
local setting = nil
local Music = vgui.Create( "DForm", musicsettings )
Music:SetName( "End Round Music" )
setting = Music:CheckBox( "Enable End Round Music", "ttt_eor_music_enabled" )
setting:SetTooltip( "Disable EOR Music" )
musicsettings:AddItem( Music )
dtabs:AddSheet( "EOR Music", musicsettings, "icon16/music.png", false, false, "End Round Music Settings" )
end
hook.Add( "TTTSettingsTabs", "AddSettings", AddSettings )
end
-
Don't think you should make a new post here for it... you would probably leave a comment on the Original Release page. (http://forums.ulyssesmod.net/index.php/topic,6917.0.html)
(Idk though, I'm not a mod)
I could likely take a look at it later today to see why it would do that but I don't know.
-
well nobody has looked at that post for a long time and I just need support and thats really more discussion area I don't know though. I'm using the github his updated version.
-
Can you send me a link? I don't want to go looking for it tbh.
-
https://github.com/jkralicky/TTT-End-Round-Music/blob/master/EndRoundMusic.lua
-
setting = Music:CheckBox( "Enable End Round Music", "ttt_eor_music_enabled" )
setting:SetTooltip( "Disable EOR Music" )
I feel like its this part perhaps like maybe ttt_eor_music_disabled idk when uncheck like
setting:SetTooltip( "ttt_eor_music_disabled" )
-
Tooltip is just like the "hint", like, what it does. It should work, do you get any console errors, either client or server?
-
Nope All I do is uncheck box and it does nothing. Music still plays.
-
If the box is unchecked it will play music.
-
Enable End Round Music is what it says so it is checked aka enabled, then you uncheck should disable but it doesn't
-
Don't know then... it IS an old addon and was probably broken by some GMod update. Others are having the same issue and I don't know enough about it myself to figure out why.
-
should it say disable end round music and ttt_eor_music_disabled????? only problem is its default set to check marked. I also tested disabling all addons and still doesn't work.
-
No, earlier in the code it defined ttt_eor_music_enabled as a 1 or 0 CVAR. When the box is unchecked, it should be set to 0 (unlike what I said above) which should stop it. It also is set to if that CVAR is set to 0, it should do nothing, but for whatever reason it isn't and still playing music. I could look into it if I have some spare time but I can't ATM.
-
That would be greatbecause I tried it with no addons and it still doesn't work and I had Bull ... expert dev look at it and he said it looked fine which is weird then.
-
It does look fine to just looking at it but there's either something wrong in it, the client, or GMod itself.
-
Do you know of a replacement addon then?
-
Just a quick Google search (https://www.google.com/search?q=ttt+end+round+music&oq=ttt+end+&aqs=chrome.2.69i57j69i61j0l2j69i61j0.2808j0j4&client=ms-android-verizon&sourceid=chrome-mobile&ie=UTF-8) I found a couple, look or one that suits you.
-
I checked them out there pointless unlike this one which can use urls the others are sounds.
-
Bytewave didnt you say you were gonna work on editing this with the youtube jukebox so you should know this fix right?
-
what if I set the two false statements to true would that work or is the program still screwed, sorry to bring this up I really like the program and it would be great to get this function to work.
Edited: NVM stupid comment