View Single Post
11/09/14, 09:27 AM   #2
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Originally Posted by brekal View Post
The error is: function expected instead of nil value. The line is
Lua Code:
  1. LootManager:UpdateUI(name, count)

When I dump the two variables "name" and "count" they are defenitly not nil.
function expected instead of nil. The error means LootManager.UpdateUI is nil. Here's a possible reason:

Lua Code:
  1. --  LootManager.savedVars = ZO_SavedVars:New("LootManager", 1, nil, LootManager.Default)
SavedVariables table needs to be global. So when the game loads your saved vars, it replaces your LootManager add-on table with saved vars table. For completeness, you'll also encounter this error if you have a control in XML named LootManager, they all share the global namespace (_G).
  Reply With Quote