Journalator

Journalator

145k Downloads

BattlePet Tooltip sold stats error

Dairyman opened this issue ยท 4 comments

commented

Brief Description of Bug

Showing tooltips of BattlePets with a sold statistics errors.

Steps to Reproduce

  1. Hover over BattlePet with a sold statistics
  2. Get Error

Back Trace (LUA Error Output)

42x .../LibBattlePetTooltipLine/LibBattlePetTooltipLine.lua:37: assertion failed!
[string "=[C]"]: in function `assert'
[string "@Auctionator/Libs_Mainline/LibBattlePetTooltipLine/LibBattlePetTooltipLine.lua"]:37: in function `AddLine'
[string "@Journalator_Statistics/Tooltips/Hooks.lua"]:78: in function <...aceJournalator_Statistics/Tooltips/Hooks.lua:49>
[string "=[C]"]: in function `AddPetTip'
[string "@Auctionator/Source/Tooltips/Hooks.lua"]:4: in function <Auctionator/Source/Tooltips/Hooks.lua:3>
[string "=[C]"]: ?
[string "=[C]"]: in function `BattlePetToolTip_Show'
[string "@SharedXML/Tooltip/TooltipDataRules.lua"]:270: in function `func'
[string "@SharedXML/Tooltip/TooltipDataHandler.lua"]:151: in function <SharedXML/Tooltip/TooltipDataHandler.lua:146>
[string "@SharedXML/Tooltip/TooltipDataHandler.lua"]:173: in function <SharedXML/Tooltip/TooltipDataHandler.lua:169>
[string "@SharedXML/Tooltip/TooltipDataHandler.lua"]:225: in function <SharedXML/Tooltip/TooltipDataHandler.lua:224>
[string "@SharedXML/Tooltip/TooltipDataHandler.lua"]:375: in function <SharedXML/Tooltip/TooltipDataHandler.lua:339>
[string "=[C]"]: in function `securecallfunction'
[string "@SharedXML/Tooltip/TooltipDataHandler.lua"]:336: in function <SharedXML/Tooltip/TooltipDataHandler.lua:335>
[string "=(tail call)"]: ?
[string "@FrameXML/MailFrame.lua"]:347: in function <FrameXML/MailFrame.lua:343>
[string "=[C]"]: ?
[string "=[C]"]: in function `InboxFrameItem_OnEnter'
[string "*MailFrame.xml:155_OnEnter"]:1: in function <[string "*MailFrame.xml:155_OnEnter"]:1>

Locals:
(*temporary) = nil
commented

This issue should be fixed in the latest alpha:
Journalator-1.80-1-g47b9207.zip

commented

Is this library intended to load in Classic versions as well?

2x ...aceJournalator_Statistics/Tooltips/Hooks.lua:46: Cannot find a library instance of "LibBattlePetTooltipLine-1-0".
[string "=[C]"]: in function `error'
[string "@CodexLite/libs/LibStub-1.0.2-70000/LibStub.lua"]:23: in function `LibStub'
[string "@Journalator_Statistics/Tooltips/Hooks.lua"]:46: in main chunk

Locals:
(*temporary) = "Cannot find a library instance of "LibBattlePetTooltipLine-1-0"."

Wrath Classic, couple more errors but they are because of this one.

commented

The trivial fix is to change Journalator_Statistics\Tooltips\Hooks.lua:46 to
local LibBattlePetTooltipLine = LibStub("LibBattlePetTooltipLine-1-0",true)

commented

Fixed in 1.81