Ulysses

General => Developers Corner => Topic started by: C.Finley on July 05, 2016, 02:53:36 PM

Title: TTT Advanced End Round Music
Post 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.
Code: [Select]

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
Title: Re: TTT Advanced End Round Music
Post by: iViscosity on July 05, 2016, 03:04:28 PM
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.
Title: Re: TTT Advanced End Round Music
Post by: C.Finley on July 05, 2016, 03:06:40 PM
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.
Title: Re: TTT Advanced End Round Music
Post by: iViscosity on July 05, 2016, 03:07:34 PM
Can you send me a link? I don't want to go looking for it tbh.
Title: Re: TTT Advanced End Round Music
Post by: C.Finley on July 05, 2016, 03:10:02 PM
https://github.com/jkralicky/TTT-End-Round-Music/blob/master/EndRoundMusic.lua
Title: Re: TTT Advanced End Round Music
Post by: C.Finley on July 05, 2016, 03:39:42 PM
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" )
Title: Re: TTT Advanced End Round Music
Post by: iViscosity on July 05, 2016, 03:56:40 PM
Tooltip is just like the "hint", like, what it does. It should work, do you get any console errors, either client or server?
Title: Re: TTT Advanced End Round Music
Post by: C.Finley on July 05, 2016, 03:57:54 PM
Nope All I do is uncheck box and it does nothing. Music still plays.
Title: Re: TTT Advanced End Round Music
Post by: iViscosity on July 05, 2016, 03:59:50 PM
If the box is unchecked it will play music.
Title: Re: TTT Advanced End Round Music
Post by: C.Finley on July 05, 2016, 04:01:19 PM
Enable End Round Music is what it says so it is checked aka enabled, then you uncheck should disable but it doesn't
Title: Re: TTT Advanced End Round Music
Post by: iViscosity on July 05, 2016, 04:13:34 PM
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.
Title: Re: TTT Advanced End Round Music
Post by: C.Finley on July 05, 2016, 04:35:17 PM
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.
Title: Re: TTT Advanced End Round Music
Post by: iViscosity on July 05, 2016, 05:28:07 PM
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.
Title: Re: TTT Advanced End Round Music
Post by: C.Finley on July 05, 2016, 05:37:00 PM
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.
Title: Re: TTT Advanced End Round Music
Post by: iViscosity on July 05, 2016, 05:38:04 PM
It does look fine to just looking at it but there's either something wrong in it, the client, or GMod itself.
Title: Re: TTT Advanced End Round Music
Post by: C.Finley on July 05, 2016, 05:39:34 PM
Do you know of a replacement addon then?
Title: Re: TTT Advanced End Round Music
Post by: iViscosity on July 05, 2016, 05:42:08 PM
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.
Title: Re: TTT Advanced End Round Music
Post by: C.Finley on July 05, 2016, 05:44:45 PM
I checked them out there pointless unlike this one which can use urls the others are sounds.
Title: Re: TTT Advanced End Round Music
Post by: C.Finley on July 05, 2016, 05:53:12 PM
Bytewave didnt you say you were gonna work on editing this with the youtube jukebox so you should know this fix right?
Title: Re: TTT Advanced End Round Music
Post by: C.Finley on July 31, 2016, 08:10:44 PM
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