Thread Tools Display Modes
01-15-12, 04:14 PM   #1
Kendian
A Molten Giant
 
Kendian's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 614
Journal

Is anyone else getting a lua error when they mouse over loot in dungeon journal? I get it with any or no addons enabled.

Message: ...zzard_EncounterJournal\Blizzard_EncounterJournal.lua:867: attempt to call method 'IsEquippedItem' (a nil value)
Time: 01/15/12 17:12:47
Count: 392
Stack: ...zzard_EncounterJournal\Blizzard_EncounterJournal.lua:867: in function <...zzard_EncounterJournal\Blizzard_EncounterJournal.lua:864>

Locals: self = EncounterJournalEncounterFrameInfoLootScrollFrameButton6 {
0 = <userdata>
showingTooltip = true
bossTexture = <unnamed> {
}
slot = EncounterJournalEncounterFrameInfoLootScrollFrameButton6Slot {
}
encounterID = 285
bosslessTexture = <unnamed> {
}
boss = EncounterJournalEncounterFrameInfoLootScrollFrameButton6Boss {
}
name = EncounterJournalEncounterFrameInfoLootScrollFrameButton6Name {
}
link = "[Ward of Incantations]"
index = 10
itemID = 72809
icon = EncounterJournalEncounterFrameInfoLootScrollFrameButton6Icon {
}
armorType = EncounterJournalEncounterFrameInfoLootScrollFrameButton6ArmorClass {
}
}
(*temporary) = nil
(*temporary) = EncounterJournalEncounterFrameInfoLootScrollFrameButton6 {
0 = <userdata>
showingTooltip = true
bossTexture = <unnamed> {
}
slot = EncounterJournalEncounterFrameInfoLootScrollFrameButton6Slot {
}
encounterID = 285
bosslessTexture = <unnamed> {
}
boss = EncounterJournalEncounterFrameInfoLootScrollFrameButton6Boss {
}
name = EncounterJournalEncounterFrameInfoLootScrollFrameButton6Name {
}
link = "[Ward of Incantations]"
index = 10
itemID = 72809
icon = EncounterJournalEncounterFrameInfoLootScrollFrameButton6Icon {
}
armorType = EncounterJournalEncounterFrameInfoLootScrollFrameButton6ArmorClass {
}
}
(*temporary) = "attempt to call method 'IsEquippedItem' (a nil value)"
__________________
  Reply With Quote
01-15-12, 04:35 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Do you get this error with all addons disabled? I do not get an error, and I was just looking at loot in the EJ last night.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
01-15-12, 04:54 PM   #3
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
Seems you have an addon that changes IsEquippedItem, more exactly sets that API to nil, so it does not exist.

http://wowprogramming.com/docs/api/IsEquippedItem

You can if you have, search all your .lua files in Interface\Addons and see what addons use that API, by searching for "IsEquippedItem" -maybe you find something saying "IsEquippedItem = nil" or similar.
  Reply With Quote
01-15-12, 06:08 PM   #4
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Originally Posted by Kendian View Post
Message: ...zzard_EncounterJournal\Blizzard_EncounterJournal.lua:867: attempt to call method 'IsEquippedItem' (a nil value)
I didn't know there also was a widget/method version of IsEquippedItem
  Reply With Quote
01-15-12, 06:12 PM   #5
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
http://wowprogramming.com/docs/widge...IsEquippedItem

For compare tips, I presume.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
01-15-12, 06:13 PM   #6
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,928
Sounds like it might be linked to this section of the EncounterJournal.lua file:

Code:
function EncounterJournal_Loot_OnUpdate(self)

    if GameTooltip:IsOwned(self) then

        if IsModifiedClick("COMPAREITEMS") or

                 (GetCVarBool("alwaysCompareItems") and not self:IsEquippedItem()) then

            GameTooltip_ShowCompareItem();

        else

            ShoppingTooltip1:Hide();

            ShoppingTooltip2:Hide();

            ShoppingTooltip3:Hide();

        end

 

        if IsModifiedClick("DRESSUP") then

            ShowInspectCursor();

        else

            ResetCursor();

        end

    end

end
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
01-15-12, 11:06 PM   #7
Kendian
A Molten Giant
 
Kendian's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 614
Yep, checked, double checked, no addons. Even removed interface/wtf so it would repopulate, still error. Ran repair, did a fresh install, it's driving me up a frakking wall~
__________________
  Reply With Quote
01-16-12, 01:39 AM   #8
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
Sounds like a Blizzard bug?

Going by Xrystal's code snippet they're trying to call IsEquippedItem() as a method of 'self' whereas the function signature is IsEquippedItem(item).

Only thing you can do is disable the game option to always compare items.

If it is indeed verified as a Blizzard bug, report it on the official forums and for the meantime make a request at the authors of BlizzBugsSuck to include a fix for it.
  Reply With Quote
01-17-12, 05:44 AM   #9
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
I can't reproduce it and the code Xrystal posted should never run (the relevant script handler is commented out in the xml)

So all I can suggest is to delete the Blizzard_* addon folders and let the game recreate them next time you start.

Also if you're playing on Windows 7 or Vista make sure you check the virtualized folders as well if you let the game install to the default location.

Edit: Making a mini addon out of this should fix it (although like I said the game client should never run that function anyway)
Code:
local eventframe=CreateFrame("Frame")
eventframe:SetScript("OnEvent", 
function(self,event,...) 
	return self[event] and self[event](...)
end)
eventframe:RegisterEvent("ADDON_LOADED")
function eventframe.ADDON_LOADED(...)
	if ... == "Blizzard_EncounterJournal" then
		_G.EncounterJournal_Loot_OnUpdate=function(...) 
				local button = ...
				if GameTooltip:IsOwned(button) then
					if IsModifiedClick("COMPAREITEMS") or
							 (GetCVarBool("alwaysCompareItems") and not IsEquippedItem(button.itemID)) then
						GameTooltip_ShowCompareItem();
					else
						ShoppingTooltip1:Hide();
						ShoppingTooltip2:Hide();
						ShoppingTooltip3:Hide();
					end
			
					if IsModifiedClick("DRESSUP") then
						ShowInspectCursor();
					else
						ResetCursor();
					end
				end
			end
		eventframe.UnregisterEvent("ADDON_LOADED")
		eventframe.ADDON_LOADED = nil
	end
end
Drycoded!

Last edited by Dridzt : 01-17-12 at 06:02 AM.
  Reply With Quote
01-17-12, 06:09 AM   #10
Saiket
A Chromatic Dragonspawn
 
Saiket's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 154
It's a bug in Blizzard's code; self in that snipped refers to an EncounterItemTemplate button instead of GameTooltip like Blizzard probably meant to use.

The error only occurs if you have the "alwaysCompareItems" CVar enabled (and aren't holding shift), so you could disable that setting for now to avoid the problem. I don't think there's any checkbox in the default UI to toggle it, so you'll have to run this slash command instead:
Code:
/console alwaysCompareItems 0
Once that's disabled, you won't see item comparison tooltips unless you hold shift while mousing over items.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Journal

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off