LunaUnitFrames

LunaUnitFrames

268k Downloads

1.14 - Addon not loading

Slivo-fr opened this issue ยท 5 comments

commented

Hi,

1.14 brought most (all?) of the BC changes to classic ERA, the addon does not load at all.
Using v4100

Thanks for your work

commented

It look like the libs need to be updated.
I tried updating them on my own and I now get a lua error related to backdrop changes :

10x LunaUnitFrames\modules\layout.lua:552: attempt to call method 'SetBackdrop' (a nil value)
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "@FrameXML\RestrictedFrames.lua"]:657: in function <FrameXML\RestrictedFrames.lua:656>
[string "@FrameXML\RestrictedFrames.lua"]:795: in function `CallMethod'
[string "		local header = self:GetParent()
		local frames = table.new()
		table.insert(frames, self)
		self:GetChildList(frames)
		for i = 1, #frames do
			local frame = frames[i]
			local unit
			-- There's no need to do anything on frames with onlyProcessChildren
			if(not frame:GetAttribute('oUF-onlyProcessChildren')) then
				RegisterUnitWatch(frame)

				-- Attempt to guess what the header is set to spawn.
				local groupFilter = header:GetAttribute('groupFilter')

				if(type(groupFilter) == 'string' and groupFilter:match('MAIN[AT]')) then
					local role = groupFilter:match('MAIN([AT])')
					if(role == 'T') then
						unit = 'maintank'
					else
						unit = 'mainassist'
					end
				elseif(header:GetAttribute('showRaid')) then
					unit = 'raid'
				elseif(header:GetAttribute('showParty')) then
					unit = 'party'
				end

				local headerType = header:GetAttribute('oUF-headerType')
				local suffix = frame:GetAttribute('unitsuffix')
				if(unit and suffix) then
					if(headerType == 'pet' and suffix == 'target') then
						unit = unit .. headerType .. suffix
					else
						unit = unit .. suffix
					end
				elseif(unit and headerType == 'pet') then
					unit = unit .. headerType
				end

				frame:SetAttribute('*type1', 'target')
				frame:SetAttribute('*type2', 'togglemenu')
				frame:SetAttribute('oUF-guessUnit', unit)
			end

			local body = header:GetAttribute('oUF-initialConfigFunction')
			if(body) then
				frame:Run(body, unit)
			end
		end

		header:CallMethod('styleFunction', self:GetName())

		local clique = header:GetFrameRef('clickcast_header')
		if(clique) then
			clique:SetAttribute('clickcast_button', self)
			clique:RunAttribute('clickcast_register')
		end
	"]:51: in function <[string "		local header = self:GetParent()..."]:1>
[string "=(tail call)"]: ?
[string "=[C]"]: ?
[string "@FrameXML\RestrictedExecution.lua"]:484: in function <FrameXML\RestrictedExecution.lua:447>
[string "@FrameXML\SecureGroupHeaders.lua"]:116: in function <FrameXML\SecureGroupHeaders.lua:110>
[string "@FrameXML\SecureGroupHeaders.lua"]:166: in function <FrameXML\SecureGroupHeaders.lua:123>
[string "@FrameXML\SecureGroupHeaders.lua"]:399: in function <FrameXML\SecureGroupHeaders.lua:387>
[string "=[C]"]: in function `Show'
[string "@LunaUnitFrames\LunaUnitFrames-4100.lua"]:1104: in function `SpawnUnits'
[string "@LunaUnitFrames\LunaUnitFrames-4100.lua"]:198: in function `OnLoad'
[string "@LunaUnitFrames\LunaUnitFrames-4100.lua"]:1345: in function <LunaUnitFrames\LunaUnitFrames.lua:1343>
commented

Thanks, will check it out !

commented

A 1.14 version is now ready for testing.

commented

Same issue, I tried the non TBC 4100 beta too.

commented

image