Thread Tools Display Modes
12-06-22, 09:04 AM   #1
AeroMaxxD
An Aku'mai Servant
Join Date: Dec 2022
Posts: 33
Adding categories to the achievement frame

I can't seem to figure out how to use this function.

addCategory()

From looking at another addon it seems to take 4 parameters, but can I not get it to work using /script.

Below is everything I have tried, but they all give the same error "attempt to call global 'addCategory' a nil value".

Code:
/script addCategory(false, "Rewards", nil, nil)
/script addCategory(false, "Rewards", 1, 1)
/script addCategory(false, "Rewards", 1, nil)
/script addCategory(false, "Rewards", nil, 1)
/script addCategory(19000, "Rewards", 1, 1)
I can't find any mention of this function anywhere either sadly.

I've checked the following places, maybe I am just not looking in the right place?

https://www.townlong-yak.com/framexml/live
https://github.com/Gethe/wow-ui-source
https://wowpedia.fandom.com/wiki/Vie...interface_code
https://wowpedia.fandom.com/wiki/World_of_Warcraft_API
https://wowwiki-archive.fandom.com/w...f_Warcraft_API
https://www.wowhead.com/guide/compre...ng-in-lua-5338
  Reply With Quote
12-06-22, 10:37 AM   #2
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
The Lua error "attempt to call global 'OBJECT' a nil value" means that OBJECT does not exist. "nil" means nothing in a literal sense. There is no addCategory function and the achievement API does not have provisions to allow custom categories. You'll have to write an addon that can do so or find one that provides the functionality you're looking for. I suggest the addon Overachiever, it has the ability to "watch" achievements in a separate tab in the achievement UI as if they were visually in a separate category.
  Reply With Quote
12-06-22, 11:35 AM   #3
AeroMaxxD
An Aku'mai Servant
Join Date: Dec 2022
Posts: 33
Originally Posted by Kanegasi View Post
There is no addCategory function and the achievement API does not have provisions to allow custom categories.
Oh, it would have been really helpful if the error messages were a lot more helpful/informative. As in it could have just said that the function doesn't exist.

Originally Posted by Kanegasi View Post
I suggest the addon Overachiever, it has the ability to "watch" achievements in a separate tab in the achievement UI as if they were visually in a separate category.
Yeah that addon is pretty much broken.

I was wanting to try and fix this addon.

https://www.curseforge.com/wow/addons/achieveit

The author doesn't have time to fix it but did say someone could fork it, but also mentioned the addon would potentially need a full rewrite due to the changes.

I will have a think, I guess I could potentially attempt to fix the problems with the OverAchiever addon, I'll see if the original author has posted anything in the comments recently, and see if I can get in touch with them.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Adding categories to the achievement frame


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