Originally Posted by Sharlikran
Lua Code:
EVENT_MANAGER:RegisterForEvent("HarvestMap", EVENT_ADD_ON_LOADED, Harvest.OnLoad)
That is at the bottom of the main file.
Lua Code:
function Harvest.OnLoad(eventCode, addOnName) {{{{ Bunch of stuff here}}}} Harvest.nodes = ZO_SavedVars:NewAccountWide("Harvest_SavedVars", 2, "nodes", { data = {} } ) if Harvest.settings.account then Harvest.settings = ZO_SavedVars:NewAccountWide("Harvest_SavedVars", 1, "settings", {{{{ stuf }}}} } else Harvest.settings = ZO_SavedVars:New("Harvest_SavedVars", 1, "settings", {{{{ stuf }}}} } end
That will error ^^
|
Well, of course it will. You're not checking the addonName return to see if it was actually your addon that loaded and is ready.
![Roll Eyes (Sarcastic)](//cdn-eso.mmoui.com/images/style_esoui/smilies/rolleyes.gif)