Thread Tools Display Modes
09/23/19, 12:10 PM   #1
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
For LAM: look at how Baertram did it. You almost had it correct.

For LMP: no, it hasn't been setup to work without LibStub.
  Reply With Quote
09/24/19, 01:56 AM   #2
Anceane
 
Anceane's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 307
Originally Posted by Rhyono View Post
For LAM: look at how Baertram did it. You almost had it correct.

For LMP: no, it hasn't been setup to work without LibStub.
Then i guess i better do nothing, as i dont see why i should remove libstub in one case and have to keep it in another.

Best is probably to wait for Authors to decide what they want to do first with Libstub

And btw, the addon i wanted to check is a very old one : https://www.esoui.com/downloads/info...dandjpFix.html

This is actually my principal addon, without it i would not be able to read correctly the game
  Reply With Quote
09/24/19, 06:56 AM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,013
LibStub is still working and some libraries are still not changed to work without it.
So you can prepare addons and libs to not use LibStub anymore where applicable, or what until it's gone and let them fail to load properly then.

Currently it's only an advice to make addons work with or without it. You can even load the library via LibStub as long as it is given and if LibStub == nil then use the global variable instead (hybrid solution).

Originally Posted by Anceane View Post
Then i guess i better do nothing, as i dont see why i should remove libstub in one case and have to keep it in another.

Best is probably to wait for Authors to decide what they want to do first with Libstub

And btw, the addon i wanted to check is a very old one : https://www.esoui.com/downloads/info...dandjpFix.html

This is actually my principal addon, without it i would not be able to read correctly the game
  Reply With Quote
09/25/19, 09:22 AM   #4
ArtOfShred
 
ArtOfShred's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 103
Originally Posted by Rhyono View Post
For LAM: look at how Baertram did it. You almost had it correct.

For LMP: no, it hasn't been setup to work without LibStub.
LMP should work fine without LibStub, just use
Code:
local LMP = LibMediaProvider
if not LMP then return end
LMP has LibStub implemented in the same way as LAM right now, just embedded in the folder w/o a manifest for compatibility.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Please do NOT include libraries without own txt file (where possible)


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