Draper1 / MythicDungeonPortals

WoW Addon for Mythic Dungeon Portals
MIT License
4 stars 4 forks source link

Error on first run, and chat spam after login #4

Closed Sythr4l closed 9 months ago

Sythr4l commented 9 months ago

Nice addon! I received this error the first time i opened the game after installing the addon. also, everytime I login the addon puts messages in the chat lie "Tab created for Current Season", etc.

1x ...faceMythicDungeonPortals/Minimap/Minimap.lua:37: attempt to index global 'MythicDungeonPortalsSettings' (a nil value) [string "@MythicDungeonPortals/Minimap/Minimap.lua"]:37: in function <...faceMythicDungeonPortals/Minimap/Minimap.lua:33>

[string "@Details/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:66: in function <...ceDetails/Libs/AceAddon-3.0/AceAddon-3.0.lua:61> [string "@Details/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:494: in function `InitializeAddon' [string "@Details/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:619: in function <...ceDetails/Libs/AceAddon-3.0/AceAddon-3.0.lua:611>

Locals: self =

{ SetDefaultModuleLibraries = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:363 baseName = "MythicDungeonPortals" OnInitialize = defined @MythicDungeonPortals/Minimap/Minimap.lua:33 Enable = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:290 NewModule = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:231 Print = defined @Gnosis/Libs/AceConsole-3.0/AceConsole-3.0.lua:50 EnableModule = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:328 modules =
{ } GetModule = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:206 IterateEmbeds = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:438 IsModule = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:464 GetArgs = defined @Gnosis/Libs/AceConsole-3.0/AceConsole-3.0.lua:140 angle = 45 icon =
{ } UnregisterChatCommand = defined @Gnosis/Libs/AceConsole-3.0/AceConsole-3.0.lua:107 SetEnabledState = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:420 RegisterChatCommand = defined @Gnosis/Libs/AceConsole-3.0/AceConsole-3.0.lua:81 enabledState = true defaultModuleState = true Printf = defined @Gnosis/Libs/AceConsole-3.0/AceConsole-3.0.lua:65 Disable = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:310 GetName = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:275 defaultModuleLibraries =
{ } SetDefaultModuleState = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:383 IterateModules = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:433 name = "MythicDungeonPortals" SetDefaultModulePrototype = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:405 IsEnabled = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:447 orderedModules =
{ } constants =
{ } DisableModule = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:346 } (temporary) = defined @BasicMinimap/Libs/AceDB-3.0/AceDB-3.0.lua:705 (temporary) =
{ db_registry =
{ } frame = Frame { } New = defined @BasicMinimap/Libs/AceDB-3.0/AceDB-3.0.lua:705 } (temporary) = "MythicDungeonPortalsMinimap" (temporary) =
{ } (temporary) =
{ } (temporary) =
{ } (temporary) = nil (temporary) = "attempt to index global 'MythicDungeonPortalsSettings' (a nil value)" addon =
{ SetDefaultModuleLibraries = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:363 baseName = "MythicDungeonPortals" OnInitialize = defined @MythicDungeonPortals/Minimap/Minimap.lua:33 Enable = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:290 NewModule = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:231 Print = defined @Gnosis/Libs/AceConsole-3.0/AceConsole-3.0.lua:50 EnableModule = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:328 modules =
{ } GetModule = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:206 IterateEmbeds = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:438 IsModule = defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:464 GetArgs = defined @Gnosis/Libs/AceConsole-3.0/AceConsole-3.0.lua:140 angle = 45 icon =
{ } UnregisterChatCommand = defined @Gnosis/Libs/AceConsole-3.0/AceConso

Draper1 commented 9 months ago

Suspect this is because the SavedVariables don't get initialized properly. Will look into it.

Draper1 commented 9 months ago

Resolved in #6