10.1 Compatiblity
Ketrel opened this issue ยท 3 comments
Copied from a comment on a separate issue
Here's what I'm getting
1x .../MinimapButtonFrameRedux/MinimapButtonFrameRedux.lua:1: bad argument #1 to 'GetAddOnMetadata' (Invalid AddOn name MinimapButtonFrame. - Usage: local value = C_AddOns.GetAddOnMetadata(name, variable))
[string "=[C]"]: in function `GetAddOnMetadata'
[string "@MinimapButtonFrameRedux/MinimapButtonFrameRedux.lua"]:1: in main chunk
Locals:
(*temporary) = "MinimapButtonFrame"
(*temporary) = "Version"
(*temporary) = "Invalid AddOn name MinimapButtonFrame. - Usage: local value = C_AddOns.GetAddOnMetadata(name, variable)"
1x ...ceMinimapButtonFrameRedux_SkinPack/Skins.lua:5: attempt to call global 'MBFAddSkin' (a nil value)
[string "@MinimapButtonFrameRedux_SkinPack/Skins.lua"]:5: in main chunk
Locals:
(*temporary) = nil
(*temporary) = "Hello Kitty"
(*temporary) = "Interface\AddOns\MinimapButtonFrameRedux_SkinPack\Textures\HKittyActive.tga"
(*temporary) = "Interface\AddOns\MinimapButtonFrameRedux_SkinPack\Textures\HKittyActiveBackdrop.tga"
(*temporary) = 35
(*temporary) = "attempt to call global 'MBFAddSkin' (a nil value)"
Originally posted by @Tetsemi in #15 (comment)
MBFversion = GetAddOnMetadata("MinimapButtonFrame", "Version");
should be
MBFversion = GetAddOnMetadata("MinimapButtonFrameRedux", "Version");
in the MinimapButtonFrameRedux.lua