default script error
Changhyun-insa opened this issue ยท 4 comments
Game and Plater version
Which is the game version and Plater version you're using?
Full /plater version
output please.
Plater-v537.1-Retail - DF -v386 - 10.0.0
Describe the bug
Error 1.
Aura - Buff Alert [Plater] Constructor error: Error setting target ($parentOuterGlow), full name was too long: (NamePlate15PlaterUnitFramePlaterSecondaryAuraIcon1Glow2OuterGlow)
Error 2.
Cast - Glowing [P] OnShow error: [string "OnShowCode for Cast - Glowing [P]"]:40: attempt to call method 'SetFromScale' (a nil value)
function (self, unitId, unitFrame, envTable, scriptTable)
local castBar = unitFrame.castBar
envTable.castBarWidth = castBar:GetWidth()
castBar.Spark:SetVertexColor(DetailsFramework:ParseColors(scriptTable.config.sparkColor))
local textureStretched = unitFrame.felAnimation.textureStretched
textureStretched:Show()
textureStretched:SetVertexColor(DetailsFramework:ParseColors(scriptTable.config.glowColor))
textureStretched:SetAtlas("XPBarAnim-OrangeTrail")
textureStretched:ClearAllPoints()
textureStretched:SetPoint("right", castBar.Spark, "center", 0, 0)
textureStretched:SetHeight(castBar:GetHeight())
textureStretched:SetBlendMode("ADD")
textureStretched:SetAlpha(0.5)
textureStretched:SetDrawLayer("overlay", 7)
for i = 1, scriptTable.config.segmentsAmount do
local texture = unitFrame.felAnimation.Textures[i]
--texture:SetVertexColor(DetailsFramework:ParseColors(scriptTable.config.trailColor))
texture:SetVertexColor(1, 1, 1, 1)
texture:SetDesaturated(true)
local castBarPortion = castBar:GetWidth()/scriptTable.config.segmentsAmount
texture:SetSize(castBarPortion+5, castBar:GetHeight())
texture:SetDrawLayer("overlay", 6)
texture:ClearAllPoints()
if (i == scriptTable.config.segmentsAmount) then
texture:SetPoint("right", castBar, "right", 0, 0)
else
texture:SetPoint("left", castBar, "left", (i-1)*castBarPortion, 2)
end
texture:SetAlpha(0)
texture:Hide()
texture.scale:SetOrder(1)
texture.scale:SetDuration(0.5)
texture.scale:SetFromScale(0.2, 1)
texture.scale:SetToScale(1, 1.5) --THIS LINE
texture.scale:SetOrigin("right", 0, 0)
local durationTime = DetailsFramework:GetBezierPoint(i / scriptTable.config.segmentsAmount, 0.2, 0.01, 0.6)
local duration = abs(durationTime-0.6)
texture.alpha:SetOrder(1)
texture.alpha:SetDuration(0.05)
texture.alpha:SetFromAlpha(0)
texture.alpha:SetToAlpha(0.4)
texture.alpha2:SetOrder(1)
texture.alpha2:SetDuration(duration) --0.6
texture.alpha2:SetStartDelay(duration)
texture.alpha2:SetFromAlpha(0.5)
texture.alpha2:SetToAlpha(0)
end
envTable.CurrentTexture = 1
envTable.NextPercent = 100 / scriptTable.config.segmentsAmount
end
Error 3.
Cast - Glowing [P] OnUpdate error: [string "UpdateCode for Cast - Glowing [P]"]:7: attempt to compare nil with number
function (self, unitId, unitFrame, envTable, scriptTable)
local castBar = unitFrame.castBar
local textures = unitFrame.felAnimation.Textures
if (envTable._CastPercent > envTable.NextPercent) then --THIS LINE
local nextPercent = 100 / scriptTable.config.segmentsAmount
textures[envTable.CurrentTexture]:Show()
textures[envTable.CurrentTexture].animGroup:Play()
envTable.NextPercent = envTable.NextPercent + nextPercent
envTable.CurrentTexture = envTable.CurrentTexture + 1
if (envTable.CurrentTexture == #textures) then
envTable.NextPercent = 98
elseif (envTable.CurrentTexture > #textures) then
envTable.NextPercent = 999
end
end
local normalizedPercent = envTable._CastPercent / 100
local textureStretched = unitFrame.felAnimation.textureStretched
local point = DetailsFramework:GetBezierPoint(normalizedPercent, 0, 0.001, 1)
textureStretched:SetPoint("left", castBar, "left", point * envTable.castBarWidth, 0)
end
Lua Error
Post here lua errors, if you aren't getting any, use /console scriptErrors 1
Screenshots
Post images of the bug if necessary.
Other Information
If necessary, add more info here.