A Rage Talon Dragon Guard
Join Date: Aug 2009
Posts: 325
|
Error the first time i cast a spell.
Evertime just after login I get tis error when I cast a spell, weather its to hearth or mount or any thing else as long as it is a castable spell it throws this error.
But if I press close the next time I cast it shows no error.
Here is the error:
Code:
Message: C stack overflow
Time: 03/11/14 09:49:33
Count: 1
Stack: [C]: in function `SetWidth'
Interface\AddOns\BasicUI\Modules\General\Castbar.lua:29: in function <Interface\AddOns\BasicUI\Modules\General\Castbar.lua:17>
Interface\AddOns\BasicUI\Modules\General\Castbar.lua:107: in function <Interface\AddOns\BasicUI\Modules\General\Castbar.lua:105>
[C]: in function `SetWidth'
Interface\AddOns\BasicUI\Modules\General\Castbar.lua:29: in function <Interface\AddOns\BasicUI\Modules\General\Castbar.lua:17>
Interface\AddOns\BasicUI\Modules\General\Castbar.lua:107: in function <Interface\AddOns\BasicUI\Modules\General\Castbar.lua:105>
[C]: in function `SetWidth'
Interface\AddOns\BasicUI\Modules\General\Castbar.lua:29: in function <Interface\AddOns\BasicUI\Modules\General\Castbar.lua:17>
Interface\AddOns\BasicUI\Modules\General\Castbar.lua:107: in function <Interface\AddOns\BasicUI\Modules\General\Castbar.lua:105>
[C]: in function `SetWidth'
Interface\AddOns\BasicUI\Modules\General\Castbar.lua:29: in function <Interface\AddOns\BasicUI\Modules\General\Castbar.lua:17>
Interface\AddOns\BasicUI\Modules\General\Castbar.lua:107: in function <Interface\AddOns\BasicUI\Modules\General\Castbar.lua:105>
...
[C]: in function `SetWidth'
Interface\AddOns\BasicUI\Modules\General\Castbar.lua:29: in function <Interface\AddOns\BasicUI\Modules\General\Castbar.lua:17>
Interface\AddOns\BasicUI\Modules\General\Castbar.lua:107: in function <Interface\AddOns\BasicUI\Modules\General\Castbar.lua:105>
[C]: in function `SetWidth'
Interface\AddOns\BasicUI\Modules\General\Castbar.lua:29: in function <Interface\AddOns\BasicUI\Modules\General\Castbar.lua:17>
Interface\AddOns\BasicUI\Modules\General\Castbar.lua:107: in function <Interface\AddOns\BasicUI\Modules\General\Castbar.lua:105>
[C]: in function `SetValue'
Interface\FrameXML\CastingBarFrame.lua:279: in function <Interface\FrameXML\CastingBarFrame.lua:268>
[C]: in function `CastingBarFrame_OnUpdate'
[string "*:OnUpdate"]:1: in function <[string "*:OnUpdate"]:1>
Locals: (*temporary) = CastingBarFrame {
0 = <userdata>
showTradeSkills = true
holdTime = 0
d = <table> {
}
border = CastingBarFrameBorder {
}
unit = "player"
df = CastbarCastingBarFrame {
}
showCastbar = true
value = 0.016000000759959
l = true
icon = CastingBarFrameIcon {
}
barSpark = CastingBarFrameSpark {
}
timer = <unnamed> {
}
castID = 52
barFlash = CastingBarFrameFlash {
}
maxValue = 1.5
text = CastingBarFrameText {
}
name = <unnamed> {
}
lag = <unnamed> {
}
Show = <function> defined =[C]:-1
borderShield = CastingBarFrameBorderShield {
}
flash = 1
showShield = false
casting = 1
update = 0.1
reset = true
}
(*temporary) = 240
(*temporary) = 0.016000000759959
(*temporary) = <function> defined =[C]:-1
(*temporary) = <function> defined @Interface\AddOns\BasicUI\Modules\General\Castbar.lua:105
(*temporary) = CastingBarFrame {
0 = <userdata>
showTradeSkills = true
holdTime = 0
d = <table> {
}
border = CastingBarFrameBorder {
}
unit = "player"
df = CastbarCastingBarFrame {
}
showCastbar = true
value = 0.016000000759959
l = true
icon = CastingBarFrameIcon {
}
barSpark = CastingBarFrameSpark {
}
timer = <unnamed> {
}
castID = 52
barFlash = CastingBarFrameFlash {
}
maxValue = 1.5
text = CastingBarFrameText {
}
name = <unnamed> {
}
lag = <unnamed> {
}
Show = <function> defined =[C]:-1
borderShield = CastingBarFrameBorderShield {
}
flash = 1
showShield = false
casting = 1
update = 0.1
reset = true
}
(*temporary) = 0.016000000759959
Here is my castbar.lua
Lua Code:
local B, C, DB = unpack(select(2, ...)) -- Import: B - function; C - config; DB - Database if C['castbar'].enable ~= true then return end --[[ All Credit for Castbar.lua goes to thek. thek: Castbar = [url]http://www.wowinterface.com/downloads/info11334-thekCastbar.html[/url]. Edited by Cokedriver. ]] local d = {}; local find = string.find; local floor = math.floor; local function Set(a, k) a:SetFrameLevel(_G[k]:GetFrameLevel() - 1); if find(k, "MirrorTimer") then _G[k.."StatusBar"]:SetStatusBarColor(B.ccolor.r, B.ccolor.g, B.ccolor.b); _G[k.."StatusBar"]:SetWidth(240); _G[k.."StatusBar"]:SetHeight(24); _G[k]:ClearAllPoints(); _G[k]:SetPoint("TOPLEFT", a, "TOPLEFT", B.scale(_G[k].d.x), -B.scale(_G[k].d.y)); _G[k.."StatusBar"]:ClearAllPoints(); _G[k.."StatusBar"]:SetPoint("TOPLEFT", a, "TOPLEFT", B.scale(5), -B.scale(_G[k].d.y)); else _G[k]:SetStatusBarColor(B.ccolor.r, B.ccolor.g, B.ccolor.b); _G[k]:SetWidth(240); _G[k]:SetHeight(24); _G[k]:ClearAllPoints(); _G[k]:SetPoint("TOPLEFT", a, "TOPLEFT", B.scale(_G[k].d.x), -B.scale(_G[k].d.y)) end; if C['castbar'][k].enableLag then local d, u, l = GetNetStats(); local min, max = _G[k]:GetMinMaxValues(); local lv = ( l / 1000 ) / ( max - min ); if ( lv < 0 ) then lv = 0; elseif ( lv > 1 ) then lv = 1 end; if ( _G[k].channeling ) then _G[k].lag:ClearAllPoints(); _G[k].lag:SetPoint("LEFT", _G[k], "LEFT", 0, 0); else _G[k].lag:ClearAllPoints(); _G[k].lag:SetPoint("RIGHT", _G[k], "RIGHT", 0, 0); end; _G[k].lag:SetWidth(_G[k]:GetWidth() * lv); end end; if C['castbar']["TargetFrameSpellBar"].enable then function Target_Spellbar_AdjustPosition() Set(_G["TargetFrameSpellBar"].df, "TargetFrameSpellBar"); end; end; if C['castbar']["FocusFrameSpellBar"].enable then function Focus_Spellbar_AdjustPosition() Set(_G["FocusFrameSpellBar"].df, "FocusFrameSpellBar"); end; end for k, _ in pairs(C['castbar']) do if (k ~="enable" and C['castbar'][k].enable) then local a = CreateFrame("Frame", "Castbar"..k, UIParent); d.w, d.h, d.x, d.y = nil, nil, nil, nil; _G[k.."Border"]:SetTexture(""); _G[k.."Text"]:ClearAllPoints(""); _G[k.."Text"]:SetFont(C['media'].fontNormal, C["castbar"][k].fontSize, ""); if find(k, "MirrorTimer") then d.w = 240 + (5 * 2); d.h = 24 + (5 * 2); d.x = 5; d.y = 5; _G[k.."Text"]:SetPoint("CENTER", k, -10, 2); _G[k.."StatusBar"]:SetStatusBarTexture(C['castbar'].statusbar); else d.w = 240 + 24 + (5 * 2) + 5; d.h = 24 + (5 * 2); d.x = 24 + 5 + 5; d.y = 5; _G[k.."Text"]:SetPoint(C['castbar'][k].textPosition); _G[k]:SetStatusBarTexture(C['castbar'].statusbar); _G[k.."Flash"].Show = _G[k.."Flash"].Hide; _G[k.."Spark"].Show = _G[k.."Spark"].Hide; if _G[k.."BorderShield"] then _G[k.."BorderShield"].Show = _G[k.."BorderShield"].Hide; end; if _G[k.."Icon"] then _G[k.."Icon"]:Show(); _G[k.."Icon"]:ClearAllPoints(); _G[k.."Icon"]:SetPoint("LEFT", _G[k], -27, 0); _G[k.."Icon"]:SetWidth(23); _G[k.."Icon"]:SetHeight(23); _G[k.."Icon"]:SetTexCoord(.08, .92, .08, .92); end; _G[k]:HookScript("OnSizeChanged", function() _G[k].reset = true; end); _G[k]:HookScript("OnValueChanged", function() if _G[k].reset then Set(a, k); _G[k].reset = false; end; end); if C['castbar'][k].enableLag then _G[k].lag = _G[k]:CreateTexture(nil, "BACKGROUND") _G[k].lag:SetHeight(24) _G[k].lag:SetWidth(0) _G[k].lag:SetPoint("RIGHT", _G[k], "RIGHT", 0, 0) _G[k].lag:SetTexture(1, 0, 0, 1) end; end; if C['castbar'][k].enableTimer then _G[k].timer = _G[k]:CreateFontString(nil); _G[k].timer:SetFont(C['media'].fontNormal, C['media'].fontSize, ""); _G[k].timer:SetPoint("RIGHT", _G[k], "RIGHT", -5, 0); _G[k].update = .1; end; a:SetPoint(C['castbar'][k].relAnchor,"UIParent",C['castbar'][k].selfAnchor, B.scale(C['castbar'][k].offSetX),B.scale(C['castbar'][k].offSetY)) a:SetWidth(d.w); a:SetHeight(d.h); a:SetBackdropColor(.1, .1, .1, .95); a:SetBackdrop({ bgFile = C['castbar'].background, edgeFile = C['castbar'].border, tile = true, tileSize = 16, edgeSize = 15, insets = {left = 3, right = 3, top = 3, bottom = 3} }) if C['general'].classcolor ~= true then a:SetBackdropBorderColor(C['general'].color.r,C['general'].color.g,C['general'].color.b) else a:SetBackdropBorderColor(B.ccolor.r, B.ccolor.g, B.ccolor.b) end a:SetParent(_G[k]); a:SetMovable(true); a:EnableMouse(false); a:RegisterForDrag("LeftButton"); a:SetScript("OnDragStart", function(self) self:StartMoving() end); a:SetScript("OnDragStop", function(self) self:StopMovingOrSizing() end); a.name = a:CreateFontString(nil, "OVERLAY"); a.name:SetFont(C['media'].fontNormal, C['media'].fontSize, ""); a.name:SetPoint("CENTER", a); _G[k].d = d; _G[k].df = a; _G[k].name = a.name; _G[k].l = true; hooksecurefunc(_G[k], "Show", function() Set(a, k) end); end; end; hooksecurefunc("CastingBarFrame_OnUpdate", function(self, elapsed) if not self.timer then return end if self.update and self.update < elapsed then if self.casting then self.timer:SetText(format("(%.1f)", max(self.maxValue - self.value, 0))) elseif self.channeling then self.timer:SetText(format("(%.1f)", max(self.value, 0))) else self.timer:SetText("") end self.update = .1 else self.update = self.update - elapsed end end) UIPARENT_MANAGED_FRAME_POSITIONS["CastingBarFrame"] = nil;
Here is my options for the castbar:
Lua Code:
------------------ --Castbar Options ------------------ DB["castbar"] = { ["enable"] = true, ["border"] = "Blizzard Tooltip", ["background"] = "Blizzard Dialog Background Dark", ["statusbar"] = "Blizzard", ["CastingBarFrame"] = { ["enable"] = true, ["fontSize"] = 18, ["textPosition"] = "CENTER", ["enableLag"] = true, ["enableTimer"] = true, ["selfAnchor"] = "BOTTOM", ["relAnchor"] = "BOTTOM", ["offSetX"] = 0, ["offSetY"] = 175, }, ["TargetFrameSpellBar"] = { ["enable"] = false, ["fontSize"] = 18, ["textPosition"] = "CENTER", ["enableLag"] = true, ["enableTimer"] = true, ["selfAnchor"] = "TOP", ["relAnchor"] = "TOP", ["offSetX"] = 0, ["offSetY"] = -250, }, ["FocusFrameSpellBar"] = { ["enable"] = true, ["fontSize"] = 18, ["textPosition"] = "CENTER", ["enableLag"] = true, ["enableTimer"] = true, ["selfAnchor"] = "TOP", ["relAnchor"] = "TOP", ["offSetX"] = 0, ["offSetY"] = -165, }, ["MirrorTimer1"] = { ["enable"] = true, ["fontSize"] = 18, ["enableTimer"] = true, ["selfAnchor"] = "TOP", ["relAnchor"] = "TOP", ["offSetX"] = 0, ["offSetY"] = -75, }, ["PetCastingBarFrame"] = { ["enable"] = true, ["fontSize"] = 18, ["textPosition"] = "CENTER", ["enableTimer"] = true, ["selfAnchor"] = "BOTTOM", ["relAnchor"] = "BOTTOM", ["offSetX"] = 0, ["offSetY"] = 200, }, }
And finally here is the config I use to switch from DB to C:
Lua Code:
---------------------------------------------------------------------------- -- This Module loads new user settings if BasicUI_Config is loaded ---------------------------------------------------------------------------- local B, C, DB = unpack(select(2, ...)) -- Import: B - function; C - config; DB - Database --Convert default database for group,options in pairs(DB) do if not C[group] then C[group] = {} end for option, value in pairs(options) do C[group][option] = value end end if IsAddOnLoaded("BasicUI_Config") then local BasicUIConfig = LibStub("AceAddon-3.0"):GetAddon("BasicUIConfig") BasicUIConfig:Load() --Load settings from BasicUIConfig database for group, options in pairs(BasicUIConfig.db.profile) do if C[group] then for option, value in pairs(options) do C[group][option] = value end end end B.SavePath = BasicUIConfig.db.profile end
I'm not to sure as to why the "Set" function seems to be throwing a error.
Any help would be great.
Thanks
Coke
|