Originally Posted by brekal
The error is: function expected instead of nil value. The line is
Lua Code:
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:
-- 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).