Z-Perl Unit Frames

Z-Perl Unit Frames

16M Downloads

Fail to load on 1.14.4

trammel opened this issue ยท 1 comments

commented

The latest patch 1.14.4 seems to break z-perl, specifically around SetGradientAlpha.

Eg.

Message: Interface/AddOns/ZPerl/ZPerl_Init.lua:133: attempt to call method 'SetGradientAlpha' (a nil value)
Time: Wed Aug 23 16:19:48 2023
Count: 1
Stack: Interface/AddOns/ZPerl/ZPerl_Init.lua:133: attempt to call method 'SetGradientAlpha' (a nil value)
[string "@Interface/AddOns/ZPerl/ZPerl_Init.lua"]:780: in function <Interface/AddOns/ZPerl/ZPerl_Init.lua:766>
[string "=[C]"]: ?
[string "@Interface/AddOns/ZPerl/ZPerl_Init.lua"]:206: in function `XPerl_pcall'
[string "@Interface/AddOns/ZPerl/ZPerl_Init.lua"]:501: in function `ZPerl_Init'
[string "@Interface/AddOns/ZPerl/ZPerl_Globals.lua"]:506: in function <Interface/AddOns/ZPerl/ZPerl_Globals.lua:505>
[string "@Interface/AddOns/ZPerl/ZPerl_Globals.lua"]:620: in function <Interface/AddOns/ZPerl/ZPerl_Globals.lua:591>

Locals: which = nil
InCombatLockdown = <function> defined =[C]:-1
conf = <table> {
 highlight = <table> {
 }
 bar = <table> {
 }
 highlightSelection = 1
Message: Interface/AddOns/ZPerl/ZPerl_Init.lua:133: attempt to call method 'SetGradientAlpha' (a nil value)
Time: Wed Aug 23 16:19:49 2023
Count: 36
Stack: Interface/AddOns/ZPerl/ZPerl_Init.lua:133: attempt to call method 'SetGradientAlpha' (a nil value)
[string "@Interface/AddOns/ZPerl/ZPerl_Init.lua"]:133: in function `XPerl_DoGradient'
[string "@Interface/AddOns/ZPerl/ZPerl_Init.lua"]:151: in function <Interface/AddOns/ZPerl/ZPerl_Init.lua:147>
[string "@Interface/AddOns/ZPerl/ZPerl_Init.lua"]:171: in function <Interface/AddOns/ZPerl/ZPerl_Init.lua:155>
[string "@Interface/AddOns/ZPerl/ZPerl_Init.lua"]:187: in function `XPerl_RegisterPerlFrames'
[string "@Interface/AddOns/ZPerl_RaidFrames/ZPerl_Raid.lua"]:749: in function <Interface/AddOns/ZPerl_RaidFrames/ZPerl_Raid.lua:740>
[string "=[C]"]: in function `CreateFrame'
[string "@Interface/FrameXML/SecureGroupHeaders.lua"]:171: in function <Interface/FrameXML/SecureGroupHeaders.lua:130>
[string "@Interface/FrameXML/SecureGroupHeaders.lua"]:406: in function `SecureGroupHeader_Update'
[string "@Interface/FrameXML/SecureGroupHeaders.lua"]:71: in function <Interface/FrameXML/SecureGroupHeaders.lua:66>
[string "=[C]"]: in function `SetAttribute'
[string "@Interface/AddOns/ZPerl_RaidFrames/ZPerl_Raid.lua"]:2644: in function `XPerl_Raid_ChangeAttributes'
[string "@Interface/AddOns/ZPerl_RaidFrames/ZPerl_Raid.lua"]:1462: in function `func'
[string "@Interface/AddOns/ZPerl_RaidFrames/ZPerl_Raid.lua"]:1326: in function <Interface/AddOns/ZPerl_RaidFrames/ZPerl_Raid.lua:1317>

Locals: self = XPerl_Raid_Grp9UnitButton5nameFrame {

Also, this error

Message: ...ace/AddOns/ZPerl_TargetTarget/ZPerl_TargetTarget.lua:280: attempt to index field 'conf' (a nil value)
Time: Wed Aug 23 16:22:24 2023
Count: 6692
Stack: ...ace/AddOns/ZPerl_TargetTarget/ZPerl_TargetTarget.lua:280: attempt to index field 'conf' (a nil value)
[string "@Interface/AddOns/ZPerl_TargetTarget/ZPerl_TargetTarget.lua"]:280: in function `XPerl_TargetTarget_UpdateDisplay'
[string "@Interface/AddOns/ZPerl_TargetTarget/ZPerl_TargetTarget.lua"]:417: in function <...ace/AddOns/ZPerl_TargetTarget/ZPerl_TargetTarget.lua:381>

Locals: self = XPerl_PetTarget {
 0 = <userdata>
 targetmanamax = 0
 guid = 0
 OnBackdropLoaded = <function> defined @Interface/SharedXML/Backdrop.lua:152
 GetBackdropColor = <function> defined @Interface/SharedXML/Backdrop.lua:390
 partyid = "pettarget"
 targethp = 0
 SetBackdropBorderColor = <function> defined @Interface/SharedXML/Backdrop.lua:422
 targethpmax = 0
 ApplyBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:294
 SetBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:329
 ClearBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:282
 GetBackdropBorderColor = <function> defined @Interface/SharedXML/Backdrop.lua:409
 GetBackdrop = <function> defined @Interface/SharedXML/Backdrop.lua:347
 SetBorderBlendMode = <function> defined @Interface/SharedXML/Backdrop.lua:266
 highlight = XPerl_PetTargethighlight {
 }
 lastUpdate = 0
 afk = false
 SetupTextureCoordinates = <function> defined @Interface/SharedXML/Backdrop.lua:214
 OnBackdropSizeChanged = <function> defined @Interface/SharedXML/Backdrop.lua:182
 HasBackdropInfo = <function> defined @Interface/SharedXML/Backdrop.lua:278
 statsFrame = XPerl_PetTargetstatsFrame {
 }
 GetEdgeSize = <function> defined @Interface/SharedXML/Backdrop.lua:188
 nameFrame = XPerl_PetTargetnameFrame {
 }
 targetmana = 0
 targetname = ""
 buffSetup = <table> {
 }
 debuffFrame = XPerl_PetTargetdebuffFrame {
 }
 parentid = "pet"
 SetupPieceVisuals = <function> defined @Interface/SharedXML/Backdrop.lua:246
 SetBackdropColor = <function> defined @Interface/SharedXML/Backdrop.lua:399
 buffFrame = XPerl_PetTargetbuffFrame {
 }
 levelFrame = XPerl_PetTargetlevelFrame {
 }
}
force = nil
partyid = "pettarget"
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'conf' (a nil value)"
UnitExists = <function> defined =[C]:-1
UnitIsConnected = <function> defined =[C]:-1
UnitName = <function> defined =[C]:-1
GetTime = <function> defined =[C]:-1
XPerl_TargetTarget_UpdatePVP = <function> defined @Interface/AddOns/ZPerl_TargetTarget/ZPerl_TargetTarget.lua:203
UnitGUID = <function> defined =[C]:-1
UnitLevel = <function> defined =[C]:-1
GetDifficultyColor = <function> defined @Interface_Vanilla/FrameXML/UIParent.lua:3856
UnitClassification = <function> defined =[C]:-1
strfind = <function> defined =[C]:-1
XPerl_TargetTarget_RaidIconUpdate = <function> defined @Interface/AddOns/ZPerl_TargetTarget/ZPerl_TargetTarget.lua:243
XPerl_TargetTarget_Buff_UpdateAll = <function> defined @Interface/AddOns/ZPerl_TargetTarget/ZPerl_TargetTarget.lua:224
commented

For now if you have raid in short time, update

line 130 in zperl_init.lua

					self.gradient:SetGradient(orient, CreateColor(r, g, b, a), CreateColor(r2, g2, b2, a2))
				else
					self.gradient:SetGradientAlpha(orient, r, g, b, a, r2, g2, b2, a2)
				end

to

				self.gradient:SetGradient(orient, CreateColor(r, g, b, a), CreateColor(r2, g2, b2, a2))

It fixes this bug which also makes raid frames work withotu Error! Error! again
Also seems to fix broken pet, but not resetting portrait player. (i fixed this by deleting zperl configuration in the variable folder and remaking my setup)

I got it working again for me