Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-20-12, 07:43 AM   #1
Rufio
A Murloc Raider
 
Rufio's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 9
ToT default UI Errors

Hello can anyone help me with this bug?

Lua Code:
  1. 1666x [ADDON_ACTION_BLOCKED] AddOn "rufioSettings" tried to call the protected function "TargetFrameToT:Show()".
  2. !BugGrabber-r188\BugGrabber.lua:587: in function <!BugGrabber\BugGrabber.lua:587>
  3. <in C code>
  4. FrameXML\TargetFrame.lua:911: in function "TargetofTarget_Update"
  5. FrameXML\TargetFrame.lua:404: in function "TargetFrame_OnUpdate"
  6. <string>:"*:OnUpdate":1: in function <string>:"*:OnUpdate":1
  7.  
  8. Locals:
  9. nil

I use just a setpoint for the ToT but getting this error even if i don't move it...

Here's my Unitframe Code
Lua Code:
  1. --[[ SetPoints ]]
  2. PlayerFrame:ClearAllPoints() PlayerFrame:SetPoint("center", -165, -140) PlayerFrame.SetPoint = function() end
  3. TargetFrame:ClearAllPoints() TargetFrame:SetPoint("center", 165, -140) TargetFrame.SetPoint = function() end
  4. TargetFrameToT:ClearAllPoints() TargetFrameToT:SetPoint("LEFT",TargetFrame,"Top", -15, -1) TargetFrameToT.SetPoint = function() end
  5. TargetFrameToTTextureFrameName:ClearAllPoints() TargetFrameToTTextureFrameName:SetPoint("LEFT",TargetFrameToT,"Top", -1, -8) TargetFrameToTTextureFrameName.SetPoint = function() end
  6. FocusFrameToT:SetPoint("bottomright", -35, -13)
  7. PartyMemberFrame1:ClearAllPoints() PartyMemberFrame1:SetPoint("topleft", 255, -275)
  8. Boss1TargetFrame:ClearAllPoints() Boss1TargetFrame:SetPoint("TOPRIGHT",UIParent,"TOPRIGHT",-140,-230) Boss1TargetFrame.SetPoint=function()end
  9. TargetFrameSpellBar:ClearAllPoints() TargetFrameSpellBar:SetPoint("center", -120, 65) TargetFrameSpellBar.SetPoint=function()end
  10.  
  11. --[[ Scaling ]]
  12. PlayerFrame:SetScale("1.4")
  13. TargetFrame:SetScale("1.4")
  14. for i=1,4 do _G["PartyMemberFrame"..i]:SetScale("1.3") end
  15. Boss1TargetFrame:SetScale("1.3")
  16. Boss2TargetFrame:SetScale("1.3")
  17. Boss3TargetFrame:SetScale("1.3")
  18. TargetFrameSpellBar:SetScale("1.4")
  19. ComboFrame:SetScale("1.3")
  20.  
  21. --[[ Player castbar ]]
  22. local cbf = "CastingBarFrame"
  23. local cbbs = "Interface\\CastingBar\\UI-CastingBar-Border-Small"
  24. local cbfs = "Interface\\CastingBar\\UI-CastingBar-Flash-Small"
  25.  
  26. _G[cbf]:SetSize(180,10)
  27. _G[cbf.."Border"]:SetSize(240,40)
  28. _G[cbf.."Border"]:SetPoint("TOP", _G[cbf], 0, 15)
  29. _G[cbf.."Border"]:SetTexture(cbbs)
  30. _G[cbf.."Flash"]:SetSize(240,40)
  31. _G[cbf.."Flash"]:SetPoint("TOP", _G[cbf], 0, 15)
  32. _G[cbf.."Flash"]:SetTexture(cbfs)
  33. _G[cbf]:SetScale("1.3")
  34. _G[cbf.."Text"]:SetPoint("TOP", _G[cbf], 0, 4)
  35. _G[cbf]:ClearAllPoints()
  36. _G[cbf]:SetPoint("TOP", WorldFrame, "BOTTOM", 0, 130) --0, 100
  37. _G[cbf].SetPoint = function() end
  38. _G[cbf.."Icon"]:Show()
  39. _G[cbf.."Icon"]:SetHeight(20)
  40. _G[cbf.."Icon"]:SetWidth(20)
  41.  
  42. --[[ Castbar timer from thek ]]
  43. _G[cbf].timer = _G[cbf]:CreateFontString(nil)
  44. _G[cbf].timer:SetFont("Fonts\\ARIALN.ttf", 13, "THINOUTLINE")
  45. _G[cbf].timer:SetPoint("RIGHT", _G[cbf], "RIGHT", 24, 0)
  46. _G[cbf].update = .1
  47.  
  48. local tcbf = "TargetFrameSpellBar"
  49. _G[tcbf].timer = _G[tcbf]:CreateFontString(nil)
  50. _G[tcbf].timer:SetFont("Fonts\\ARIALN.ttf", 13, "THINOUTLINE")
  51. _G[tcbf].timer:SetPoint("RIGHT", _G[tcbf], "RIGHT", 24, 0)
  52. _G[tcbf].update = .1
  53.  
  54. local fcbf = "FocusFrameSpellBar"
  55. _G[fcbf].timer = _G[fcbf]:CreateFontString(nil)
  56. _G[fcbf].timer:SetFont("Fonts\\ARIALN.ttf", 13, "THINOUTLINE")
  57. _G[fcbf].timer:SetPoint("RIGHT", _G[fcbf], "RIGHT", 24, 0)
  58. _G[fcbf].update = .1
  59.  
  60. hooksecurefunc("CastingBarFrame_OnUpdate", function(self, elapsed)
  61.     if not self.timer then return end
  62.     if self.update and self.update < elapsed then
  63.         if self.casting then
  64.             self.timer:SetText(format("%.1f", max(self.maxValue - self.value, 0)))
  65.         elseif self.channeling then
  66.             self.timer:SetText(format("%.1f", max(self.value, 0)))
  67.         else
  68.             self.timer:SetText("")
  69.         end
  70.         self.update = .1
  71.     else
  72.         self.update = self.update - elapsed
  73.     end
  74. end)
  75.  
  76. --[[ Focus Castbar ]]
  77. hooksecurefunc(FocusFrameSpellBar, "Show", function()
  78.     FocusFrameSpellBar:SetScale("1.6")
  79.     FocusFrameSpellBar:ClearAllPoints()
  80.     FocusFrameSpellBar:SetPoint("CENTER", UIParent, "CENTER", 0, 150)
  81.     FocusFrameSpellBar.SetPoint = function() end
  82. end)
  83. FocusFrameSpellBar:SetStatusBarColor(0,0.45,0.9); FocusFrameSpellBar.SetStatusBarColor = function() end
  84.  
  85. --[[ Runebar ]]
  86. RuneFrame:ClearAllPoints() RuneFrame:SetPoint("CENTER",UIParent,"CENTER",0,-130) RuneFrame.SetPoint = function() end
  87. for i=1,6 do _G["RuneButtonIndividual"..i]:SetScale("1.4") end
  88. for i=1,6 do _G["RuneButtonIndividual"..i]:ClearAllPoints() end
  89. RuneButtonIndividual3:SetPoint("CENTER",-12,0)
  90. RuneButtonIndividual4:SetPoint("CENTER",12,0)
  91. RuneButtonIndividual2:SetPoint("RIGHT",RuneButtonIndividual3,"LEFT",-4,8)
  92. RuneButtonIndividual1:SetPoint("RIGHT",RuneButtonIndividual2,"LEFT",-4,8)
  93. RuneButtonIndividual5:SetPoint("LEFT",RuneButtonIndividual4,"RIGHT",4,8)
  94. RuneButtonIndividual6:SetPoint("LEFT",RuneButtonIndividual5,"RIGHT",4,8)
  95.  
  96. --[[ hiding pvp icon ]]
  97. PlayerPVPIcon:SetAlpha(0)
  98. TargetFrameTextureFramePVPIcon:SetAlpha(0)
  99.  
  100. --[[ Target and Focus HP-Text ]]
  101. FrameList = {"Player", "Target", "Focus"}
  102. function UpdateHealthValues(...)
  103.         for i = 1, select("#", unpack(FrameList)) do
  104.                 local FrameName = (select(i, unpack(FrameList)))
  105.                 local Health = AbbreviateLargeNumbers(UnitHealth(FrameName))
  106.                 local HealthMax = AbbreviateLargeNumbers(UnitHealthMax(FrameName))
  107.                 local HealthPercent = (UnitHealth(FrameName)/UnitHealthMax(FrameName))*100
  108.                 --Curr&MaxHP _G[FrameName.."FrameHealthBar"].TextString:SetText(Health.."/"..HealthMax.." ("..format("%.0f",HealthPercent).."%)")
  109.                 _G[FrameName.."FrameHealthBar"].TextString:SetText(Health.." ("..format("%.0f",HealthPercent).."%)")
  110.         end
  111. end
  112. hooksecurefunc("TextStatusBar_UpdateTextStringWithValues", UpdateHealthValues)
  113.  
  114. hooksecurefunc("TextStatusBar_UpdateTextStringWithValues", function()
  115. PlayerFrameManaBar.TextString:SetText(AbbreviateLargeNumbers(UnitMana("player")))
  116. TargetFrameManaBar.TextString:SetText(AbbreviateLargeNumbers(UnitMana("target")))
  117. FocusFrameManaBar.TextString:SetText(AbbreviateLargeNumbers(UnitMana("focus")))
  118. end)
  119.  
  120. --[[ hiding combat text ]]
  121. PetHitIndicator:ClearAllPoints()
  122. PlayerHitIndicator:ClearAllPoints()
  123.  
  124. --[[ Class Icons ]]
  125. UFP = "UnitFramePortrait_Update";
  126. UICC = "Interface\\TargetingFrame\\UI-Classes-Circles";
  127. CIT = CLASS_ICON_TCOORDS
  128.  
  129. hooksecurefunc(UFP,function(self)
  130.  if self.portrait then
  131.   if self.unit == "player" or self.unit == "pet" or self.unit == "partypet1" or self.unit == "partypet2" or self.unit == "partypet3" or self.unit == "partypet4" then return end
  132.    local t = CIT[select(2,UnitClass(self.unit))]
  133.  if t
  134.   then self.portrait:SetTexture(UICC) self.portrait:SetTexCoord(unpack(t)) end end end)

I've no clue how to fix this
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » ToT default UI Errors


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