phanx-wow / HandyNotes_FieldPhotographer

WoW AddOn — Shows you where to take selfies for the achievement.
3 stars 1 forks source link

Addon.lua:15: attempt to call global 'GetAddOnMetadata' (a nil value) #9

Open Ookami313 opened 2 months ago

Ookami313 commented 2 months ago

Unsure if the addon is still being supported but I'm posting just in case. Update to 11.0.2 is causing errors to occur when logging in. Thanks.

5x HandyNotes_FieldPhotographer/Addon.lua:15: attempt to call global 'GetAddOnMetadata' (a nil value) [string "@HandyNotes_FieldPhotographer/Addon.lua"]:15: in main chunk

Locals: ADDON_NAME = "HandyNotes_FieldPhotographer" HandyNotes =

{ modules =
{ } plugins =
{ } defaultModuleLibraries =
{ } name = "HandyNotes" orderedModules =
{ } baseName = "HandyNotes" db =
{ } WorldMapDataProvider =
{ } enabledState = true defaultModuleState = true } ACHIEVEMENT_ID = 9924 ACHIEVEMENT_NAME = "Field Photographer" (temporary) = nil (temporary) = "HandyNotes_FieldPhotographer" (temporary) = "Title" (temporary) = "attempt to call global 'GetAddOnMetadata' (a nil value)"

yoshimo commented 2 months ago

just change GetAddOnMetadata to C_AddOns.GetAddOnMetadata 11.0.2 removed some deprecated calls.

Dhragas commented 2 months ago

Also change: GetAddOnMetadata → C_AddOns.GetAddOnMetadata UnitBuff → C_UnitAuras.GetBuffDataByIndex