Thread Tools Display Modes
04-16-11, 05:09 AM   #1
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Taints

hello, there my UI is causing some taints, i don't understand where its comming from? Any ideas?
Attached Files
File Type: txt taintlog.txt (83.3 KB, 737 views)
  Reply With Quote
04-16-11, 05:31 AM   #2
Sniffles
A Black Drake
 
Sniffles's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2010
Posts: 86
Actions like hiding/fading/... during combat aren't good. Causes too many taint errors.
__________________
Hi!

Last edited by Sniffles : 04-16-11 at 05:38 AM.
  Reply With Quote
04-16-11, 05:45 AM   #3
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Hm, so how do i prevent these taints to happen?
  Reply With Quote
04-16-11, 05:51 AM   #4
Sniffles
A Black Drake
 
Sniffles's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2010
Posts: 86
Don't hide frames while combat?
__________________
Hi!
  Reply With Quote
04-16-11, 05:52 AM   #5
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by Sniffles View Post
Don't hide frames while combat?
like _G["CompactRaidFrameContainer"]:Hide() ??
  Reply With Quote
04-16-11, 05:58 AM   #6
Sniffles
A Black Drake
 
Sniffles's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2010
Posts: 86
No something like this:

Code:
...
...

FrameName:SetScript("OnEvent", function(self, event, ...)
	if (event == "PLAYER_REGEN_DISABLED") then
		frame:Hide()
	elseif (event == "PLAYER_REGEN_ENABLED") then
		frame:Show()
	end
end)
__________________
Hi!
  Reply With Quote
04-16-11, 06:04 AM   #7
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by Sniffles View Post
No something like this:

Code:
...
...

FrameName:SetScript("OnEvent", function(self, event, ...)
	if (event == "PLAYER_REGEN_DISABLED") then
		frame:Hide()
	elseif (event == "PLAYER_REGEN_ENABLED") then
		frame:Show()
	end
end)
Hm, i use atm.
Code:
local f = CreateFrame('Frame')
f:RegisterEvent('PLAYER_LOGIN')
f:SetScript('OnEvent', function(_, event, ...)
    if (event == 'PLAYER_LOGIN') then
           frame:Hide()
    end
end)
  Reply With Quote
04-16-11, 06:05 AM   #8
Sniffles
A Black Drake
 
Sniffles's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2010
Posts: 86
Can you show me your full code, please? I want to test it.
__________________
Hi!
  Reply With Quote
04-16-11, 06:07 AM   #9
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by Sniffles View Post
Can you show me your full code, please? I want to test it.
Code:
local f = CreateFrame('Frame')
f:RegisterEvent('PLAYER_LOGIN')
f:SetScript('OnEvent', function(self, event)
    if (event == 'PLAYER_LOGIN') then
	    if AftermathhUI.config.loginmessage == true then
	        print('|cff8080ffWelcome To Aftermathh UI|r')
		    print('|cff8080ffIf you find a bug, please report @ Wowinterface|r')
		    print('|cff8080ffFor help with this UI, type in /UIHelp|r')
		    print('|cff8080ffHope you enjoy Aftermathh UI!|r')
        end
		
		_G["InterfaceOptionsFrameCategoriesButton6"]:SetScale(0.00001) -- Nah we got bartender its okey.
		_G["InterfaceOptionsFrameCategoriesButton6"]:SetAlpha(0) -- Nah we got bartender its okey.
		_G["InterfaceOptionsFrameCategoriesButton10"]:SetScale(0.00001) -- nah we got oUF
		_G["InterfaceOptionsFrameCategoriesButton10"]:SetAlpha(0) -- nah we got oUF
		_G["InterfaceOptionsFrameCategoriesButton11"]:SetScale(0.00001) -- nah we got oUF
		_G["InterfaceOptionsFrameCategoriesButton11"]:SetAlpha(0) -- nah we got oUF
		_G["InterfaceOptionsFrameCategoriesButton9"]:SetScale(0.00001) -- nah we got oUF
		_G["InterfaceOptionsFrameCategoriesButton9"]:SetAlpha(0) -- nah we got oUF
		_G["InterfaceOptionsFrameCategoriesButton12"]:SetScale(0.00001) -- Don't really think this works with oUF hehe
		_G["InterfaceOptionsFrameCategoriesButton12"]:SetAlpha(0) -- Don't really think this works with oUF hehe
		_G["InterfaceOptionsFrameCategoriesButton16"]:SetAlpha(0) -- don't need any stupied nubie stuff
		_G["InterfaceOptionsFrameCategoriesButton16"]:SetScale(0.00001) -- don't need any stupied nubie stuff

        _G["InterfaceOptionsCombatPanelNameplateClassColors"]:Hide() -- wanna show nameplates of enemys class colored all the time
        
	    _G["CompactRaidFrameContainer"]:Hide()
		_G["CompactRaidFrameContainer"]:UnregisterAllEvents()
		_G["CompactPartyFrame"]:Hide()
		_G["CompactPartyFrame"]:UnregisterAllEvents()
		_G["CompactRaidFrameManager"]:Hide()
		_G["CompactRaidFrameManager"]:UnregisterAllEvents()

		_G["InterfaceOptionsSocialPanelTimestamps"]:Hide() -- we got our own time stamps
	    _G["InterfaceOptionsSocialPanelChatStyle"]:Hide() -- we don't like I'M STYLE

        _G["InterfaceOptionsSocialPanelWhisperMode"]:Hide() -- wtf?
        _G["InterfaceOptionsSocialPanelBnWhisperMode"]:Hide() -- wtf?
        _G["InterfaceOptionsSocialPanelConversationMode"]:Hide() -- wtf?
		
		_G["TutorialFrame"]:Hide() -- plox im no nub
		_G["TutorialFrame"]:UnregisterAllEvents()
		
        _G["Advanced_UseUIScale"]:Hide()
        _G["Advanced_UIScaleSlider"]:Hide()
	
		if AftermathhUI.config.chatposistion == true and AftermathhUI.config.bottompanel == true then
		    ChatFrame1:ClearAllPoints()
	        ChatFrame1:SetPoint('BOTTOMLEFT', UIParent, 'BOTTOMLEFT', 11, 30)
	        ChatFrame1:SetHeight(91)
	        ChatFrame1:SetWidth(449)
		end
		
	    if AftermathhUI.config.bottompanel == false then
		    ChatFrame1:ClearAllPoints()
	        ChatFrame1:SetPoint('BOTTOMLEFT', UIParent, 'BOTTOMLEFT', 11, 13)
	        ChatFrame1:SetHeight(107)
	        ChatFrame1:SetWidth(452)
		end
		
	    if AftermathhUI.config.nocombatlog == true then
	        FCF_Close(ChatFrame2)
	    end
		
		for i = 1, NUM_CHAT_WINDOWS do
		    local ChatFont = _G[format("ChatFrame%s", i)]
		    FCF_SetChatWindowFontSize(nil, ChatFont, AftermathhUI.config.chatfontsize)
	    end
    end
end)

Last edited by Aftermathhqt : 04-16-11 at 06:10 AM.
  Reply With Quote
04-16-11, 06:11 AM   #10
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
btw, i have alot of more of these hides.. ill guess ill just fix it all of them

here is link for my ui

--removed off-site download -Seerah

Last edited by Seerah : 04-16-11 at 07:59 PM.
  Reply With Quote
04-16-11, 06:18 AM   #11
Sniffles
A Black Drake
 
Sniffles's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2010
Posts: 86
I don't get any taint errors with this:

Code:
local f = CreateFrame('Frame')
f:RegisterEvent('PLAYER_LOGIN')
f:SetScript('OnEvent', function(self, event)
    if (event == 'PLAYER_LOGIN') then
	
	       print('|cff8080ffWelcome To Aftermathh UI|r')
		   print('|cff8080ffIf you find a bug, please report @ Wowinterface|r')
		    print('|cff8080ffFor help with this UI, type in /UIHelp|r')
		    print('|cff8080ffHope you enjoy Aftermathh UI!|r')
		
		_G["InterfaceOptionsFrameCategoriesButton6"]:SetScale(0.00001) -- Nah we got bartender its okey.
		_G["InterfaceOptionsFrameCategoriesButton6"]:SetAlpha(0) -- Nah we got bartender its okey.
		_G["InterfaceOptionsFrameCategoriesButton10"]:SetScale(0.00001) -- nah we got oUF
		_G["InterfaceOptionsFrameCategoriesButton10"]:SetAlpha(0) -- nah we got oUF
		_G["InterfaceOptionsFrameCategoriesButton11"]:SetScale(0.00001) -- nah we got oUF
		_G["InterfaceOptionsFrameCategoriesButton11"]:SetAlpha(0) -- nah we got oUF
		_G["InterfaceOptionsFrameCategoriesButton9"]:SetScale(0.00001) -- nah we got oUF
		_G["InterfaceOptionsFrameCategoriesButton9"]:SetAlpha(0) -- nah we got oUF
		_G["InterfaceOptionsFrameCategoriesButton12"]:SetScale(0.00001) -- Don't really think this works with oUF hehe
		_G["InterfaceOptionsFrameCategoriesButton12"]:SetAlpha(0) -- Don't really think this works with oUF hehe
		_G["InterfaceOptionsFrameCategoriesButton16"]:SetAlpha(0) -- don't need any stupied nubie stuff
		_G["InterfaceOptionsFrameCategoriesButton16"]:SetScale(0.00001) -- don't need any stupied nubie stuff

        _G["InterfaceOptionsCombatPanelNameplateClassColors"]:Hide() -- wanna show nameplates of enemys class colored all the time
        
	    _G["CompactRaidFrameContainer"]:Hide()
		_G["CompactRaidFrameContainer"]:UnregisterAllEvents()
		_G["CompactPartyFrame"]:Hide()
		_G["CompactPartyFrame"]:UnregisterAllEvents()
		_G["CompactRaidFrameManager"]:Hide()
		_G["CompactRaidFrameManager"]:UnregisterAllEvents()

		_G["InterfaceOptionsSocialPanelTimestamps"]:Hide() -- we got our own time stamps
	    _G["InterfaceOptionsSocialPanelChatStyle"]:Hide() -- we don't like I'M STYLE

		_G["TutorialFrame"]:Hide() -- plox im no nub
		_G["TutorialFrame"]:UnregisterAllEvents()
		
        _G["Advanced_UseUIScale"]:Hide()
        _G["Advanced_UIScaleSlider"]:Hide()
	
		ChatFrame1:ClearAllPoints()
	    ChatFrame1:SetPoint('BOTTOMLEFT', UIParent, 'BOTTOMLEFT', 11, 13)
	    ChatFrame1:SetHeight(107)
	    ChatFrame1:SetWidth(452)	
		
	    FCF_Close(ChatFrame2)
		
		for i = 1, NUM_CHAT_WINDOWS do
		    local ChatFont = _G[format("ChatFrame%s", i)]
		    FCF_SetChatWindowFontSize(nil, ChatFont, 12)
	    end
    end
end)
And please use the tabulator not the space bar

Btw:

Message: ...nterface\AddOns\AftermathhUI\AftermathhUI_Launch.lua:37: attempt to index field 'InterfaceOptionsSocialPanelWhisperMode' (a nil value)
Time: 04/16/11 14:20:52
Count: 1
Stack: ...nterface\AddOns\AftermathhUI\AftermathhUI_Launch.lua:37: in function <...nterface\AddOns\AftermathhUI\AftermathhUI_Launch.lua:3>

Locals: self = <unnamed> {
0 = <userdata>
}
event = "PLAYER_LOGIN"
(*temporary) = nil
(*temporary) = nil
(*temporary) = <userdata>
(*temporary) = <userdata>
(*temporary) = true
(*temporary) = true
(*temporary) = true
(*temporary) = true
(*temporary) = nil
(*temporary) = "attempt to index field 'InterfaceOptionsSocialPanelWhisperMode' (a nil value)"
__________________
Hi!

Last edited by Sniffles : 04-16-11 at 06:22 AM.
  Reply With Quote
04-16-11, 06:21 AM   #12
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by Sniffles View Post
I don't get any taint errors with this:

Code:
local f = CreateFrame('Frame')
f:RegisterEvent('PLAYER_LOGIN')
f:SetScript('OnEvent', function(self, event)
    if (event == 'PLAYER_LOGIN') then
	
	       print('|cff8080ffWelcome To Aftermathh UI|r')
		   print('|cff8080ffIf you find a bug, please report @ Wowinterface|r')
		    print('|cff8080ffFor help with this UI, type in /UIHelp|r')
		    print('|cff8080ffHope you enjoy Aftermathh UI!|r')
		
		_G["InterfaceOptionsFrameCategoriesButton6"]:SetScale(0.00001) -- Nah we got bartender its okey.
		_G["InterfaceOptionsFrameCategoriesButton6"]:SetAlpha(0) -- Nah we got bartender its okey.
		_G["InterfaceOptionsFrameCategoriesButton10"]:SetScale(0.00001) -- nah we got oUF
		_G["InterfaceOptionsFrameCategoriesButton10"]:SetAlpha(0) -- nah we got oUF
		_G["InterfaceOptionsFrameCategoriesButton11"]:SetScale(0.00001) -- nah we got oUF
		_G["InterfaceOptionsFrameCategoriesButton11"]:SetAlpha(0) -- nah we got oUF
		_G["InterfaceOptionsFrameCategoriesButton9"]:SetScale(0.00001) -- nah we got oUF
		_G["InterfaceOptionsFrameCategoriesButton9"]:SetAlpha(0) -- nah we got oUF
		_G["InterfaceOptionsFrameCategoriesButton12"]:SetScale(0.00001) -- Don't really think this works with oUF hehe
		_G["InterfaceOptionsFrameCategoriesButton12"]:SetAlpha(0) -- Don't really think this works with oUF hehe
		_G["InterfaceOptionsFrameCategoriesButton16"]:SetAlpha(0) -- don't need any stupied nubie stuff
		_G["InterfaceOptionsFrameCategoriesButton16"]:SetScale(0.00001) -- don't need any stupied nubie stuff

        _G["InterfaceOptionsCombatPanelNameplateClassColors"]:Hide() -- wanna show nameplates of enemys class colored all the time
        
	    _G["CompactRaidFrameContainer"]:Hide()
		_G["CompactRaidFrameContainer"]:UnregisterAllEvents()
		_G["CompactPartyFrame"]:Hide()
		_G["CompactPartyFrame"]:UnregisterAllEvents()
		_G["CompactRaidFrameManager"]:Hide()
		_G["CompactRaidFrameManager"]:UnregisterAllEvents()

		_G["InterfaceOptionsSocialPanelTimestamps"]:Hide() -- we got our own time stamps
	    _G["InterfaceOptionsSocialPanelChatStyle"]:Hide() -- we don't like I'M STYLE

		_G["TutorialFrame"]:Hide() -- plox im no nub
		_G["TutorialFrame"]:UnregisterAllEvents()
		
        _G["Advanced_UseUIScale"]:Hide()
        _G["Advanced_UIScaleSlider"]:Hide()
	
		ChatFrame1:ClearAllPoints()
	    ChatFrame1:SetPoint('BOTTOMLEFT', UIParent, 'BOTTOMLEFT', 11, 13)
	    ChatFrame1:SetHeight(107)
	    ChatFrame1:SetWidth(452)	
		
	    FCF_Close(ChatFrame2)
		
		for i = 1, NUM_CHAT_WINDOWS do
		    local ChatFont = _G[format("ChatFrame%s", i)]
		    FCF_SetChatWindowFontSize(nil, ChatFont, 12)
	    end
    end
end)
And please use the tabulator not the space bar
hm okey, well try to download my UI
  Reply With Quote
04-16-11, 06:31 AM   #13
Sniffles
A Black Drake
 
Sniffles's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2010
Posts: 86
4 Problems with your UI

1.


I don't have Bartender. So you can do something like this:

Code:
If (IsAddOnLoaded("Bartender")) then
BartenderPanel = createframe(...)
bla
blabla
end
2.
If I cast something I get this LUA Error


3.
Your Loot Frame is buggy


4.
It's really hard to click the tab


And I still didn't get any Taint errors :O
__________________
Hi!
  Reply With Quote
04-16-11, 06:34 AM   #14
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by Sniffles View Post
4 Problems with your UI

1.


I don't have Bartender. So you can do something like this:

Code:
If (IsAddOnLoaded("Bartender")) then
BartenderPanel = createframe(...)
bla
blabla
end
2.
If I cast something I get this LUA Error


3.
Your Loot Frame is buggy


4.
It's really hard to click the tab


And I still didn't get any Taint errors :O

sec, ill send everything, and my WTF.
  Reply With Quote
04-16-11, 06:37 AM   #15
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
--removed link to off-site download -Seerah

Last edited by Seerah : 04-16-11 at 08:00 PM.
  Reply With Quote
04-16-11, 06:51 AM   #16
Sniffles
A Black Drake
 
Sniffles's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2010
Posts: 86
Nope still didn't get any taint errors.

You should take a look at your launch script.

Code:
_G["InterfaceOptionsSocialPanelWhisperMode"]:Hide() -- wtf?
_G["InterfaceOptionsSocialPanelBnWhisperMode"]:Hide() -- wtf?
_G["InterfaceOptionsSocialPanelConversationMode"]:Hide() -- wtf?
Cause LUA Errors

E:
Oh now Bartender and Grid work. Forget to change the foldernames of WTF.
__________________
Hi!

Last edited by Sniffles : 04-16-11 at 07:24 AM.
  Reply With Quote
04-16-11, 07:31 AM   #17
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by Sniffles View Post
Nope still didn't get any taint errors.

You should take a look at your launch script.

Code:
_G["InterfaceOptionsSocialPanelWhisperMode"]:Hide() -- wtf?
_G["InterfaceOptionsSocialPanelBnWhisperMode"]:Hide() -- wtf?
_G["InterfaceOptionsSocialPanelConversationMode"]:Hide() -- wtf?
Cause LUA Errors

E:
Oh now Bartender and Grid work. Forget to change the foldernames of WTF.
i don't get any errors from those, btw try being in raid/party
  Reply With Quote
04-17-11, 09:41 AM   #18
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
some new taints...
Attached Files
File Type: txt taintlog.txt (48.0 KB, 696 views)
  Reply With Quote
04-17-11, 09:49 AM   #19
Sniffles
A Black Drake
 
Sniffles's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2010
Posts: 86
Code:
4/17 17:39:27.593  An action was blocked in combat because of taint from !Beautycase - RaidGroupButton16:Hide()
Originally Posted by Sniffles View Post
Don't hide frames while combat?
__________________
Hi!
  Reply With Quote
04-17-11, 10:40 AM   #20
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by Sniffles View Post
Code:
4/17 17:39:27.593  An action was blocked in combat because of taint from !Beautycase - RaidGroupButton16:Hide()

yes, but i don't have any thing that from beautycase, that is attached to raid frames.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Taints

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off