WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Adding categories to the achievement frame (https://www.wowinterface.com/forums/showthread.php?t=59396)

AeroMaxxD 12-06-22 09:04 AM

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

Kanegasi 12-06-22 10:37 AM

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.

AeroMaxxD 12-06-22 11:35 AM

Quote:

Originally Posted by Kanegasi (Post 341756)
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.

Quote:

Originally Posted by Kanegasi (Post 341756)
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.


All times are GMT -6. The time now is 11:07 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI