Thread Tools Display Modes
08/15/20, 03:52 PM   #41
Marazota
AddOn Author - Click to view addons
Join Date: Sep 2015
Posts: 257
Originally Posted by Rhyono View Post
You'll have to remove the LibStub dependency from there too.
in the library, i changed manifest like in step 1)
also this

Code:
local MAJOR, MINOR = "LibEventHandler-1.1", 1.0
local LEH, LEHminor = LibStub:NewLibrary(MAJOR, MINOR)
if not LEH then return end
to this

Code:
local MAJOR, MINOR = "LibEventHandler", 1.1
local LEH, LEHminor = LibStub:NewLibrary(MAJOR, MINOR)
if not LEH then return end

LibEventHandler = LEH, LEHminor
now i am getting another error

Code:
user:/AddOns/InventoryAssistant/InventoryAssistant.lua:654: attempt to index a nil value
stack traceback:
user:/AddOns/InventoryAssistant/InventoryAssistant.lua:654: in function 'IA_InventoryAssistant:InitializeSettingsMenu'
|caaaaaa<Locals> self = [table:1]{showFCOISGearSetMarkers = T, showEnchants = T, onlyMarkedItems = F, showBound = T, showItemLevels = T, onlyNonCP160 = F, onlyDuplicates = F, onlyCP160 = F, showNonSetItems = T, onlyLoots = F, showMonsterSets = T, showCrafted = T, groupLoots = T, showBuyable = T, showFCOISDynamicMarkers = T} </Locals>|r
user:/AddOns/InventoryAssistant/InventoryAssistant.lua:502: in function 'eventToFunctionTable'
|caaaaaa<Locals> event = 65536, addonName = "InventoryAssistant" </Locals>|r
user:/AddOns/InventoryAssistant/libs/LibEventHandler/LibEventHandler.lua:15: in function 'CallEventFunctions'
|caaaaaa<Locals> eventCode = 65536, numOfFuncs = 1, i = 1 </Locals>|r
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Let's get rid of LibStub!

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off