Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-12-14, 11:04 AM   #1
cokedrivers
A Rage Talon Dragon Guard
 
cokedrivers's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 325
Errors when doing the Chen Stormstrout Quest

As the title states I get these 2 errors:

Error #1
Code:
14x [ADDON_ACTION_BLOCKED] AddOn "BasicUI" tried to call the protected function "ArenaEnemyFrames:ClearAllPoints()".
!BugGrabber-r198-release\BugGrabber.lua:552: in function <!BugGrabber\BugGrabber.lua:552>
<in C code>
FrameXML\UIParent.lua:2224: in function "UIParentManageFramePositions"
FrameXML\UIParent.lua:1578: in function <FrameXML\UIParent.lua:1565>
<in C code>
FrameXML\UIParent.lua:2263: in function "UIParent_ManageFramePositions"
FrameXML\BuffFrame.lua:369: in function "BuffFrame_UpdateAllBuffAnchors"
FrameXML\BuffFrame.lua:112: in function "BuffFrame_Update"
FrameXML\BuffFrame.lua:52: in function <FrameXML\BuffFrame.lua:48>

Locals:
nil
Error #2
Code:
14x [ADDON_ACTION_BLOCKED] AddOn "BasicUI" tried to call the protected function "ArenaEnemyFrames:SetPoint()".
!BugGrabber-r198-release\BugGrabber.lua:552: in function <!BugGrabber\BugGrabber.lua:552>
<in C code>
FrameXML\UIParent.lua:2225: in function "UIParentManageFramePositions"
FrameXML\UIParent.lua:1578: in function <FrameXML\UIParent.lua:1565>
<in C code>
FrameXML\UIParent.lua:2263: in function "UIParent_ManageFramePositions"
FrameXML\BuffFrame.lua:369: in function "BuffFrame_UpdateAllBuffAnchors"
FrameXML\BuffFrame.lua:112: in function "BuffFrame_Update"
FrameXML\BuffFrame.lua:52: in function <FrameXML\BuffFrame.lua:48>

Locals:
nil
Error #3
Code:
14x [ADDON_ACTION_BLOCKED] AddOn "BasicUI" tried to call the protected function "ArenaPrepFrames:SetPoint()".
!BugGrabber-r198-release\BugGrabber.lua:552: in function <!BugGrabber\BugGrabber.lua:552>
<in C code>
FrameXML\UIParent.lua:2230: in function "UIParentManageFramePositions"
FrameXML\UIParent.lua:1578: in function <FrameXML\UIParent.lua:1565>
<in C code>
FrameXML\UIParent.lua:2263: in function "UIParent_ManageFramePositions"
FrameXML\BuffFrame.lua:369: in function "BuffFrame_UpdateAllBuffAnchors"
FrameXML\BuffFrame.lua:112: in function "BuffFrame_Update"
FrameXML\BuffFrame.lua:52: in function <FrameXML\BuffFrame.lua:48>

Locals:
nil
Error #4
Code:
14x [ADDON_ACTION_BLOCKED] AddOn "BasicUI" tried to call the protected function "ArenaPrepFrames:ClearAllPoints()".
!BugGrabber-r198-release\BugGrabber.lua:552: in function <!BugGrabber\BugGrabber.lua:552>
<in C code>
FrameXML\UIParent.lua:2229: in function "UIParentManageFramePositions"
FrameXML\UIParent.lua:1578: in function <FrameXML\UIParent.lua:1565>
<in C code>
FrameXML\UIParent.lua:2263: in function "UIParent_ManageFramePositions"
FrameXML\BuffFrame.lua:369: in function "BuffFrame_UpdateAllBuffAnchors"
FrameXML\BuffFrame.lua:112: in function "BuffFrame_Update"
FrameXML\BuffFrame.lua:52: in function <FrameXML\BuffFrame.lua:48>

Locals:
nil
Here is my Unitframes.lua:
Lua Code:
  1. local B, C, DB = unpack(select(2, ...)) -- Import:  B - function; C - config; DB - Database
  2.  
  3. if C["unitframes"].enable ~= true then return end
  4.  
  5.  
  6. -- Special Thanks to the guys over at Arena Junkies for most of these scripts
  7. -- [url]http://www.arenajunkies.com/topic/222642-default-ui-scripts/[/url]
  8.  
  9. local _G = _G
  10.  
  11.  
  12. -- Player Frame
  13. if C["unitframes"].player.enable then
  14.  
  15.     -- Frame Scale
  16.     _G["PlayerFrame"]:SetScale(C["unitframes"].player.scale);  
  17.     PlayerFrameHealthBarText:SetFont(C['media'].fontNormal, C["unitframes"].player.fontSize,"THINOUTLINE");
  18.     PlayerFrameManaBarText:SetFont(C['media'].fontNormal, C["unitframes"].player.fontSize, "THINOUTLINE");
  19.     PlayerFrameAlternateManaBarText:SetFont(C['media'].fontNormal, C["unitframes"].player.fontSize, "THINOUTLINE");
  20.     PetFrameHealthBarText:SetFont(C['media'].fontNormal, C["unitframes"].player.fontSizepet,"THINOUTLINE");
  21.     PetFrameManaBarText:SetFont(C['media'].fontNormal, C["unitframes"].player.fontSizepet, "THINOUTLINE");
  22.  
  23. end
  24.  
  25. -- Target Frame
  26. if C["unitframes"].target.enable then
  27.  
  28.     -- Frame Scale
  29.      _G["TargetFrame"]:SetScale(C["unitframes"].target.scale);
  30.     TargetFrameTextureFrameHealthBarText:SetFont(C['media'].fontNormal, C["unitframes"].target.fontSize, "THINOUTLINE");
  31.     TargetFrameTextureFrameManaBarText:SetFont(C['media'].fontNormal, C["unitframes"].target.fontSize, "THINOUTLINE");
  32.  
  33. end;
  34.  
  35. -- Focus Frame
  36. if C["unitframes"].focus.enable then
  37.  
  38.     -- Frame Scale
  39.      _G["FocusFrame"]:SetScale(C["unitframes"].focus.scale)
  40.     FocusFrameTextureFrameHealthBarText:SetFont(C['media'].fontNormal, C["unitframes"].focus.fontSize,"THINOUTLINE")
  41.     FocusFrameTextureFrameManaBarText:SetFont(C['media'].fontNormal, C["unitframes"].focus.fontSize,"THINOUTLINE")
  42.  
  43. end;
  44.  
  45.  
  46. -- Party Frames --
  47. if C["unitframes"].party.enable then
  48.  
  49.     -- Clear all old settings
  50.     PartyMemberFrame1:ClearAllPoints();
  51.     PartyMemberFrame2:ClearAllPoints();
  52.     PartyMemberFrame3:ClearAllPoints();
  53.     PartyMemberFrame4:ClearAllPoints();
  54.  
  55.     -- Create new locations
  56.     PartyMemberFrame1:SetPoint(C['unitframes'].party.position.relAnchor, UIParent, C['unitframes'].party.position.offSetX, C['unitframes'].party.position.offSetY);
  57.     PartyMemberFrame2:SetPoint("TOPLEFT", PartyMemberFrame1, 0, -75);
  58.     PartyMemberFrame3:SetPoint("TOPLEFT", PartyMemberFrame2, 0, -75);
  59.     PartyMemberFrame4:SetPoint("TOPLEFT", PartyMemberFrame3, 0, -75);
  60.  
  61.     -- Make the new locations stay
  62.     PartyMemberFrame1.SetPoint = function() end;
  63.     PartyMemberFrame2.SetPoint = function() end;
  64.     PartyMemberFrame3.SetPoint = function() end;
  65.     PartyMemberFrame4.SetPoint = function() end;
  66.  
  67.     -- Set the scale of all the frames
  68.     PartyMemberFrame1:SetScale(C["unitframes"].party.scale);
  69.     PartyMemberFrame2:SetScale(C["unitframes"].party.scale);
  70.     PartyMemberFrame3:SetScale(C["unitframes"].party.scale);
  71.     PartyMemberFrame4:SetScale(C["unitframes"].party.scale);
  72.    
  73.     -- Set Font Size
  74.     PartyMemberFrame1HealthBarText:SetFont(C['media'].fontNormal, C["unitframes"].party.fontSize, "THINOUTLINE")
  75.     PartyMemberFrame1ManaBarText:SetFont(C['media'].fontNormal, C["unitframes"].party.fontSize, "THINOUTLINE")
  76.     PartyMemberFrame2HealthBarText:SetFont(C['media'].fontNormal, C["unitframes"].party.fontSize, "THINOUTLINE")
  77.     PartyMemberFrame2ManaBarText:SetFont(C['media'].fontNormal, C["unitframes"].party.fontSize, "THINOUTLINE")
  78.     PartyMemberFrame3HealthBarText:SetFont(C['media'].fontNormal, C["unitframes"].party.fontSize, "THINOUTLINE")
  79.     PartyMemberFrame3ManaBarText:SetFont(C['media'].fontNormal, C["unitframes"].party.fontSize, "THINOUTLINE")
  80.     PartyMemberFrame4HealthBarText:SetFont(C['media'].fontNormal, C["unitframes"].party.fontSize, "THINOUTLINE")
  81.     PartyMemberFrame4ManaBarText:SetFont(C['media'].fontNormal, C["unitframes"].party.fontSize, "THINOUTLINE")
  82. end;
  83.  
  84.  -- Arena Frames
  85. if C["unitframes"].arena.enable then
  86.     LoadAddOn("Blizzard_ArenaUI"); -- You only need to run this once. You can safely delete any copies of this line.
  87.      
  88.     ArenaEnemyFrames:SetScale(C["unitframes"].arena.scale);
  89.    
  90.     ArenaEnemyFrame1HealthBarText:SetFont(C['media'].fontNormal, C["unitframes"].arena.fontSize,"THINOUTLINE");
  91.     ArenaEnemyFrame1ManaBarText:SetFont(C['media'].fontNormal, C["unitframes"].arena.fontSize, "THINOUTLINE");
  92.     ArenaEnemyFrame2HealthBarText:SetFont(C['media'].fontNormal, C["unitframes"].arena.fontSize,"THINOUTLINE");
  93.     ArenaEnemyFrame2ManaBarText:SetFont(C['media'].fontNormal, C["unitframes"].arena.fontSize, "THINOUTLINE");
  94.     ArenaEnemyFrame3HealthBarText:SetFont(C['media'].fontNormal, C["unitframes"].arena.fontSize,"THINOUTLINE");
  95.     ArenaEnemyFrame3ManaBarText:SetFont(C['media'].fontNormal, C["unitframes"].arena.fontSize, "THINOUTLINE");
  96.     ArenaEnemyFrame4HealthBarText:SetFont(C['media'].fontNormal, C["unitframes"].arena.fontSize,"THINOUTLINE");
  97.     ArenaEnemyFrame4ManaBarText:SetFont(C['media'].fontNormal, C["unitframes"].arena.fontSize, "THINOUTLINE");
  98.     ArenaEnemyFrame5HealthBarText:SetFont(C['media'].fontNormal, C["unitframes"].arena.fontSize,"THINOUTLINE");
  99.     ArenaEnemyFrame5ManaBarText:SetFont(C['media'].fontNormal, C["unitframes"].arena.fontSize, "THINOUTLINE");
  100.  
  101.  
  102.     if C["unitframes"].arena.tracker == true then
  103.         trinkets = {};
  104.         local arenaFrame,trinket;
  105.         for i = 1, 5 do
  106.             arenaFrame = "ArenaEnemyFrame"..i;
  107.             trinket = CreateFrame("Cooldown", arenaFrame.."Trinket", ArenaEnemyFrames);
  108.             trinket:SetPoint("TOPRIGHT", arenaFrame, 30, -6);
  109.             trinket:SetSize(24, 24);
  110.             trinket.icon = trinket:CreateTexture(nil, "BACKGROUND");
  111.             trinket.icon:SetAllPoints();
  112.             trinket.icon:SetTexture("Interface\\Icons\\inv_jewelry_trinketpvp_01");
  113.             trinket:Hide();
  114.             trinkets["arena"..i] = trinket;
  115.         end;
  116.         local events = CreateFrame("Frame");
  117.         function events:UNIT_SPELLCAST_SUCCEEDED(unitID, spell, rank, lineID, spellID)
  118.             if not trinkets[unitID] then
  119.                 return;
  120.             end ;      
  121.             if spellID == 59752 or spellID == 42292 then
  122.                 CooldownFrame_SetTimer(trinkets[unitID], GetTime(), 120, 1);
  123.                 SendChatMessage("Trinket used by: "..GetUnitName(unitID, true), "PARTY");
  124.             end;
  125.         end;
  126.         function events:PLAYER_ENTERING_WORLD()
  127.             local _, instanceType = IsInInstance();
  128.             if instanceType == "arena" then
  129.                 self:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED");
  130.             elseif self:IsEventRegistered("UNIT_SPELLCAST_SUCCEEDED") then
  131.                 self:UnregisterEvent("UNIT_SPELLCAST_SUCCEEDED");
  132.                 for _, trinket in pairs(trinkets) do
  133.                     trinket:SetCooldown(0, 0);
  134.                     trinket:Hide();
  135.                 end;        
  136.             end;
  137.         end;
  138.         events:SetScript("OnEvent", function(self, event, ...) return self[event](self, ...) end);
  139.         events:RegisterEvent("PLAYER_ENTERING_WORLD");
  140.     end;
  141. end;
  142.  
  143.  -- Boss Frames
  144. if C["unitframes"].boss.enable then
  145.     for i = 1,4 do
  146.         local boss = _G["Boss"..i.."TargetFrame"];
  147.         if boss then
  148.             boss:SetScale(C["unitframes"].boss.scale)
  149.             boss:ClearAllPoints();
  150.             boss:SetPoint(C['unitframes'].boss.position.relAnchor, UIParent, C['unitframes'].boss.position.offSetX, C['unitframes'].boss.position.offSetY);
  151.             boss.ClearAllPoints = function() end;
  152.             boss.SetPoint = function() end;    
  153.         end;
  154.     end;
  155. end;
  156.  
  157. -- Font Style thanks to Phanx from WoWinterface.
  158. local shorts = {
  159.     { 1e10, 1e9, "%.0fb" }, --  10b+ as  12b
  160.     {  1e9, 1e9, "%.1fb" }, --   1b+ as 8.3b
  161.     {  1e7, 1e6, "%.0fm" }, --  10m+ as  14m
  162.     {  1e6, 1e6, "%.1fm" }, --   1m+ as 7.4m
  163.     {  1e5, 1e3, "%.0fk" }, -- 100k+ as 840k
  164.     {  1e3, 1e3, "%.1fk" }, --   1k+ as 2.5k
  165.     {    0,   1,    "%d" }, -- < 1k  as  974
  166. }
  167. for i = 1, #shorts do
  168.     shorts[i][4] = shorts[i][3] .. " (%.0f%%)"
  169. end
  170.  
  171. hooksecurefunc("TextStatusBar_UpdateTextStringWithValues", function(statusBar, fontString, value, valueMin, valueMax)
  172.     if value == 0 then
  173.         return fontString:SetText("")
  174.     end
  175.  
  176.     local style = GetCVar("statusTextDisplay")
  177.     if style == "PERCENT" then
  178.         return fontString:SetFormattedText("%.0f%%", value / valueMax * 100)
  179.     end
  180.     for i = 1, #shorts do
  181.         local t = shorts[i]
  182.         if value >= t[1] then
  183.             if style == "BOTH" then
  184.                 return fontString:SetFormattedText(t[4], value / t[2], value / valueMax * 100)
  185.             else
  186.                 return fontString:SetFormattedText(t[3], value / t[2])             
  187.             end
  188.         end
  189.     end
  190. end)
  191.  
  192. local function UnitIsPet(unit)
  193.     return UnitPlayerControlled(unit) and not UnitIsPlayer(unit)
  194. end
  195.  
  196. hooksecurefunc("UnitFrame_Update", function(self)
  197.     if not self.name then return end
  198.     local unit = self.unit -- THIS WAS MISSING
  199.  
  200.     local color
  201.    
  202.     if UnitIsPlayer(unit) then
  203.         local _, class = UnitClass(unit)
  204.         color = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[class]
  205.     elseif UnitIsTapped(unit) and not UnitIsTappedByPlayer(unit) then
  206.         color = GRAY_FONT_COLOR
  207.     elseif UnitIsEnemy(unit, "player") then
  208.         color = FACTION_BAR_COLORS[1]      
  209.     else
  210.         local reaction = UnitReaction(unit, "player")
  211.         color = reaction and FACTION_BAR_COLORS[reaction] or FACTION_BAR_COLORS[5]
  212.     end
  213.  
  214.     if not color then
  215.         color = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)["priest"]
  216.     end
  217.  
  218.     if UnitIsPet(unit) then
  219.         self.name:SetTextColor(1, 1, 1)
  220.     else
  221.         self.name:SetTextColor(color.r, color.g, color.b)
  222.     end
  223.  
  224. end)
  225.  
  226.  
  227. -- Disable healing/damage spam over player/pet frame:
  228. PlayerHitIndicator:SetText(nil)
  229. PlayerHitIndicator.SetText = function() end
  230. PetHitIndicator:SetText(nil)
  231. PetHitIndicator.SetText = function() end

And here is my Buff.lua:
Lua Code:
  1. local B, C, DB = unpack(select(2, ...)) -- Import:  B - function; C - config; DB - Database
  2.  
  3. if C['buff'].enable ~= true then return end
  4.  
  5. BuffFrame:ClearAllPoints()
  6. BuffFrame:SetScale(C["buff"].buffScale)
  7. BuffFrame:SetPoint('TOPRIGHT', Minimap, 'TOPLEFT', -25, 0)

and here is the config for both:
Lua Code:
  1. local B, C, DB = unpack(select(2, ...)) -- Import:  B - function; C - config; DB - Database
  2.  
  3. ---------------
  4. -- Buff Options
  5. ----------------
  6. DB["buff"] = {
  7.     ["enable"] = true,
  8.     ["buffScale"] = 1.19,
  9. }
  10.  
  11. --------------
  12. -- Unitframes
  13. --------------
  14. DB["unitframes"] = {
  15.    
  16.     ["enable"] = true,
  17.     ["player"] = {
  18.         ["enable"] = true,          -- Enable Player Frame Adjustments
  19.         ["scale"] = 1.15,           -- Player Frame Scale
  20.         ["fontSize"] = 13,          -- Stausbar Font Size
  21.         ["fontSizepet"] = 10,           -- Stausbar Font Size
  22.     },
  23.     ["target"] = {
  24.         ["enable"] = true,          -- Enable Target Frame Adjustments
  25.         ["scale"] = 1.15,           -- Target Frame Scale
  26.         ["fontSize"] = 13,          -- Stausbar Font Size
  27.     },
  28.     ["focus"] = {
  29.         ["enable"] = true,          -- Enable Focus Frame Adjustments
  30.         ["scale"] = 1.15,           -- Focus Frame Scale
  31.         ["fontSize"] = 13,          -- Stausbar Font Size
  32.     },
  33.     ["party"] = {
  34.         ["enable"] = true,
  35.         ["scale"] = 1.15,
  36.         ["fontSize"] = 11,          -- Stausbar Font Size
  37.         ["position"] = {
  38.             ["relAnchor"] = "TOPLEFT",
  39.             ["offSetX"] = 10,       -- Controls the X offset. (Left - Right)
  40.             ["offSetY"] = -150,     -- Controls the Y offset. (Up - Down)
  41.         },
  42.     },
  43.     ["arena"] = {
  44.         ["enable"] = true,
  45.         ["scale"] = 1.5,
  46.         ["fontSize"] = 11,          -- Stausbar Font Size
  47.         ["tracker"] = true,
  48.     },
  49.     ["boss"] = {
  50.         ["enable"] = true,
  51.         ["scale"] = 1.15,
  52.         ["fontSize"] = 13,          -- Stausbar Font Size  
  53.         ["position"] = {
  54.             ["relAnchor"] = "TOPRIGHT",
  55.             ["offSetX"] = -50,      -- Controls the X offset. (Left - Right)
  56.             ["offSetY"] = -250,     -- Controls the Y offset. (Up - Down)
  57.         },
  58.     },
  59. }

and beings I use DB and C here is the converter:
Lua Code:
  1. ----------------------------------------------------------------------------
  2. -- This Module loads new user settings if BasicUI_Config is loaded
  3. ----------------------------------------------------------------------------
  4. local B, C, DB = unpack(select(2, ...)) -- Import:  B - function; C - config; DB - Database
  5.  
  6. --Convert default database
  7. for group,options in pairs(DB) do
  8.     if not C[group] then C[group] = {} end
  9.     for option, value in pairs(options) do
  10.         C[group][option] = value
  11.     end
  12. end
  13.  
  14. if IsAddOnLoaded("BasicUI_Config") then
  15.     local BasicUIConfig = LibStub("AceAddon-3.0"):GetAddon("BasicUIConfig")
  16.     BasicUIConfig:Load()
  17.  
  18.     --Load settings from BasicUIConfig database
  19.     for group, options in pairs(BasicUIConfig.db.profile) do
  20.         if C[group] then
  21.             for option, value in pairs(options) do
  22.                 C[group][option] = value
  23.             end
  24.         end
  25.     end
  26.        
  27.     B.SavePath = BasicUIConfig.db.profile
  28. end

Thanks for any help.
Coke

Last edited by cokedrivers : 03-12-14 at 11:12 AM. Reason: Added other 3 errors
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Errors when doing the Chen Stormstrout Quest


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