Mikeprod / XIV_Databar

A databar for the World of Warcraft UI
https://mods.curse.com/addons/wow/xiv_databar
20 stars 12 forks source link

Lua error on mousing over battle.net friends on bar #82

Closed Emarline closed 5 years ago

Emarline commented 6 years ago

The dropdown also doesn't show - just throws this error:

100x XIV_Databar\modules\micromenu.lua:470: attempt to index field '?' (a nil value) XIV_Databar\modules\micromenu.lua:470: in function <XIV_Databar\modules\micromenu.lua:426>

Locals: modifierFunc = defined =[C]:-1 tooltip = { 0 = lines =

{ } headerFont = GameTooltipHeaderText { } cell_margin_v = 3 key = "SocialToolTip" scripts =
{ } columns =
{ } scrollFrame = { } template = "Transparent" scrollChild = { } colspans =
{ } width = 518.9776763916 cell_marginh = 6 labelProvider =
{ } height = 779.8761844635 regularFont = GameTooltipText { } } totalBNFriends = 107 totalBNOnlineFriends = 72 totalFriends = 0 totalOnlineFriends = 0 charNameFormat = "" clientsList =
{ 1 = "WoW" 2 = "S2" 3 = "D3" 4 = "WTCG" 5 = "Hero" 6 = "Pro" 7 = "S1" 8 = "DST2" 9 = "VIPR" } (for index) = 45 (for limit) = 107 (for step) = 1 i = 45 battleID = 82 battleName = "|Kf81|k000000000|k" battleTag = "Killerpox#1990" = true charName = nil gameAccount = 359 gameClient = "VIPR" isOnline = true = 1536978705 isAfk = false isDnd = false = "I'm back, if people care." note = "#Friends" = true = "" = "VIPR" realmName = "" = 0 status = "Online" statusIcon = "FriendsFrame\StatusIcon-Online" socialIcon = "FriendsFrame\Battlenet-CallOfDutyBlackOps4icon" (temporary) = nil (temporary) = "FriendsFrame\Battlenet-CallOfDutyBlackOps4icon" (temporary) = "" (temporary) = "" (temporary) = "" (temporary) = "In Lobby, Solo selected | Blackout" (temporary) = "I'm back, if people care." (temporary) = 1533179879 (*temporary) = "attempt to index field '?' (a nil value)" xb =
{ defaults =
{ } ResetUI = defined @XIV_Databar\core.lua:391 HoverColors = defined @XIV_Databar\core.lua:172 HexToRGBA = defined @XIV_Databar\core.lua:338 modules =
{ } baseName = "XIV_Databar" IterateEmbeds = defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:473 GetColor = defined @XIV_Databar\core.lua:167 fontFlags =
{ } GetTextColorOptions = defined @XIV_Databar\core.lua:602 RegisterFrame = defined @XIV_Databar\core.lua:190 Printf = defined @Ace3\AceConsole-3.0\AceConsole-3.0.lua:69 SetDefaultModulePrototype = defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:440 GetHeight = defined @XIV_Databar\core.lua:270 defaultModuleState = true IsEnabled = defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:482 DisableModule = defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:381 GetFont = defined @XIV_Databar\core.lua:321 PrintTable = defined @XIV_Databar\core.lua:346 RegisterMessage = defined @Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:116 GetArgs = defined @Ace3\AceConsole-3.0\AceConsole-3.0.lua:144 frames =
{ } miniTextPosition = "BOTTOM" db =
{ } modulesOptionFrame = { } SetEnabledState = defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:455 enabledState = true RegisterEvent = defined @Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:116 IterateModules = defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:468 GetClassColors = defined @XIV_Databar\core.lua:325 SetColor = defined @XIV_Databar\core.lua:158 OnInitialize = defined @XIV_Databar\core.lua:80 NewModule = defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:266 GetModule = defined @Ace3\AceAddon-3.0\AceAddon-3.0.lua:241 defaultModuleLibraries =
{ } optionsFrame = { } GetTextOptions = defined @XIV_Databar\core.lua:546 UnregisterChatCommand = defined @Ace3\AceCons

xWarstormx commented 6 years ago

I had this Error happen to me, and I did a fix by editing the micromenu.lua within the modules folder. The problem was with Call of Duty and one of your friends playing it =D To Fix, Interface\AddOns\XIV_Databar\modules --micromenu.lua then on line 54 55 56 and 57 insert

}, VIPR = { text = 'Call of Duty' }

should look like this when you're done the fix

TheJayWallace commented 6 years ago

Confirm above change fixes issue

Mikeprod commented 6 years ago

The error indeed showed directly how to fix it. It should be fxed in commit 985895b