Thread Tools Display Modes
Today, 05:36 AM   #1
Hasenwarrior
AddOn Author - Click to view addons
Join Date: Jun 2020
Posts: 2
AddCustomMenuItem () - Error on PTS U43

Hi everbody,

have any Developer the same Error with the function " AddCustomMenuItem ()" on thr actualy PTS Server?

My Addon run into an Error, if load a Submenu in the Form.
  Reply With Quote
Today, 08:33 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,106
Without telling us the error message how should we be able to tell you if we get the same?
Please provide us more information:

-What do you mean by "in the Form" -> A context menu?
-All other addons disabled? If not do so and try again. If the error is gone try to find out which other addon is causing it
-Which addon is "yours" that uses the library LibCustomMenu and where you use AddCustomMenuItem?
-What to do to get the error message?
-Error message with all details AS TEXT, no screesnhot
(before raising the error: press ESC -> AddOns -> enable checkbox "Complete error message details")
-Source code file where the error is raised (at best attach the complete addon's zip file here, which raises the error, as attachment)
  Reply With Quote
Today, 09:54 AM   #3
Hasenwarrior
AddOn Author - Click to view addons
Join Date: Jun 2020
Posts: 2
I’m such a goofball . I forgot to include LibCustomMenu in my own addon (DsR GuildRoster) and, of course, forgot to load it on the PTS as well.
Your hint about the LIB was enough for me to immediately realize why it wasn’t working anymore.
  Reply With Quote
Today, 10:17 AM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,106
Happens Glad you found the reason quickly

Add to your txt file of your addon:
Code:
## DependsOn: LibCustomMenu>=722
That way your addon won't load at all if the library is missing or older than current version 7.22 (if it's needed as a hard dependency).
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » AddCustomMenuItem () - Error on PTS U43


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