Local errors
realrobd opened this issue ยท 3 comments
1x ProjectAzilroka/Media/Media.lua:47: attempt to call global 'GetAddOnInfo' (a nil value)
[string "@ProjectAzilroka/Media/Media.lua"]:47: in main chunk
Locals:
LSM = <table> {
OverrideMedia = <table> {
}
callbacks = <table> {
}
LOCALE_BIT_zhTW = 8
LOCALE_BIT_ruRU = 2
MediaType = <table> {
}
LOCALE_BIT_western = 128
MediaTable = <table> {
}
LOCALE_BIT_zhCN = 4
DefaultMedia = <table> {
}
MediaList = <table> {
}
LOCALE_BIT_koKR = 1
}
AddOnName = "ProjectAzilroka"
Path = "Interface\AddOns\ProjectAzilroka\Media\"
(*temporary) = 4
(*temporary) = nil
(*temporary) = "ElvUI"
(*temporary) = "attempt to call global 'GetAddOnInfo' (a nil value)"
1x ProjectAzilroka/Cooldowns.lua:465: attempt to index field 'Options' (a nil value)
[string "@ProjectAzilroka/Cooldowns.lua"]:465: in main chunk
Locals:
PA = <table> {
AC = <table> {
}
MyName = "Rumaisa"
modules = <table> {
}
TBC = false
RegisteredCooldowns = <table> {
}
Classic = false
defaultModuleState = true
MyFaction = "Alliance"
Authors = "Azilroka Nihilistzsche"
ScreenHeight = 1440
UIScale = 1
ACR = <table> {
}
enabledState = true
MyClass = "DRUID"
GUI = <table> {
}
Wrath = false
ACH = <table> {
}
Retail = true
Locale = "enUS"
TimeIndicatorColors = <table> {
}
defaultModuleLibraries = <table> {
}
ADB = <table> {
}
TimeThreshold = 3
MyRace = "NightElf"
LDB = <table> {
}
orderedModules = <table> {
}
LSM = <table> {
}
TimeColors = <table> {
}
AllPoints = <table> {
}
TimeFormats = <table> {
}
GrowthDirection = <table> {
}
Version = "1.88"
Multiple = 1
Title = "|cFF16C3F2Project|r|cFFFFFFFFAzilroka|r"
Solid = "Interface\Buttons\WHITE8X8"
ScreenWidth = 2560
ACD = <table> {
}
MyRealm = "Stormrage"
LCG = <table> {
}
ACL = <table> {
}
TexCoords = <table> {
}
name = "ProjectAzilroka"
LAB = <table> {
}
}
ICON_SIZE = 36
FONT_SIZE = 20
MIN_SCALE = 0.500000
MIN_DURATION = 1.500000
DAY = 86400
HOUR = 3600
MINUTE = 60
DAYISH = 84600
HOURISH = 3570
MINUTEISH = 59.500000
HALFDAYISH = 43200.500000
HALFHOURISH = 1800.500000
HALFMINUTEISH = 30.500000
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'Options' (a nil value)"
1x ProjectAzilroka/Init.lua:92: attempt to call upvalue 'GetAddOnEnableState' (a nil value)
[string "@ProjectAzilroka/Init.lua"]:92: in function `IsAddOnEnabled'
[string "@ProjectAzilroka/Init.lua"]:119: in main chunk
Locals:
self = <table> {
AC = <table> {
}
MyName = "Rumaisa"
modules = <table> {
}
TBC = false
Classic = false
defaultModuleState = true
MyFaction = "Alliance"
Authors = "Azilroka Nihilistzsche"
ScreenHeight = 1440
UIScale = 1
ACR = <table> {
}
enabledState = true
MyClass = "DRUID"
GUI = <table> {
}
Wrath = false
ACH = <table> {
}
Retail = true
Locale = "enUS"
defaultModuleLibraries = <table> {
}
MyRace = "NightElf"
LDB = <table> {
}
orderedModules = <table> {
}
LSM = <table> {
}
AllPoints = <table> {
}
GrowthDirection = <table> {
}
Version = "1.88"
Multiple = 1
Title = "|cFF16C3F2Project|r|cFFFFFFFFAzilroka|r"
Solid = "Interface\Buttons\WHITE8X8"
ADB = <table> {
}
ScreenWidth = 2560
ACD = <table> {
}
MyRealm = "Stormrage"
LCG = <table> {
}
ACL = <table> {
}
TexCoords = <table> {
}
name = "ProjectAzilroka"
LAB = <table> {
}
}
addon = "ElvUI"
character = "Rumaisa"
(*temporary) = nil
(*temporary) = "Rumaisa"
(*temporary) = "ElvUI"
(*temporary) = "attempt to call upvalue 'GetAddOnEnableState' (a nil value)"
GetAddOnEnableState = nil
After correcting above issues by adding "C_Addons." before the function calls the addon appears in ElvUI but the Square Minimap Buttons do not appear in the UI, and I'm getting the following error:
1x ProjectAzilroka/Media/Media.lua:1: malformed number near '5local'
Locals:
https://github.com/Azilroka/ProjectAzilroka/blob/main/ProjectAzilroka/Media/Media.lua#L1 @strongbow25
that's an error you introduced by editing.