Download
(49 Kb)
Download
Updated: 03/10/24 04:21 PM
Pictures
File Info
Compatibility:
Scions of Ithelia (9.3.0)
Endless Archive (9.2.5)
Updated:03/10/24 04:21 PM
Created:02/14/14 10:28 PM
Monthly downloads:73,974
Total downloads:4,695,367
Favorites:2,759
MD5:
9.3.0
LibAddonMenu-2.0  Popular! (More than 5000 hits)
Version: 2.0 r36
by: sirinsidiator, Seerah
LibAddonMenu is a library which offers many functions for add-on authors to simplify creating a configuration panel in the game's settings menu.

Users:

If the game cannot load some addon because it is missing LibAddonMenu-2.0 as a dependency, simply download and install it like you would any other addon. In case it shows as "out of date" in the game, simply enable the "allow out of date addons" checkbox.
IMPORTANT
In case you get an error that contains text like this:
user:/AddOns/<some other addon>/Libs/LibAddonMenu-2.0

Some other addon you have installed likely contains an old version of LibAddonMenu which is loaded before the most current one.

Make sure to search for LibAddonMenu-2.0 folders in your AddOns folder and delete all of them. Afterwards install the latest version of LibAddonMenu-2.0 separately.

Check Kyzderp's guide for more detailed instructions
Developers:

Ever since I (sirinsidiator) have taken over development of LAM-2.0 in 2015, the project is available on github and open for contributions by other authors.

With the ongoing effort to get rid of LibStub in favour of the library management capabilities provided by the game itself since Summerset was released, it is no longer recommended to embed LAM, or use LibStub to access it. Instead it should simply be specified as a dependency and accessed via the new LibAddonMenu2 global variable. Instead of providing it as part of another add-on, users should install and update it separately.

Quickstart:
Simply add LAM2 as a dependency in your addon manifest:
Code:
## DependsOn: LibAddonMenu-2.0
Optionally you can require a specific minimum version of LAM in case you rely on some features that are not available in earlier versions.
Code:
## DependsOn: LibAddonMenu-2.0>=30
In your code you can simply access the library via the global variable "LibAddonMenu2" and start creating your settings panel and controls:

Lua Code:
  1. local LAM = LibAddonMenu2
  2. local saveData = {} -- TODO this should be a reference to your actual saved variables table
  3. local panelName = "MyAddOnSettingsPanel" -- TODO the name will be used to create a global variable, pick something unique or you may overwrite an existing variable!
  4.  
  5. local panelData = {
  6.     type = "panel",
  7.     name = "MyAddOn Settings",
  8.     author = "me",
  9. }
  10. local panel = LAM:RegisterAddonPanel(panelName, panelData)
  11. local optionsData = {
  12.     {
  13.         type = "checkbox",
  14.         name = "My First Checkbox",
  15.         getFunc = function() return saveData.myValue end,
  16.         setFunc = function(value) saveData.myValue = value end
  17.     }
  18. }
  19. LAM:RegisterOptionControls(panelName, optionsData)

For more examples and information you can take a look at exampleoptions.lua, AwesomeGuildStore/Settings.lua, the LAM wiki or the source code. Each control has a full list of available properties in the comment at the start of the lua file.

Features:
  • Controls - LAM offers different control types to build elaborate settings menus
  • Reset to Default - LAM can restore the settings to their default state with one key press
  • Additional AddOn Info - Add a version label and URLs for website, donations, translations or feedback
  • AddOn Search - Can't find the settings for your AddOn between the other hundred entries? No problem! Simply use the text search to quickly find what you are looking for
  • Slash Commands - Provides a shortcut to open your settings menu from chat
  • Tooltips - In case you need more space to explain what a control does, simply use a tooltip
  • Warnings - If your setting causes some unexpected behaviour, you can simply slap a warning on them
  • Dangerous Buttons - when flagged as such, a button will have red text and ask for confirmation before it runs any action
  • Required UI Reload - For cases where settings have to reload the UI or should be stored to disk right away, LAM offers a user friendly way to ask for a UI reload.
  • Support for all 5 official languages and 6 custom localisation projects

External controls:
2.0 r36
- added multiselect feature to dropdown control (#135, thanks Baertram)
- fixed anchor constraint warnings in the interface.log (#136, thanks DakJaniels)
- fixed a bug which could lead to some controls not getting created in some rare cases
- updated for Scions of Ithelia

2.0 r35
- added "resetFunc" to each control type which gets called while resetting a panel to default values (#130, thanks Baertram)
- added workaround for dropdown menus getting cut off when used inside submenus
- updated for Secret of the Telvanni

2.0 r34
- added tooltips for header and description controls (#129, thanks remosito)
- fixed old icons not being hidden when choices are updated on the icon picker (thanks Gandalf)
- updated for High Isle

2.0 r33
- fixed dropdown widget choicesValues not accepting boolean "false" (#127, thanks Baertram)
- switched to a new build system
- updated for Ascending Tide

2.0 r32
- added "createFunc", "minHeight" and "maxHeight" properties to custom control (#123, thanks Baertram)
- updated folder structure (#119)
- updated for Markarth

2.0 r31
- fixed iconpicker showing an empty tooltip when no choicesTooltips are set (#111, thanks Scootworks)
- fixed slider mouse wheel interactions (#115)
- fixed translated texts not showing in the official Russian localization (#118, thanks andy.s)
- improved dropdown choice tooltip code compatibility (#115)
- added "helpUrl" property for many control types (#109, thanks Baertram)
- added "textType" and "maxChars" properties for editbox (#110, thanks Scootworks)
- added "readOnly" property for slider (#112, thanks Scootworks)
- removed embedded copy of LibStub (#116)
- updated Japanese translation (#113, thanks Calamath)
- updated for Greymoor

2.0 r30
- updated Korean translation (thanks whya5448)
- added "enableLinks" property to description control (#102, thanks silvereyes333)
- updated for Dragonhold

2.0 r29
- fixed a rare error when a panel refresh is triggered by an addon before LAM is fully initialized (#98)
- fixed SetHandler warning showing when a scrollable dropdown is used (#97)
- improved SetHandler warning message to show the panel title instead of the internal name and in addition log to LibDebugLogger for easy access to a stack trace (#99)
- improved comments in control files (#100, thanks Phuein)
- adjusted ReloadUI warning color to match the color of the warning in the ingame video settings (#101, thanks Phuein)

2.0 r28
- fixed color picker throwing errors in gamepad mode (#94, thanks Gandalf)
- added global variable "LibAddonMenu2" for direct access without using LibStub (#95)
- added IsLibrary directive to manifest (#93)
- added warning message when an addon is setting the "OnShow", "OnEffectivelyShown", "OnHide" or "OnEffectivelyHidden" handler on a panel (#92)
- use the callbacks "LAM-PanelControlsCreated", "LAM-PanelOpened" and "LAM-PanelClosed" instead
- updated Brazilian translation (thanks FelipeS11)

2.0 r27
- fixed scrollable dropdown not working correctly (#83)
- fixed disabled sliders changing value in some situations when clicked
- fixed panel not refreshing on open when it was already selected (#82)
- added RefreshPanel function to panel control (#84)
- the panel control is returned by RegisterAddonPanel
- added "translation", "feedback" and "donation" properties to panel (#88, thanks Baertram)
- all three (and also the "website" property) accept a function or a string
- added "disabled" and "disabledLabel" property for submenus (#86, #90, thanks klingo)
- added "icon" and "iconTextureCoords" property for submenus (#91)
- added "disabled" property for descriptions (#89, thanks klingo)
- added "clampFunction" property for slider controls (#85)
- the function receives the value, min and max as arguments and has to return a clamped value
- added optional support for LibDebugLogger
- in case it is loaded, it logs the full error when control creation failed
- updated LibStub to r5

2.0 r26
- fixed error when loading LAM on an unsupported locale
- added Korean translation (thanks p.walker)
- added Brazilian translation (thanks mlsevero)

2.0 r25
- fixed tooltips not working for entries in scrollable dropdown controls (#78, thanks kyoma)
- fixed standalone LAM not loading as expected when LAM is bundled with the manifest included (#81)
- fixed slashcommands not opening the correct panel on first attempt after UI load (#79)
- fixed an error when opening the addon settings menu after Clockwork City update (#80, thanks Gandalf)

2.0 r24
- added scrollable property for dropdown controls (#71, #75, thanks kyoma)
- added Italian translation (#70, thanks JohnnyKing94)
- added Polish translation (#73, #74, thanks EmiruTegryfon)
- updated Spanish translation (thanks TERAB1T)
- updated Russian translation (thanks Morganlefai and Kwisatz)
- fixed debug code not accepting functions for widget names (#72, thanks kyoma)

2.0 r23
- added Chinese translation (#64, thanks bssthu)
- added tooltips for dropdown menu entries (#42)
- added support for separate values for dropdown menu entries (#65)
- added keybind for reset to defaults button (#68)
- added requireReload property for input controls (#47)
- fixed support for nested submenus (#61, thanks Baertram)
- fixed alpha and height not working on divider control (#69)

2.0 r22
- fixed mouse exit events for sliders and textures (#52, thanks silvereyes333)
- fixed decimal input on sliders (#54)
- fixed icon picker not retaining color when disabled is toggled (#58)
- fixed slider accepting mouse wheel input while being disabled (#60)
- added support for nested submenus (#53)
- added new divider widget (#56, thanks silvereyes333)
- added new function "UpdateWarning" to controls which allows to refresh the warning text (#55, thanks silvereyes333)
- added new property "website" to panels which will render a button in the panel to open the specified addon URL (#57)
- updated localization (#59, thanks everyone who helped with it)

2.0 r21
- fixed panel creation starting more than once when switching between different addon panels quickly (#40)
- fixed LAM.util getting wiped with each version load causing errors for many players (#44)
- fixed disabled controls not having the correct label color in some cases (#41)
- fixed controls not updating their own disabled state when their value changes (#51)
- added Japanese translation (thanks k0ta0uchi) (#45)
- added isDangerous flag for button controls (#50)
- when set to true it changes the text color of the button to red and opens a dialog which shows the label and the warning text before running the callback
- added new options for sliders and fixed some bugs (#49)
- autoSelect (boolean): when set to true it makes the input field select all text when it gains focus
- inputLocation (string): setting it to "right" will move the input field to the right side of the slider and make it slightly bigger. For aesthetic reasons this should only be used in custom panels and not in the addon menu
- clampInput (boolean): true by default and if set to false it allows the input values of the slider to exceed the min and max value
- for other internal code changes take a look at the git history

2.0 r20
- fixed empty panels not firing LAM-PanelControlsCreated (#32)
- removed height constraint of 2500 from submenus (#34)
- added two new callbacks LAM-PanelOpened and LAM-PanelClosed. Both pass the panel as their sole argument (#27)
- 'default' can now be a function in addition to a static value (#23)
- all labels (name, tooltip, warning, etc.) can now be a string id or function in addition to a static string (#22)
- updated LibStub to r4

2.0 r19
- made icon picker choicesTooltips array optional
- added support for custom panel objects without a GetWidth method (partially fixes #26)
- fixed controls not refreshing correctly when they are initialized with a boolean "false" on the disabled property (#35, thanks Randactyl)
- removed height constraint on the description control (#36, thanks KuroiLight)
- added "isExtraWide" property to editboxes, allowing them to utilize more space (#37, thanks KuroiLight)
- added "decimals" property to sliders to allow rounding values to x decimals (#38, implements #21, thanks KuroiLight)
- added mousewheel support for sliders (#39, implements #30, thanks KuroiLight)

2.0 r18
- major overhaul of the addon menu style (thanks votan & merlight)
- NOTE: the menu is now a bit wider than before, if you created custom elements you might need to update them accordingly
- added search box to addon list (thanks votan & merlight)
- new icon picker widget
- removed micro freeze when opening a menu with many options for the first time
- changed tooltip property to accept functions that return a string (thanks Ayantir)
- changed the label on the defaults button and menu to avoid a grammar mistake in the french localization (thanks Ayantir)
- updated LibStub to r3 (support for '.' in minor version string, e.g. "17.5")

2.0 r17
- updated for changes in 100011
- fixed OpenToPanel function
- fixed possible error with combobox names
- half width control no longer have a fixed height and instead scale automatically now
- changed controls to no longer use top level windows
- fixed problems with the loading order and added warning if an old version gets initialized first
A big thank you to everyone who helped making these changes, especially votan, merlight and Garkin!

2.0 r16
- updated for changes in 100010
- thanks to Garkin for alerting me of changes needed and for testing on the test server
- Spanish support added, translation provided by Luisen75 for their Spanish project

2.0 r14
- fixed bug where the LAM-RefreshPanel callback was being registered with CALLBACK_MANAGER multiple times
- fixed highlighting of entries in the game Settings menu (Addon Settings now properly highlights and other entries go back to normal)

2.0 r13
- one last bug ran out from anunder the dresser - I smashed it hopefully!

2.0 r12
- fix one bug another shows up...

2.0 r11
- don't overwrite widgets list if table already exists (in case an external lib or addon registers a new widget type)
- headers, descriptions, submenus and custom widgets now have the ability to update their text when the panel and other controls refresh (simply change the name/text in the controlData table)
- custom controls now have the ability to refresh with other controls and your panel - there is a new optional field in the data table called refreshFunc (when the panel refreshes, this function will be called)

2.0 r10
- fixed display of warning icon for dropdown controls
- update LibStub.lua

2.0 r9
- added Russian locale support for RuESO project
- fixed anchoring issue with addon list (addon names are now properly in the scroll frame, so the few of you with tons installed should have no issue any longer)
- added ability to close submenus from the bottom of the submenu (there is a small strip along the bottom of the submenu that is clickable)
- edited each control to better support custom-created UIs via LAM and the parent passed through to the create functions

2.0 r8
- changed border texture around panel and addon list
- expanded maximum size of submenus from 1500 to 2500

2.0 r7
- shortened game menu entry for French and German localizations (so the text doesn't get cut off)
- fixed checkbox label coloring bug (when a checkbox that is set to "off" is re-enabled by another setting)
- fixed multi-line editbox bug (where text didn't display)
- added mousewheel scrolling for multi-line editboxes

2.0 r6
- added "LAM-PanelControlsCreated" callback when you panel has been shown for the first time and your controls have now been created
- fixed duplicate Addon Settings panels when you have a newer version of LAM overwriting an older version
- finished localizing stuff that wasn't localized yet
- added "sort" field to dropdown control

2.0 r5
- fix RefreshPanel function so that all controls now update
- add RefreshPanel call to ForceDefaults function

2.0 r4
- fix for me being an idiot. Sorry guys ><

2.0 r3
- fixed checkboxes making a sound when just refreshing
- fixed error when the lib is loaded standalone, but no addons are registered with it
- fixed error when LAM updates itself to a newer version (won't try to create two of the same frame)

2.0 r2
- LAM-2.0 is now released! See http://www.esoui.com/portal.php?&id=5&pageid=10 for a list of differences between LAM1 and LAM2, as well as a guide for usage and the library's docs

-----------------
1.0 r8
- updated APIVersion to 100004
- changed submenu so scroll bar doesn't overlap contents
- submenu should hopefully no longer occasionally show up behind the options panel

1.0 r7
- the defaults button now properly hides for each panel (Note: the keybind still works, I can't seem to get rid of that, but at least the prompt is hidden now)
- LAM now supports sub menus! See the description page for docs on usage

1.0 r6
- copy/paste fail when changing the name of an arg. Description titles will no longer hide from you.

1.0 r5
- exposed the widgets created via return

1.0 r4
-new widget: Description

1.0 r3
-fixed error with color picker in new patch

1.0 r2
-fixed bug when more than one addon panel is created
Archived Files (34)
File Name
Version
Size
Uploader
Date
2.0 r35
49kB
sirinsidiator
10/31/23 01:16 PM
2.0 r34
48kB
sirinsidiator
06/06/22 05:35 AM
2.0 r33
48kB
sirinsidiator
03/14/22 02:51 PM
2.0 r32
48kB
sirinsidiator
12/17/20 02:04 PM
2.0 r31
49kB
sirinsidiator
06/21/20 03:06 PM
2.0 r30
48kB
sirinsidiator
10/21/19 03:23 AM
2.0 r29
48kB
sirinsidiator
05/07/19 11:00 AM
2.0 r28
47kB
sirinsidiator
05/01/19 09:33 AM
2.0 r27
47kB
sirinsidiator
04/18/19 03:07 PM
2.0 r26
45kB
sirinsidiator
05/21/18 02:36 AM
2.0 r25
45kB
sirinsidiator
09/29/17 12:28 PM
2.0 r24
45kB
sirinsidiator
07/14/17 01:00 PM
2.0 r23
42kB
sirinsidiator
10/30/16 10:00 AM
2.0 r22
39kB
sirinsidiator
08/06/16 07:42 AM
2.0 r21
38kB
sirinsidiator
07/17/16 11:04 AM
2.0 r20
41kB
sirinsidiator
03/26/16 10:45 AM
2.0 r19
37kB
sirinsidiator
02/24/16 12:24 PM
2.0 r18
36kB
sirinsidiator
06/14/15 01:12 PM
2.0 r17
30kB
sirinsidiator
02/22/15 11:09 AM
2.0 r16
27kB
Seerah
11/02/14 02:03 PM
2.0 r14
26kB
Seerah
07/27/14 10:17 PM
2.0 r13
26kB
Seerah
07/20/14 09:35 PM
2.0 r12
26kB
Seerah
07/20/14 07:55 PM
2.0 r11
26kB
Seerah
07/19/14 02:49 PM
2.0 r10
25kB
Seerah
07/13/14 09:18 PM
2.0 r9
25kB
Seerah
07/05/14 06:55 PM
2.0 r8
25kB
Seerah
06/22/14 09:47 PM
2.0 r7
25kB
Seerah
06/15/14 05:17 PM
2.0 r6
25kB
Seerah
06/13/14 11:28 PM
2.0 r5
25kB
Seerah
06/12/14 10:32 PM
2.0 r4
25kB
Seerah
06/11/14 08:56 PM
2.0 r3
25kB
Seerah
06/11/14 07:49 PM
2.0 r2
24kB
Seerah
06/10/14 10:06 PM
1.0 r8
6kB
Seerah
05/24/14 10:01 PM


Post A Reply Comment Options
Unread 08/30/20, 09:04 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1579
File comments: 1132
Uploads: 41
Re: Re: Re: Getting these errors while skyshard is installed.

Originally Posted by Doughboyx3
Originally Posted by sirinsidiator
Originally Posted by Doughboyx3
Been searching for about more then 30mins and have yet to find out a solution. Any can be of assistance?

EsoUI/Ingame/Map/MapPin.lua:1669: attempt to index a nil value
stack traceback:
EsoUI/Ingame/Map/MapPin.lua:1669: in function 'ZO_MapPin:Initialize'
|caaaaaa<Locals> self = [table:1]{} </Locals>|r
EsoUI/Ingame/Map/MapPin.lua:1660: in function 'ZO_MapPin:New'
|caaaaaa<Locals> self = [table:2]{ANIMATION_ALPHA = 1}, object = [table:1] </Locals>|r
user:/AddOns/MiniMap/MiniMap.lua:3518: in function 'InsertCustomPin'
|caaaaaa<Locals> p = [table:3]{normalizedY = 0.725, m_PinType = 227, Id = 1, normalizedX = 0.7478}, key = 1, j = 1, mapId = 1126, pin = ud, pScalePercent = 0.74, enabled = T </Locals>|r
user:/AddOns/MiniMap/MiniMap.lua:3663: in function 'FyrMM.CustomPins'
|caaaaaa<Locals> t = 1360756, c = 1, t = 227, n = [table:4]{}, i = 1, v = [table:3] </Locals>|r
user:/AddOns/MiniMap/MiniMap.lua:2792: in function '(anonymous)'
The error message contains nothing that is related to LAM. Not sure what makes you think it's to blame?
Just don't know what to do so i'm posting to find some type of help
That's still not a reason to post to a comment section of a random unrelated addon. If you need help, you gotta ask either in the comments for the addon mentioned in the error message (MiniMap) or in the addon help forum. Seeing as you already did the latter and even got an answer, I'm not gonna answer you here.
Report comment to moderator  
Reply With Quote
Unread 09/19/20, 10:03 AM  
julivity
 
julivity's Avatar

Forum posts: 1
File comments: 26
Uploads: 0
I get an error anytime I try to change a setting in an add-on that depends on LibAddonMenu-2.0. The setting is changed, but not without a UI Error popping up every time. I have uninstalled and reinstalled the addon

This is an example from me using a slider for the addon S'rendarr:
Code:
user:/AddOns/AutoCategory/Libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:147: attempt to index a nil value
stack traceback:
user:/AddOns/AutoCategory/Libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:147: in function 'RefreshReloadUIButton'
user:/AddOns/AutoCategory/Libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:157: in function 'RequestRefreshIfNeeded'
|caaaaaa
<Locals> control = ud, panel = ud, panelData = [table:1]{name = "S'rendarr", registerForRefresh = T, registerForDefaults = F, version = "2.4.38", author = "Phinix, Kith, Garkin & silentg...", type = "panel", displayName = "|c67b1e9S|c4779ce'rendarr|r"} </Locals>|r
user:/AddOns/AutoCategory/Libs/LibAddonMenu-2.0/controls/slider.lua:69: in function 'UpdateValue'
|caaaaaa
<Locals> control = ud, forceDefault = F, value = 1 </Locals>|r
user:/AddOns/AutoCategory/Libs/LibAddonMenu-2.0/controls/slider.lua:185: in function '(anonymous)'
|caaaaaa
<Locals> self = ud, value = 1 </Locals>|r

The first line of error seems to always be:
Code:
user:/AddOns/AutoCategory/Libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:147: attempt to index a nil value
Last edited by julivity : 09/19/20 at 10:06 AM.
Report comment to moderator  
Reply With Quote
Unread 09/19/20, 10:07 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1579
File comments: 1132
Uploads: 41
Originally Posted by julivity
I get an error anytime I try to change a setting in an add-on that depends on LibAddonMenu-2.0. The setting is changed, but not without a UI Error popping up every time. I have uninstalled and reinstalled the addon

This is an example from me using a slider for the addon S'rendarr:
Code:
user:/AddOns/AutoCategory/Libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:147: attempt to index a nil value
stack traceback:
user:/AddOns/AutoCategory/Libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:147: in function 'RefreshReloadUIButton'
user:/AddOns/AutoCategory/Libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:157: in function 'RequestRefreshIfNeeded'
|caaaaaa
<Locals> control = ud, panel = ud, panelData = [table:1]{name = "S'rendarr", registerForRefresh = T, registerForDefaults = F, version = "2.4.38", author = "Phinix, Kith, Garkin & silentg...", type = "panel", displayName = "|c67b1e9S|c4779ce'rendarr|r"} </Locals>|r
user:/AddOns/AutoCategory/Libs/LibAddonMenu-2.0/controls/slider.lua:69: in function 'UpdateValue'
|caaaaaa
<Locals> control = ud, forceDefault = F, value = 1 </Locals>|r
user:/AddOns/AutoCategory/Libs/LibAddonMenu-2.0/controls/slider.lua:185: in function '(anonymous)'
|caaaaaa
<Locals> self = ud, value = 1 </Locals>|r

The first line of error seems to always be:
Code:
user:/AddOns/AutoCategory/Libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:147: attempt to index a nil value
You need to delete the folder AddOns/AutoCategory/Libs/LibAddonMenu-2.0 (and in any other addons) and install the latest version of the library in the root of the AddOns folder.
Report comment to moderator  
Reply With Quote
Unread 09/19/20, 03:32 PM  
julivity
 
julivity's Avatar

Forum posts: 1
File comments: 26
Uploads: 0
Originally Posted by sirinsidiator
You need to delete the folder AddOns/AutoCategory/Libs/LibAddonMenu-2.0 (and in any other addons) and install the latest version of the library in the root of the AddOns folder.
I think I did as you said; I deleted the folder from the addon AutoCategory and others. I then deleted \AddOns\LibAddonMenu-2.0 and reinstalled using Minion. I get this error:

Code:
user:/AddOns/AutoCategory/AutoCategory.lua:6: Cannot find a library instance of "LibAddonMenu-2.0".
stack traceback:
user:/AddOns/AutoCategory/Libs/LibStub/LibStub.lua:29: in function 'LibStub:GetLibrary'
|caaaaaa
<Locals> self = [table:1]{SILENT = T, minor = 4}, major = "LibAddonMenu-2.0" </Locals>|r
user:/AddOns/AutoCategory/AutoCategory.lua:6: in function '(main chunk)'
I think I need to put something back into those addon folders but I don't know what.

Thank you very much
Report comment to moderator  
Reply With Quote
Unread 09/20/20, 01:00 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1579
File comments: 1132
Uploads: 41
Originally Posted by julivity
Originally Posted by sirinsidiator
You need to delete the folder AddOns/AutoCategory/Libs/LibAddonMenu-2.0 (and in any other addons) and install the latest version of the library in the root of the AddOns folder.
I think I did as you said; I deleted the folder from the addon AutoCategory and others. I then deleted \AddOns\LibAddonMenu-2.0 and reinstalled using Minion. I get this error:

Code:
user:/AddOns/AutoCategory/AutoCategory.lua:6: Cannot find a library instance of "LibAddonMenu-2.0".
stack traceback:
user:/AddOns/AutoCategory/Libs/LibStub/LibStub.lua:29: in function 'LibStub:GetLibrary'
|caaaaaa
<Locals> self = [table:1]{SILENT = T, minor = 4}, major = "LibAddonMenu-2.0" </Locals>|r
user:/AddOns/AutoCategory/AutoCategory.lua:6: in function '(main chunk)'
I think I need to put something back into those addon folders but I don't know what.

Thank you very much
It's possible Minion failed to reinstall LibAddonMenu. Try to reinstall it again (while the game is closed) and check if the folder and files are there afterwards, or if it still doesn't work, download and install it manually.
Report comment to moderator  
Reply With Quote
Unread 09/20/20, 01:03 PM  
julivity
 
julivity's Avatar

Forum posts: 1
File comments: 26
Uploads: 0
Originally Posted by sirinsidiator
It's possible Minion failed to reinstall LibAddonMenu. Try to reinstall it again (while the game is closed) and check if the folder and files are there afterwards, or if it still doesn't work, download and install it manually.
I did as you said and reinstalled, but still found no LibAddonMenu-2.0 folder in the other addon folders (i.e. AutoCategory) so I ended up uninstalling Minion completely. I now get no errors and addons seem to be working fine. I'll reinstall Minion if i ever have issue with the addons being out-of-date, but for now I'm good.

Thank you very much!
Report comment to moderator  
Reply With Quote
Unread 10/19/20, 11:09 AM  
jennyloggins

Forum posts: 0
File comments: 13
Uploads: 0
Originally Posted by julivity
Originally Posted by sirinsidiator
It's possible Minion failed to reinstall LibAddonMenu. Try to reinstall it again (while the game is closed) and check if the folder and files are there afterwards, or if it still doesn't work, download and install it manually.
I did as you said and reinstalled, but still found no LibAddonMenu-2.0 folder in the other addon folders (i.e. AutoCategory) so I ended up uninstalling Minion completely. I now get no errors and addons seem to be working fine. I'll reinstall Minion if i ever have issue with the addons being out-of-date, but for now I'm good.

Thank you very much!
Boy do I wish I had found this before I uninstalled and reinstalled my entire game *laughing to keep from crying*

(Turns out you can keep Minion, you just have to manually delete the LibAddonMenu folders from the individual addon folders.)
Last edited by jennyloggins : 10/19/20 at 11:09 AM.
Report comment to moderator  
Reply With Quote
Unread 10/20/20, 04:08 PM  
jennyloggins

Forum posts: 0
File comments: 13
Uploads: 0
Back again... The comment I replied to yesterday actually wasn't the fix, I'm still getting errors. So I'm sharing this error to the devs of both pChat and LibAddonMenu2.0 because I'm not sure which addon (if either) is causing the error. If neither have an idea, I'll share to the dev of Wykkyd's mods as well.

Here is the error:
Code:
user:/AddOns/wykkydsEnhancedChat/e/LAM/LibAddonMenu-2.0.lua:147: attempt to index a nil value
stack traceback:
user:/AddOns/wykkydsEnhancedChat/e/LAM/LibAddonMenu-2.0.lua:147: in function 'RefreshReloadUIButton'
user:/AddOns/wykkydsEnhancedChat/e/LAM/LibAddonMenu-2.0.lua:157: in function 'RequestRefreshIfNeeded'
|caaaaaa<Locals> control = ud, panel = ud, panelData = [table:1]{slashCommand = "/ntlns", registerForDefaults = T, type = "panel", name = "N'Tak' Loot'n'Steal", displayName = "N'|c887788Tak'|r Loot'n'Steal...", version = "1.8.10", author = "N'|c887788Tak'|r", registerForRefresh = T, website = "https://www.esoui.com/portal.p..."} </Locals>|r
user:/AddOns/wykkydsEnhancedChat/e/LAM/controls/checkbox.lua:65: in function 'UpdateValue'
|caaaaaa<Locals> control = ud, forceDefault = F, value = T </Locals>|r
user:/AddOns/wykkydsEnhancedChat/e/LAM/controls/checkbox.lua:111: in function '(anonymous)'
|caaaaaa<Locals> control = ud </Locals>|r
I suspect pChat and/or LibMainMenu may be throwing this error because after uninstalling and reinstalling pChat and LMM (and only pChat and LMM) the error is only reproduced when pChat/LMM are installed - even though neither pChat or LMM are appearing in the error message. WykkydsEnhancedChat and LibAddonMenu 2.0 work fine UNLESS pChat/LMM are present. N'Tak is just the addon I used as the example to reproduce the error - I get the same error if I do the same in any other addon (PerfectPixel for example). The other issue is that when pChat/LMM are installed, several addons disappear completely from the addon settings menu - specifically Wykkyd's Enhanced Chat, Wykky's Toolbar, and Idle Animations. I originally suspected LibAddonMenu 2.0 was the problem but even after uninstalling that, reinstalling, etc. I still got these errors, until I uninstalled pChat. Then everything worked as normal. However, LibAddonMenu is what's being mentioned in the error itself.

I am using the latest versions of both pChat and LibAddonMenu2.0 downloaded from ESOUI (not minion), and am using LMM v8 (the version linked in LMM comment section). I don't have any of the addons pChat has listed as incompatible installed.

The latest testing was done 2020/10/20 at about 5:30pm.

How to reproduce: My best guess is to have Wykkyd's Enhanced Chat and Toolbar, IdleAnimations, LibAddonMenu2.0, pChat, and LMM installed since those seems to be the key addons affected. Go into the addons settings, and you should notice the pChat appears, but the wykkyd and IdleAnimations addons do not show up in the list. If you have another addon available (any should work), click on any option, like an on/off toggle, and that should throw the error.
Report comment to moderator  
Reply With Quote
Unread 10/20/20, 04:47 PM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1579
File comments: 1132
Uploads: 41
Originally Posted by jennyloggins
user:/AddOns/wykkydsEnhancedChat/e/LAM/LibAddonMenu-2.0.lua
That here is your problem. You have installed the way outdated addon wykkydsEnhancedChat which contains an ancient version of LAM which is no longer working with the current game version. In order to get it to work you'd have to manually delete the LAM folder from it. But considering that ZOS has made some major changes to chat not too long ago, I wouldn't expect the addon to still work correctly.
Report comment to moderator  
Reply With Quote
Unread 10/20/20, 05:09 PM  
jennyloggins

Forum posts: 0
File comments: 13
Uploads: 0
Final Edit: You can totally ignore all below, I did some digging around Wykkyd's comment section and it was indeed exactly what you said, and someone uploaded a fix to the issue, so ALL IS WELL. Sorry for the novel lol, but thank you for pointing me in the right direction!

----

Originally Posted by sirinsidiator
Originally Posted by jennyloggins
user:/AddOns/wykkydsEnhancedChat/e/LAM/LibAddonMenu-2.0.lua
That here is your problem. You have installed the way outdated addon wykkydsEnhancedChat which contains an ancient version of LAM which is no longer working with the current game version. In order to get it to work you'd have to manually delete the LAM folder from it. But considering that ZOS has made some major changes to chat not too long ago, I wouldn't expect the addon to still work correctly.
So, I had that thought too based on the earlier messages in the thread, where I said deleting the LAM folders directly from the addons worked, but that seemed to only work until I reinstalled pChat (and now, actually, having installed TTC is creating the same error). Which, fine, I can delete the outdated wykkyd addons, but do you know why they DO work until I install pChat and TTC? Also, after deleting wykkyd's, the other addon affected (IdleAnimations) gives a new error related to LAM, even though IdleAnimations doesn't even depend on LAM:

Error 1 (on game load):
Code:
user:/AddOns/IdleAnimations/IdleAnimationsSettings.lua:7: Cannot find a library instance of "LibAddonMenu-2.0".
stack traceback:
user:/AddOns/LibFeedback/libs/LibStub.lua:29: in function 'LibStub:GetLibrary'
|caaaaaa<Locals> self = [table:1]{SILENT = T, minor = 4}, major = "LibAddonMenu-2.0" </Locals>|r
user:/AddOns/IdleAnimations/IdleAnimationsSettings.lua:7: in function '(main chunk)'
Error 2 (after dismissing Error 1):
Code:
user:/AddOns/IdleAnimations/IdleAnimations.lua:448: function expected instead of nil
stack traceback:
user:/AddOns/IdleAnimations/IdleAnimations.lua:448: in function 'IA.OnAddOnLoaded'
|caaaaaa<Locals> event = 65536, addonName = "IdleAnimations", default = [table:1]{IdleProfile = "Normal", Enabled = T, AnimPause = 0, AnimTime = 30000, IdleTime = 25000}, defaults = [table:2]{noCameraSpin = T, AvARankUp = T, BankBought = T, PledgeMaraResult = T, PledgeMaraOffer = T, LoreBook = T, LevelUp = T, Avenge = T, LoreBookCollection = T, BagBought = T, ChampionPoint = T} </Locals>|r
The only reason I'm asking about these issues here is because they are all referencing LAM in some way, even though like I said, Idle Animations doesn't even list LAM as a dependency. But if I should be asking the individual addons' devs instead of here, I can do that too, just trying to get to the root of the problem

EDIT: also forgot to mention, all of these were working together perfectly fine until Friday, when I uninstalled some random libraries that were no longer being used by anything (from addons that I hadn't kept) and then all of this happened. But prior to that, everything was perfectly functional.
Last edited by jennyloggins : 10/20/20 at 09:06 PM.
Report comment to moderator  
Reply With Quote
Unread 11/04/20, 09:47 AM  
Sylvermoon

Forum posts: 5
File comments: 33
Uploads: 0
Out of date after Markarth patch

I did try updating the API version to 100033 in the LibAddonMenu-2.0.txt file, but it still shows as an out of date addon. Is there something else I could be missing, maybe another place that needs the API version updated?

I also tried downloading the zip from GitHub, and installed that instead of using Minion, but it's still showing out of date, even after I made sure to update the API version again in the .txt file.

I realize it works fine with "Allow out of date addons" checked, but I'm a bit OCD about that, especially when all my other addons are fine....
Report comment to moderator  
Reply With Quote
Unread 11/04/20, 07:47 PM  
Ciannicay

Forum posts: 4
File comments: 49
Uploads: 0
NIL value error?

Hi, I encountered this error while trying to do a farmrun using Harvestmap:

user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:211: attempt to index a nil value
stack traceback:
user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:211: in function 'GetTopPanel'
user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/panel.lua:27: in function 'RefreshPanel'
EsoUI/Libraries/Utility/ZO_CallbackObject.lua:116: in function 'ZO_CallbackObject:FireCallbacks'
user:/AddOns/HarvestMap/Modules/HarvestMap/Options/LAMPanel.lua:519: in function 'setFunc'
user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/checkbox.lua:64: in function 'UpdateValue'
user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/checkbox.lua:112: in function '(anonymous)'

Could you please check whats up?

Kind regards
Ciannicay
Last edited by Ciannicay : 11/04/20 at 07:47 PM.
Report comment to moderator  
Reply With Quote
Unread 11/05/20, 10:19 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1579
File comments: 1132
Uploads: 41
Re: NIL value error?

Originally Posted by Ciannicay
Hi, I encountered this error while trying to do a farmrun using Harvestmap:

user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:211: attempt to index a nil value
stack traceback:
user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:211: in function 'GetTopPanel'
user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/panel.lua:27: in function 'RefreshPanel'
EsoUI/Libraries/Utility/ZO_CallbackObject.lua:116: in function 'ZO_CallbackObject:FireCallbacks'
user:/AddOns/HarvestMap/Modules/HarvestMap/Options/LAMPanel.lua:519: in function 'setFunc'
user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/checkbox.lua:64: in function 'UpdateValue'
user:/AddOns/LibAddonMenu-2.0/LibAddonMenu-2.0/controls/checkbox.lua:112: in function '(anonymous)'

Could you please check whats up?

Kind regards
Ciannicay
Hey. The error message doesn't line up with the code of HarvestMap. Please make sure you have the latest version of it installed and report to the comment section of HarvestMap if the problem persists. The issue has nothing to do with LAM itself, but with how HarvestMap is using it.
Report comment to moderator  
Reply With Quote
Unread 11/06/20, 08:40 AM  
Ciannicay

Forum posts: 4
File comments: 49
Uploads: 0
Re: Re: NIL value error?

Originally Posted by sirinsidiator
The issue has nothing to do with LAM itself, but with how HarvestMap is using it.
Thanks sirinsidiator for checking it out.
I will nag them if the error persists tonite.

kind regards
Ciannicay
Report comment to moderator  
Reply With Quote
Unread 11/08/20, 04:43 PM  
Salsomir

Forum posts: 0
File comments: 1
Uploads: 0
A lot of my addons are saying I need a newer version of this. Is there something I need to do on my end or just wait for the new update? <3
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: