View Single Post
09-13-14, 06:20 AM   #7
Wimpface
A Molten Giant
 
Wimpface's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 648
Just installed HaveIDoneThat to try it out, and found that you need to apply the fix Phanx posted on the ticket or it will throw errors all over the place (even in other files like items.lua and config.lua) and won't load the extra tab shown in Phanx screenshot.

In compare.lua, you want to replace this block (line 15-24)
Lua Code:
  1. function mod:OnLoad()
  2.     self:InitDB()
  3.  
  4.     for tooltip in pairs(hook_tooltips) do
  5.         hooksecurefunc(tooltip, "SetHyperlink", self.OnSetHyperlink)
  6.         hooksecurefunc(tooltip, "Hide", self.OnTooltipHide)
  7.     end
  8. end
  9.  
  10. local player_guid = strsub(UnitGUID("player"), 3)

With the one Phanx suggested on the ticket:
Lua Code:
  1. local player_guid
  2.  
  3. function mod:OnLoad()
  4.     self:InitDB()
  5. end
  6.  
  7. function mod:OnLogin()
  8.     player_guid = strsub(UnitGUID("player"), 3)
  9.  
  10.     for tooltip in pairs(hook_tooltips) do
  11.         hooksecurefunc(tooltip, "SetHyperlink", self.OnSetHyperlink)
  12.         hooksecurefunc(tooltip, "Hide", self.OnTooltipHide)
  13.     end
  14. end
__________________
All I see is strobe lights blinding me in my hindsight.
  Reply With Quote