Farmer

Farmer

772k Downloads

Error When I login or Reload

Comicus opened this issue ยท 14 comments

commented

2x Farmer error: Interface\AddOns\Farmer\classes\Storage.lua:77: table index is nil
[string "@interface\AddOns\Farmer\core\Events.lua"]:29: in function <Interface\AddOns\Farmer\core\Events.lua:25>
[string "=[C]"]: in function pcall' [string "@Interface\AddOns\Farmer\utils\Utils.lua"]:123: in function <Interface\AddOns\Farmer\utils\Utils.lua:122> [string "@Interface\AddOns\Farmer\classes\CallbackHandler.lua"]:22: in function __callCallbacks'
[string "@interface\AddOns\Farmer\classes\CallbackHandler.lua"]:48: in function `call'
[string "@interface\AddOns\Farmer\core\Events.lua"]:10: in function <Interface\AddOns\Farmer\core\Events.lua:9>

commented

I do not see any errors

commented

Are you playing Classic, Wrath or Retail?
Is this happening on all your characters or only on one?
And would you mind uploading a screenshot of your current equipment and your bags?
It seems an item in your equipment or your bags returns empty information causing this error.

commented

WoW Classic WotLK
Version 3.4.0.46902

App Version
Farmer-3.16.5

27x Farmer error: Interface\AddOns\Farmer\classes\Storage.lua:90: table index is nil
[string "@interface\AddOns\Farmer\core\Events.lua"]:29: in function <Interface\AddOns\Farmer\core\Events.lua:25>
[string "=[C]"]: in function pcall' [string "@Interface\AddOns\Farmer\utils\Utils.lua"]:123: in function <Interface\AddOns\Farmer\utils\Utils.lua:122> [string "@Interface\AddOns\Farmer\classes\CallbackHandler.lua"]:22: in function __callCallbacks'
[string "@interface\AddOns\Farmer\classes\CallbackHandler.lua"]:48: in function `call'
[string "@interface\AddOns\Farmer\core\Events.lua"]:10: in function <Interface\AddOns\Farmer\core\Events.lua:9>

commented

I have just released a new version 3.16.6 where this error should no longer occur but print a debug message with an item id instead. Please let me know said item id so I can look into a possible issue with some items.

commented

So far no errors with the update.

commented

And is there any message in the chat after logging in? Because unless the cause of the error magically vanished, a message should be printed stating something about an item link could not be found for an item id.

commented

I assume you have Mammoth Cutters equipped as ammo?
If so, can you unequip any ammo, /reload and check if a message is printed still?

commented

This is the only thing I see.

Farmer: No link found for item id 41164.

commented

Mammoth Cutters = 41164

commented

I wasn't able to unequip the ammo. I logged into another character. It seems that it's not able to count equipped ammo.

Farmer: No link found for item id 32883.
Felbane Slugs = 32883

commented

When I log in to any character without ammo equipped I don't see any errors.

commented

Thanks a ton for the input! I don't have a classic character with ammo so I couldn't test this myself but now I at least know what causes the error and can look into finding a fix.

commented

The fix actually is trivial, I had assumed equipped ammo is removed from the bags but it's just a visual slot.
So the error is fixed by simply not checking the equipped ammo slot.

commented

Just to confirm: The message no longer pops up in version 3.16.7, correct?