ElvUI Enhanced Again (DF)

ElvUI Enhanced Again (DF)

1M Downloads

Paperdoll.lua error

geggiot opened this issue ยท 4 comments

commented

50x ...aceElvUI_Enhanced\modules\misc\paperdoll.lua:95: bad argument #2 to 'max' (number expected, got nil) [C]: in function max'
...aceElvUI_Enhanced\modules\misc\paperdoll.lua:95: in function ?' ...Tom\libs\CallbackHandler-1.0\CallbackHandler-1.0-6.lua:145: in function <...Tom\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:145> [string "safecall Dispatcher[1]"]:4: in function <[string "safecall Dispatcher[1]"]:4> [C]: ? [string "safecall Dispatcher[1]"]:13: in function ?'
...Tom\libs\CallbackHandler-1.0\CallbackHandler-1.0-6.lua:92: in function `Fire'
...aceTomTom\libs\AceEvent-3.0\AceEvent-3.0-3.lua:120: in function <...aceTomTom\libs\AceEvent-3.0\AceEvent-3.0.lua:119>

Locals:
nil`
sometimes got this error

commented

I am getting the same thing for a while now.

53x ...aceElvUI_Enhanced\modules\misc\paperdoll.lua:95: bad argument #1 to 'max' (number expected, got nil)
[C]: in function max' ...aceElvUI_Enhanced\modules\misc\paperdoll.lua:95: in function ?'
...bot\Libs\CallbackHandler-1.0\CallbackHandler-1.0-6.lua:143: in function <...bot\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:143>
[string "safecall Dispatcher[1]"]:4: in function <[string "safecall Dispatcher[1]"]:4>
[C]: ?
[string "safecall Dispatcher[1]"]:13: in function ?' ...bot\Libs\CallbackHandler-1.0\CallbackHandler-1.0-6.lua:90: in function Fire'
AskMrRobot\Libs\AceEvent-3.0\AceEvent-3.0-3.lua:120: in function <AskMrRobot\Libs\AceEvent-3.0\AceEvent-3.0.lua:119>

Locals:
nil

commented

Is there any specific place in Wow you get the error? (in an instance or raid for example) Or when you do some specific action?

Thanks for the help!

commented

seems solved

commented

So sorry to necro this, but it's not actually solved.

The issue stems from dual-wielded artifact weapons. When I log in my Priest... if I was in Discipline or Holy spec (each wields a staff), then there is no issue. But if I log in as Shadow spec, there is a "hidden" offhand that goes along with the dagger. There is no actual Item per se, because it only takes up one inventory slot -- but it takes up two equipment slots (main hand and off-hand). This is why the GetItemLevel returns nil and the max function can't compare your mainhand iLevel to it. The same holds true for my Demon Hunter (in either spec, a single-Item Artifact weapon uses both equipment slots) and my Rogue. In each of those instances, I get the above error when logging in.

I was able to temporarily fix the problem for myself by changing line 94 to:
if itemLinkOffhand then itemLevelOffHand = itemLevelMainhand end