ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Achievement category_id returning nil for ok achievements (https://www.esoui.com/forums/showthread.php?t=8064)

hisdad 09/20/18 05:55 PM

Achievement category_id returning nil for ok achievements
 
I run through and get all achievements when a new update appears.
its dead easy, but I'm seeing known good achievements now have nil category_id.
Example [1443] =
{
["description"] = "Complete \"The Wrath of Sithis\" Dark Brotherhood quest in the Gold Coast.",
["Category"] = "NIL",
["points"] = 10,
["name"] = "Wrath of Sithis",
},
Thats a good quest.
--
It /should/ return info like this
[1444] =
{
["Category"] = "Dark Brotherhood",
["description"] = "Complete the \"Filling the Void\" Dark Brotherhood quest in the Gold Coast.",
["name"] = "Silencer",
["points"] = 10,
["Category_ID"] = 18,
},
--
This seems to have occurred with update 19 and 20.

The code snippet is

for i=1,3000 do
category_name = "NIL"
category_id = "NONE"
category_id = GetCategoryInfoFromAchievementId(i)
if category_id ~= nil then
category_name =GetAchievementCategoryInfo(category_id)
end
name,description,points,_,completed,adate,atime= GetAchievementInfo(i)


DUMPA.vars[lang][i]={
["Category_ID"] = category_id,
["Category"] = category_name,
["points"] = points,
["name"] = zo_strformat("<<C:1>>",name),
["description"] = zo_strformat("<<C:1>>",description)
}
end
===
So GetCategoryInfoFromAchievementId(i)
is failing erratically.

--
Does anyone have any insight?
-Dad


All times are GMT -6. The time now is 04:13 PM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2014 - 2019 MMOUI