SexyMap

SexyMap

32M Downloads

9.0.1 Prepatch - Borders.lua SetBackdrop error

reiyooki opened this issue ยท 2 comments

commented
Message: Interface\AddOns\SexyMap\Borders.lua:1076: attempt to call method 'SetBackdrop' (a nil value)
Time: Tue Oct 13 17:29:36 2020
Count: 1
Stack: Interface\AddOns\SexyMap\Borders.lua:1076: attempt to call method 'SetBackdrop' (a nil value)
[string "@Interface\AddOns\SexyMap\Borders.lua"]:1076: in function `UpdateBackdrop'
[string "@Interface\AddOns\SexyMap\Borders.lua"]:1060: in function `ApplySettings'
[string "@Interface\AddOns\SexyMap\Borders.lua"]:898: in function `OnEnable'
[string "@Interface\AddOns\SexyMap\SexyMap.lua"]:568: in function `?'
[string "@Interface\AddOns\SexyMap\SexyMap.lua"]:682: in function <Interface\AddOns\SexyMap\SexyMap.lua:681>

Locals: self = <table> {
 Clear = <function> defined @Interface\AddOns\SexyMap\Borders.lua:917
 UpdateBorder = <function> defined @Interface\AddOns\SexyMap\Borders.lua:1063
 CreateBorderFromParams = <function> defined @Interface\AddOns\SexyMap\Borders.lua:950
 StartRotations = <function> defined @Interface\AddOns\SexyMap\Borders.lua:1009
 ApplyPreset = <function> defined @Interface\AddOns\SexyMap\Borders.lua:924
 ClearWidgets = <function> defined @Interface\AddOns\SexyMap\Borders.lua:988
 RebuildPresets = <function> defined @Interface\AddOns\SexyMap\Borders.lua:907
 SavePresetAs = <function> defined @Interface\AddOns\SexyMap\Borders.lua:940
 presets = <table> {
 }
 NewBorder = <function> defined @Interface\AddOns\SexyMap\Borders.lua:934
 ApplySettings = <function> defined @Interface\AddOns\SexyMap\Borders.lua:1046
 UpdateBackdrop = <function> defined @Interface\AddOns\SexyMap\Borders.lua:1071
 db = <table> {
 }
 OnDisable = <function> defined @Interface\AddOns\SexyMap\Borders.lua:903
 OnEnable = <function> defined @Interface\AddOns\SexyMap\Borders.lua:851
}
(*temporary) = nil
(*temporary) = SexyMapCustomBackdrop {
 0 = <userdata>
}
(*temporary) = <table> {
 edgeSize = 17
 edgeFile = "Interface\Tooltips\UI-Tooltip-Border"
 bgFile = "Interface\Tooltips\UI-Tooltip-Background"
 tile = false
 insets = <table> {
 }
}
(*temporary) = "attempt to call method 'SetBackdrop' (a nil value)"
mod = <table> {
 Clear = <function> defined @Interface\AddOns\SexyMap\Borders.lua:917
 UpdateBorder = <function> defined @Interface\AddOns\SexyMap\Borders.lua:1063
 CreateBorderFromParams = <function> defined @Interface\AddOns\SexyMap\Borders.lua:950
 StartRotations = <function> defined @Interface\AddOns\SexyMap\Borders.lua:1009
 ApplyPreset = <function> defined @Interface\AddOns\SexyMap\Borders.lua:924
 ClearWidgets = <function> defined @Interface\AddOns\SexyMap\Borders.lua:988
 RebuildPresets = <function> defined @Interface\AddOns\SexyMap\Borders.lua:907
 SavePresetAs = <function> defined @Interface\AddOns\SexyMap\Borders.lua:940
 presets = <table> {
 }
 NewBorder = <function> defined @Interface\AddOns\SexyMap\Borders.lua:934
 ApplySettings = <function> defined @Interface\AddOns\SexyMap\Borders.lua:1046
 UpdateBackdrop = <function> defined @Interface\AddOns\SexyMap\Borders.lua:1071
 db = <table> {
 }
 OnDisable = <function> defined @Interface\AddOns\SexyMap\Borders.lua:903
 OnEnable = <function> defined @Interface\AddOns\SexyMap\Borders.lua:851
}
customBackdrop = SexyMapCustomBackdrop {
 0 = <userdata>
}

commented

You can remove the initial error by changing the following. This will make SexyMap work like normal, however another error is thrown which means the backdrop on the clock doesn't show.

Update Line 886 in Borders.lua

from customBackdrop = CreateFrame("Frame", "SexyMapCustomBackdrop", Minimap)
to customBackdrop = CreateFrame("Frame", "SexyMapCustomBackdrop", Minimap, BackdropTemplateMixin and "BackdropTemplate" or nil)

commented