Thread Tools Display Modes
08-14-06, 03:03 AM   #1
wmrojer
A Deviate Faerie Dragon
 
wmrojer's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 13
Angry FuBar 1.2 plugins and myAddOns

How is it that almost all version 1.2 FuBar plugins generates an error in myAddOns?

It's quite simple to register with myAddOns, and yet almost all get it wrong.

There is ONE required field, name. And it has to match the directory/.toc or the Title in the .toc file.
  Reply With Quote
08-14-06, 04:15 AM   #2
wmrojer
A Deviate Faerie Dragon
 
wmrojer's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 13
I made the following change to myAddOns to make it more forgiving about color information. Posted this on the myAddOns thread also.

--- myAddOnsFrame.lua.org 2006-01-14 17:10:42.000000000 +0100
+++ myAddOnsFrame.lua 2006-08-14 12:07:21.046875000 +0200
@@ -886,16 +886,20 @@
addonHelp.currentPage = 1;
end

+ -- remove any color information from the name
+ local cleanname = string.gsub(string.gsub(addonDetails.name,"%|c%x%x%x%x%x%x%x%x",""),"%|r","")
-- Get the addon
- local addon = myAddOnsAddOns[addonDetails.name];
+ local addon = myAddOnsAddOns[cleanname];

-- Check if the addon name is valid
if (not addon) then
-- Browse the installed addons
for addonIndex = 1, GetNumAddOns(), 1 do
local name, title, notes, enabled, loadable, reason, security = GetAddOnInfo(addonIndex);
+ -- remove any color information before we compare
+ local cleantitle = string.gsub(string.gsub(title,"%|c%x%x%x%x%x%x%x%x",""),"%|r","")
-- Check if there is an addon with this title
- if (title == addonDetails.name) then
+ if ( cleantitle == cleanname ) then
addon = myAddOnsAddOns[name];
break;
end
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » FuBar 1.2 plugins and myAddOns


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