ZelionGG / XIV_Databar-Continued

Continuation of XIV_Databar addon
https://discord.gg/g7JZNGSU32
GNU General Public License v3.0
5 stars 3 forks source link

[Bug] attempt to compare number with nil #33

Closed Silvereyes1372 closed 4 months ago

Silvereyes1372 commented 4 months ago

As requested, I am making another post regarding this error. I received this error when I logged in. It may be related to MAX_PLAYER_LEVEL being nil.

7x .../XIV_Databar_Continued/Mainline/modules/currency.lua:76: attempt to compare number with nil
[string "@XIV_Databar_Continued/Mainline/modules/currency.lua"]:76: in function `Refresh'
[string "@XIV_Databar_Continued/Mainline/modules/currency.lua"]:41: in function <.../XIV_Databar_Continued/Mainline/modules/currency.lua:32>
[string "=[C]"]: ?
[string "@Masque/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:66: in function <...aceMasque/Libs/AceAddon-3.0/AceAddon-3.0.lua:61>
[string "@Masque/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:523: in function `EnableAddon'
[string "@Masque/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:536: in function `EnableAddon'
[string "@Masque/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:626: in function <...aceMasque/Libs/AceAddon-3.0/AceAddon-3.0.lua:611>
[string "=[C]"]: ?
[string "=[C]"]: in function `LoadAddOn'
[string "@Blizzard_UIParent/Mainline/UIParent.lua"]:422: in function `UIParentLoadAddOn'
[string "@Blizzard_UIParent/Mainline/UIParent.lua"]:627: in function `MajorFactions_LoadUI'
[string "@Blizzard_ExpansionLandingPage/Blizzard_DragonflightLandingPage.lua"]:103: in function `SetUpMajorFactionList'
[string "@Blizzard_ExpansionLandingPage/Blizzard_DragonflightLandingPage.lua"]:96: in function `RefreshMajorFactionList'
[string "@Blizzard_ExpansionLandingPage/Blizzard_DragonflightLandingPage.lua"]:91: in function `RefreshOverlay'
[string "@Blizzard_ExpansionLandingPage/Blizzard_DragonflightLandingPage.lua"]:83: in function <...sionLandingPage/Blizzard_DragonflightLandingPage.lua:79>
[string "=[C]"]: in function `CreateFrame'
[string "@Blizzard_ExpansionLandingPage/Blizzard_DragonflightLandingPage.lua"]:49: in function `CreateOverlay'
[string "@Blizzard_ExpansionLandingPage/Blizzard_ExpansionLandingPage.lua"]:78: in function `RefreshExpansionOverlay'
[string "@Blizzard_ExpansionLandingPage/Blizzard_ExpansionLandingPage.lua"]:37: in function <...pansionLandingPage/Blizzard_ExpansionLandingPage.lua:35>

Locals:
self = <table> {
 curText = <table> {
 }
 modules = <table> {
 }
 defaultModuleLibraries = <table> {
 }
 xpBarBg = Texture {
 }
 xpText = FontString {
 }
 xpIcon = Texture {
 }
 xpFrame = Button {
 }
 currencyFrame = Frame {
 }
 curIcons = <table> {
 }
 curButtons = <table> {
 }
 intToOpt = <table> {
 }
 name = "XIV_Databar_Continued_CurrencyModule"
 orderedModules = <table> {
 }
 baseName = "XIV_Databar_Continued"
 xpBar = StatusBar {
 }
 hooks = <table> {
 }
 enabledState = true
 rerollItems = <table> {
 }
 defaultModuleState = true
 moduleName = "CurrencyModule"
}
db = <table> {
 modules = <table> {
 }
 selectedHearthstones = <table> {
 }
 general = <table> {
 }
 color = <table> {
 }
 text = <table> {
 }
 hearthstonesList = <table> {
 }
 dalaran_hs_string = "Pierre de foyer de Dalaran"
}
iconSize = 15
(*temporary) = 70
(*temporary) = nil
(*temporary) = 3
(*temporary) = Button {
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to compare number with nil"
xb = <table> {
 defaults = <table> {
 }
 modules = <table> {
 }
 baseName = "XIV_Databar_Continued"
 fontFlags = <table> {
 }
 defaultModuleState = true
 frames = <table> {
 }
 miniTextPosition = "TOP"
 db = <table> {
 }
 enabledState = true
 Changelog = <table> {
 }
 name = "XIV_Databar_Continued"
 orderedModules = <table> {
 }
 LSM = <table> {
 }
 constants = <table> {
 }
 timerRefresh = false
 defaultModuleLibraries = <table> {
 }
 L = <table> {
 }
}
ZelionGG commented 4 months ago

Heya, version 3.0.2 should fix that issue 🙂

Thank you again for the feedbacks and enjoy the start of the new expac !

Silvereyes1372 commented 4 months ago

thx good work <3