phanx-wow / betterbattlepettooltip Goto Github PK
View Code? Open in Web Editor NEWWoW AddOn — Adds your highest collected level and quality to battle pet tooltips.
License: Other
WoW AddOn — Adds your highest collected level and quality to battle pet tooltips.
License: Other
Whenever I start a battle against a Rose Taipan with my Direbeak Hatchling, Forest Spiderling and Menagerie Custodian, I get this error:
Message: Interface\AddOns\BetterBattlePetTooltip\Core.lua:634: attempt to compare nil with number
Time: 12/05/16 15:49:27
Count: 6
Stack: Interface\AddOns\BetterBattlePetTooltip\Core.lua:634: in function `?'
Interface\AddOns\BetterBattlePetTooltip\Core.lua:123: in function <Interface\AddOns\BetterBattlePetTooltip\Core.lua:123>
Locals: self = BetterBattlePetTooltip {
0 = <userdata>
PET_JOURNAL_LIST_UPDATE = <function> defined @Interface\AddOns\BetterBattlePetTooltip\Core.lua:265
PET_BATTLE_OPENING_START = <function> defined @Interface\AddOns\BetterBattlePetTooltip\Core.lua:613
}
event = "PET_BATTLE_OPENING_START"
guid = "Creature-0-3019-1220-27318-97840-000045C5E6"
quality = 1
species = 1749
_ = "Rose Taipan"
_ = 133262
_ = 8
_ = 97840
_ = "Pet Battle: Stormheim"
_ = "The last thing you'll see is a streak of red."
_ = true
_ = true
_ = false
_ = false
obtainable = true
confidence = nil
breed = "S/S"
(*temporary) = "S/S"
(*temporary) = 5
(*temporary) = 5
(*temporary) = "S/S"
(*temporary) = 5
(*temporary) = 3
(*temporary) = "attempt to compare nil with number"
seenWildPetQualities = <table> {
Creature-0-3019-1220-27318-97840-000045A9D6 = 1
Creature-0-3019-1220-27318-97840-000045C5E6 = 1
Creature-0-3019-1220-27318-97840-000045B234 = 1
Creature-0-3023-1220-19694-97559-0000459D38 = 2
Creature-0-3023-1220-19694-97559-000045BF9E = 2
Creature-0-3023-1220-19694-97559-000045BC4C = 2
}
LibPetBreedInfo = <table> {
GetAvailableBreeds = <function> defined @Interface\AddOns\BetterBattlePetTooltip\Libs\LibPetBreedInfo-1.0\LibPetBreedInfo-1.0.lua:158
GetBreedByPetBattleSlot = <function> defined @Interface\AddOns\BetterBattlePetTooltip\Libs\LibPetBreedInfo-1.0\LibPetBreedInfo-1.0.lua:99
breedData = <table> {
}
GetPetPredictedStats = <function> defined @Interface\AddOns\BetterBattlePetTooltip\Libs\LibPetBreedInfo-1.0\LibPetBreedInfo-1.0.lua:126
GetBreedName = <function> defined @Interface\AddOns\BetterBattlePetTooltip\Libs\LibPetBreedInfo-1.0\LibPetBreedInfo-1.0.lua:150
GetBreedByStats = <function> defined @Interface\AddOns\BetterBattlePetTooltip\Libs\LibPetBreedInfo-1.0\LibPetBreedInfo-1.0.lua:58
IterateBreedNames = <function> defined @Interface\AddOns\BetterBattlePetTooltip\Libs\LibPetBreedInfo-1.0\LibPetBreedInfo-1.0.lua:144
GetBreedByPetID = <function> defined @Interface\AddOns\BetterBattlePetTooltip\Libs\LibPetBreedInfo-1.0\LibPetBreedInfo-1.0.lua:46
}
seenWildPetBreeds = <table> {
}
BattlePetBreedID_EnemyObject = <table> {
petOwner = 2
petIndex = 1
}
the tooltip works fine when mousing over the pet, but the minimap tooltip has no info at all
Message: ...tip\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:3: attempt to index global 'LibStub' (a nil value)
Time: 02/04/18 15:17:57
Count: 1
Stack: ...tip\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:3: attempt to index global 'LibStub' (a nil value)
[C]: ?
...tip\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:3: in main chunk
LibStub
into Libs
everything works.Hello! When I mouseover ANY wild pet, I recieve:
7x BetterBattlePetTooltip\Core.lua:190: attempt to index upvalue 'db' (a nil value)
BetterBattlePetTooltip\Core.lua:190: in function `GetOwnedBattlePetString'
BetterBattlePetTooltip\Core.lua:416: in function <BetterBattlePetTooltip\Core.lua:403>
BetterBattlePetTooltip\Core.lua:539: in function <BetterBattlePetTooltip\Core.lua:534>
[C]: ?
Auc-Advanced\Libs\LibExtraTip\LibExtraTip.lua:440: in function <Auc-Advanced\Libs\LibExtraTip\LibExtraTip.lua:434>
[C]: ?
The tooltip does not change.
If it matters, I play on Russian server.
Please, help me!
Hi,
I'm running BBPT 6.1.0.22. As of 6.2, whenever I open a crafting window and hover reagents needed for a particular item, BBPT is applying its tooltip to the items, showing a rare quality border and a "Collected: Level 1" message. It seems to be superceding all of my other tooltip addons as well, such as Altoholic, that would normally give me quantity and value information in the tooltip. The problem persists across all my characters, and happens in all profession windows.
Here's a screenshot: http://i.imgur.com/rgNhYrM.jpg
Thanks very much for your work on this addon!
Matt
Edit: I noticed that the BBPT border and info are being applied to any item in a profession window, not just the reagents. If you hover the item to be crafted it does it as well. Thanks!
Facing the following tooltip errors after the GameTooltip overhaul with the Dragonflight expansion. Any patch or advice would be appreciated. Thanks!
Message: Interface/AddOns/BetterBattlePetTooltip/Core.lua:1 (null)
Time: Thu Dec 8 11:18:32 2022
Count: 1
Message: Interface/AddOns/BetterBattlePetTooltip/Core.lua:501: GameTooltip doesn't have a "OnTooltipSetItem" script
{
Time: Thu Dec 8 11:18:16 2022
Count: 1
Stack: Interface/AddOns/BetterBattlePetTooltip/Core.lua:501: GameTooltip doesn't have a "OnTooltipSetItem" script
[string "=[C]"]: in function `HookScript'
[string "@Interface/AddOns/BetterBattlePetTooltip/Core.lua"]:501: in main chunk
Locals: (*temporary) = GameTooltip {
0 =
SetQuestLogRewardSpell = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetQuestPartyProgress = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
ProcessLineData = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:303
SetPvpTalent = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetRuneforgeResultItem = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetHyperlink = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetUnit = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetAzeriteEssence = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetVoidDepositItem = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetVoidWithdrawalItem = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetInfoBackdropStyle = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:338
shoppingTooltips =
}
SetSocketGem = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
updateTooltipTimer = 0.200000
ItemTooltip = Frame {
}
StatusBar = GameTooltipStatusBar {
}
SetLootCurrency = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetSlottedKeystone = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetWorldCursor = defined @Interface/FrameXML/GameTooltip.lua:952
SetLootItem = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetMerchantCostItem = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
GetUnit = defined @Interface/FrameXML/GameTooltip.lua:994
SetOwnedItemByID = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetItemInteractionItem = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetQuestLogSpecialItem = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
TextRight1 = GameTooltipTextRight1 {
}
SetEnhancedConduit = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetRecipeReagentItem = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetQuestCurrency = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
supportsDataRefresh = true
SetWeeklyReward = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetMerchantItem = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetPvpBrawl = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SetAchievementByID = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
BottomOverlay = Texture {
}
SetSpellByID = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
supportsItemComparison = true
SetSocketedRelic = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
ProcessInfo = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:236
ProcessLines = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:293
NineSlice = Frame {
}
SetInventoryItem = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
RefreshData = defined @Interface/FrameXML/GameTooltip.lua:933
SetTransmogrifyItem = defined @Interface/SharedXML/Tooltip/TooltipDataHandler.lua:444
SFX error when checking checkboxes
Message: Interface\AddOns\BetterBattlePetTooltip\Options.lua:38: Usage: PlaySound(soundKitID, optional["SFX","Music","Ambience", "Dialog" or "Master"], [forceNoDuplicates, runFinishCallback])
Time: 02/04/18 15:24:01
Count: 1
Stack: Interface\AddOns\BetterBattlePetTooltip\Options.lua:38: Usage: PlaySound(soundKitID, optional["SFX","Music","Ambience", "Dialog" or "Master"], [forceNoDuplicates, runFinishCallback])
[C]: ?
[C]: in function `PlaySound'
Interface\AddOns\BetterBattlePetTooltip\Options.lua:38: in function <Interface\AddOns\BetterBattlePetTooltip\Options.lua:36>
Changing Options.lua line 38 to PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON)
fixes it.
More info: https://us.battle.net/forums/en/wow/topic/20758856637
While browsing the AH
Edit 1:
Happened over the Cinder Pup pet, tooltip now missing for that pet and only that pet, other pets showing as normal.
Edit 2:
Hm, also affected the Lost Netherpup pet.
Date: 2015-08-21 11:32:49
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\BetterBattlePetTooltip\Core.lua line 152:
bad argument #1 to 'gsub' (string expected, got nil)
Debug:
BetterBattlePetTooltip\Core.lua:152: GetOwnedBattlePetString()
..\FrameXML\BattlePetTooltip.lua:22:
..\FrameXML\BattlePetTooltip.lua:3
...ace\AddOns\Blizzard_AuctionUI\Blizzard_AuctionUI.lua:1961: AuctionFrameItem_OnEnter()
...uc-Advanced\Modules\Auc-Util-CompactUI\CompactUI.lua:513:
...uc-Advanced\Modules\Auc-Util-CompactUI\CompactUI.lua:507
Locals:
AddOns:
Swatter, v5.21e.5566 (SanctimoniousSwamprat)
WowheadLooter, v60011
Altoholic, vr164
AraBrokerGuildFriends, vr72
Atlas, v1.32.00
AtlasCataclysm, v1.32.00
AtlasDungeonLocs, v1.32.00
AtlasMistsofPandaria, v1.32.00
AtlasOutdoorRaids, v1.32.00
AtlasTransportation, v1.32.00
AtlasWorldEvents, v3.13
AtlasWrathoftheLichKing, v1.32.00
AtlasLoot, vv8.00.40
AucAdvanced, v5.21e.5566 (SanctimoniousSwamprat)
AucFilterOutlier, v5.21e.5566.5459(5.21e/embedded)
AucMatchUndercut, v5.21e.5566.5507(5.21e/embedded)
AucStatSales, v5.21e.5566.5476(5.21e/embedded)
AucStatWOWEcon, v5.21e.5566.5323(5.21e/embedded)
AucUtilAHWindowControl, v5.21e.5566.5347(5.21e/embedded)
AucUtilAppraiser, v5.21e.5566.5545(5.21e/embedded)
AucUtilAskPrice, v5.21e.5566.5447(5.21e/embedded)
AucUtilAutoMagic, v5.21e.5566.5537(5.21e/embedded)
AucUtilCompactUI, v5.21e.5566.5550(5.21e/embedded)
AucUtilEasyBuyout, v5.21e.5566.5507(5.21e/embedded)
AucUtilItemSuggest, v5.21e.5566.5417(5.21e/embedded)
AucUtilPriceLevel, v5.21e.5566.5535(5.21e/embedded)
AucUtilScanButton, v5.21e.5566.5403(5.21e/embedded)
AucUtilScanFinish, v5.21e.5566.5515(5.21e/embedded)
AucUtilScanProgress, v5.21e.5566.4979(5.21e/embedded)
AucUtilScanStart, v5.21e.5566.5347(5.21e/embedded)
AucUtilSearchUI, v5.21e.5566.5556(5.21e/embedded)
AucUtilSimpleAuction, v5.21e.5566.5531(5.21e/embedded)
AucUtilVendMarkup, v5.21e.5566.4828(5.21e/embedded)
Auctionator, v3.2.4
Auditor2, v5.0.1
Babylonian, v5.1.DEV.332(/embedded)
Bagnon, v6.2.4
BagnonConfig, v6.2.4
BattlePetBreedID, vv1.4.5
Bazooka, vv2.6.1
BazookaOptions, vv2.6.1
BetterBattlePetTooltip, v6.2.0.25
BrokerAuditor, v5.0.1
BrokerCurrency, v6.2.0.5
BrokerLocation, v1.14
cancelpetfight, vr46-release
Configator, v5.1.DEV.382(/embedded)
DataStore, vr55
DataStoreAchievements, vr40
DataStoreAgenda, vr22
DataStoreAuctions, v6.0.001
DataStoreCharacters, vr35
DataStoreContainers, vr51
DataStoreCrafts, vr68
DataStoreCurrencies, vr30
DataStoreGarrisons, vr14
DataStoreInventory, vr43
DataStoreMails, vr43
DataStorePets, vr38
DataStoreQuests, vr35
DataStoreReputations, vr36
DataStoreSpells, vr26
DataStoreStats, vr25
DataStoreTalents, vr51
DebugLib, v5.1.DEV.337(/embedded)
EasyLunkerTurnIn, v1.12
ElvUI, v8.23
ElvUIEnhanced, v3.1.0-beta5
ElvUIMicrobar, v1.77
iLvLr, v2.3.102
LibExtraTip, v5.12.DEV.390(/embedded)
LibPeriodicTable31, vv3.3.0.493
LibSharedMedia30, v3.0-93
MacroToolkit, vv6.2.0.0
PetJournalEnhanced, v2.9.16
PetShoppingList, v1.0
Postal, v3.5.4
SavedInstances, v6.2.2
Stubby, v5.21e.5566 (SanctimoniousSwamprat)
TipHelper, v5.12.DEV.389(/embedded)
TradeSkillMaster, vv2.10.26
TradeSkillMasterAccounting, vv2.4.5
TradeSkillMasterAdditions, vv2.1.6
TradeSkillMasterAppHelper, vv2.0.4
TradeSkillMasterAuctionDB, vv2.7.1
TradeSkillMasterAuctioning, vv2.4.6
TradeSkillMasterCrafting, vv2.6.19
TradeSkillMasterItemTracker, vv2.1.4
TradeSkillMasterMailing, vv2.2.13
TradeSkillMasterShopping, vv2.4.6
TradeSkillMasterWoWuction, vv2.5.3
zzInfoclock, v
BlizRuntimeLib_enUS v6.2.0.60200
(ck=c5f)
Hi,
Is there a reason why you don't provide "nolib" releases? Any chance you can consider enabling these? I can provide you with a patch if you like.
Best regards!
6x BetterBattlePetTooltip\Core.lua:168: attempt to index field '?' (a nil value)
BetterBattlePetTooltip\Core.lua:168: in function `GetOwnedBattlePetString'
BetterBattlePetTooltip\Core.lua:327: in function <BetterBattlePetTooltip\Core.lua:314>
BetterBattlePetTooltip\Core.lua:398: in function <BetterBattlePetTooltip\Core.lua:393>
[C]: ?
[C]: in function `?'
Engravings\Engravings-6.0.0.29-Beta.lua:44: in function <Engravings\Engravings.lua:26>
[C]: ?
[C]: ?
[C]: ?
ToyBoxQ\ToyBoxQ-1.6.lua:157: in function <ToyBoxQ\ToyBoxQ.lua:155>
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: ?
[C]: in function `SetBagItem'
FrameXML\ContainerFrame.lua:1059: in function `ContainerFrameItemButton_OnEnter'
Bagnon\common\components\item.lua:411: in function `ShowTooltip'
Bagnon\common\components\item.lua:177: in function <Bagnon\common\components\item.lua:169>
Locals:
self = GameTooltip {
0 = <userdata>
SetCurrencyByID = <function> defined =[C]:-1
SetSpellBookItem = <function> defined =[C]:-1
SetHyperlink = <function> defined =[C]:-1
SetGuildBankItem = <function> defined =[C]:-1
SetOwner = <function> defined =[C]:-1
comparing = false
Show = <function> defined @TipTac\core.lua:917
SetUnitDebuff = <function> defined =[C]:-1
SetItemByID = <function> defined =[C]:-1
SetLootItem = <function> defined =[C]:-1
SetQuestItem = <function> defined =[C]:-1
FadeOut = <function> defined @TipTac\core.lua:903
SetCurrencyTokenByID = <function> defined =[C]:-1
SetTradeTargetItem = <function> defined =[C]:-1
SetQuestCurrency = <function> defined =[C]:-1
SetInboxItem = <function> defined =[C]:-1
SetBuybackItem = <function> defined =[C]:-1
shoppingTooltips = <table> {
}
SetLFGDungeonShortageReward = <function> defined =[C]:-1
SetMerchantItem = <function> defined =[C]:-1
SetQuestLogItem = <function> defined =[C]:-1
SetLFGDungeonReward = <function> defined =[C]:-1
SetUnitBuff = <function> defined =[C]:-1
SetSpellByID = <function> defined =[C]:-1
SetTradePlayerItem = <function> defined =[C]:-1
SetIconTextureAndText = <function> defined @TipTacItemRef\core.lua:50
SetSendMailItem = <function> defined =[C]:-1
SetMerchantCostItem = <function> defined =[C]:-1
updateTooltip = 0.082999993860722
SetInventoryItem = <function> defined =[C]:-1
SetCurrencyToken = <function> defined =[C]:-1
ttCount = <unnamed> {
}
SetLootRollItem = <function> defined =[C]:-1
SetUnitAura = <function> defined =[C]:-1
ttIcon = <unnamed> {
}
SetAuctionSellItem = <function> defined =[C]:-1
SetBagItem = <function> defined =[C]:-1
needsReset = true
SetAction = <function> defined =[C]:-1
SetTradeSkillItem = <function> defined =[C]:-1
SetQuestLogCurrency = <function> defined =[C]:-1
SetAuctionItem = <function> defined =[C]:-1
}
species = 1662
guid = nil
tooltip = "GameTooltip"
addString = false
(for index) = 3
(for limit) = 3
(for step) = 1
i = 3
line = GameTooltipTextLeft3 {
0 = <userdata>
}
text = "Collected (3/3)"
PetNameToSpecies = <table> {
}
S_COLLECTED = "Collected"
S_NOT_COLLECTED = "Not Collected"
S_ITEM_PET_KNOWN = "Collected "
GRAY_R = 0.5
GRAY_G = 0.5
GRAY_B = 0.5
colorblindMode = false
HexToPetQuality = <table> {
|cff9d9d9d = 1
|cffa335ee = 5
|cffff8000 = 6
|cffffffff = 2
|cff1eff00 = 3
|cff0070dd = 4
}
ColorBorderByQuality = <function> defined @BetterBattlePetTooltip\Core.lua:233
warned = <table> {
}
db = <table> {
count = true
level = true
wildQuality = true
tooltipColor = true
}
seenWildPetQualities = <table> {
}
PetQualityColors = <table> {
1 = <table> {
}
2 = <table> {
}
3 = <table> {
}
4 = <table> {
}
5 = <table> {
}
6 = <table> {
}
}
seenWildPetBreeds = <table> {
}
PetQualityStrings = <table> {
1 = "Poor"
2 = "Common"
3 = "Uncommon"
4 = "Rare"
5 = "Epic"
6 = "Legendary"
}
PetBreedNames = <table> {
}
L = <table> {
AlreadyBattled = "Already Battled"
ShowBreed = "Show collected breed"
CollectedLevel = "Level %d"
Comma = ", "
CollectedLevelBreed = "Level %d %s"
NotCapturable = "Not Capturable"
Colon = ": "
ShowAll = "Show all collected pets"
Parentheses = " (%s)"
ColorTooltipBorder = "Color tooltip borders"
ColorTooltipBorder_Tooltip = "You may want to disable this if you use another addon to style your tooltip borders."
CompactLevel = "Compact display"
ShowCount = "Show collected count"
ShowBreed_Tooltip = "This option requires LibPetBreedInfo-1.0 to be installed."
ShowLevel = "Show collected level"
ShowWildQuality = "Show wild pet rarity when possible"
NotCollected = "Not Collected"
ShowWildQuality_Tooltip = "This is only possible if you already entered a battle with the pet and forfeited, and only works for unit tooltips, not minimap tracking tooltips."
Collected = "Collected"
ShowAll_Tooltip = "This will show all your collected pets of the same species, not just the best one."
CollectedCount = "%d/3"
}
2x BetterBattlePetTooltip\Core.lua:461: attempt to concatenate local 'breed' (a boolean value)
BetterBattlePetTooltip\Core.lua:461: in function <BetterBattlePetTooltip\Core.lua:403>
BetterBattlePetTooltip\Core.lua:539: in function <BetterBattlePetTooltip\Core.lua:534>
[C]: ?
[C]: ?
Locals:
self = GameTooltip
_ = "Eternal Strider"
unit = "mouseover"
SetTooltipPetInfo = <function> defined @BetterBattlePetTooltip\Core.lua:403
25x BetterBattlePetTooltip\Addon.lua:213: bad argument #1 to 'strmatch' (string expected, got nil)
[C]: in function `strmatch'
BetterBattlePetTooltip\Addon.lua:213: in function <BetterBattlePetTooltip\Addon.lua:208>
BetterBattlePetTooltip\Addon.lua:222: in function <BetterBattlePetTooltip\Addon.lua:222>
[C]: in function `BattlePetToolTip_Show'
...aceBlizzard_AuctionUI\Blizzard_AuctionUI.lua:1657: in function `AuctionFrameItem_OnEnter'
[string "*:OnEnter"]:2: in function <[string "*:OnEnter"]:1>
Locals:
speciesName = "Hatespark the Tiny"
The 3 Iron Horde items listed bellow triggers "Missing pet string for"
Crusted Iron Horde Pauldrons
Crusted Iron Horde Pauldrons
Ravaged Iron Horde Belt
My guess is that the "collected" flavor text is the cause.
Addon version 6.2.0.25
Game version 6.2.2.20490 (x64)
Reproduction scenario
Fix that worked for me
Replace this line from
infoString = breed .. PetQualityStrings[quality]
to
infoString = (breed or "") .. PetQualityStrings[quality]
Hi Phanx,
I've bumped into an interesting bug that originates from interaction between this addon and Spy addon.
Spy addon happens to add some info into minimap tooltips. Even though most of the time it is just a new line, the logic in BetterBattlePetTooltip detects that the tooltip text does not equal currentText and attempts to add details. This results in an infinite lines addition, see the screen-shot:
It is arguable if Spy shall add this new line at all, but I think the same bug can happen if a different addon adds some other text into the tooltip, so definitely the logic in BetterBattlePetTooltip shall be fixed somehow.
Best Regards!
When in battle with a wild pet, if you hover over the pet you're fighting to get more info, the following LUA pops up.
I believe this was set by changes to backdrop commands in 9.0.1:
Message: Interface\AddOns\BetterBattlePetTooltip\Core.lua:312: attempt to call method 'SetBackdropBorderColor' (a nil value)
Time: Fri Nov 27 11:27:23 2020
Count: 7
Stack: Interface\AddOns\BetterBattlePetTooltip\Core.lua:312: attempt to call method 'SetBackdropBorderColor' (a nil value)
[string "=[C]"]: in function SetBackdropBorderColor' [string "@Interface\AddOns\BetterBattlePetTooltip\Core.lua"]:312: in function <Interface\AddOns\BetterBattlePetTooltip\Core.lua:299> [string "@Interface\AddOns\BetterBattlePetTooltip\Core.lua"]:334: in function <Interface\AddOns\BetterBattlePetTooltip\Core.lua:328> [string "=[C]"]: in function
PetBattleUnitTooltip_UpdateForUnit'
[string ":OnEnter"]:2: in function <[string ":OnEnter"]:1>
[string "=[C]"]: ?
Locals:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.