Thread Tools Display Modes
09/20/18, 05:55 PM   #1
hisdad
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 33
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
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Achievement category_id returning nil for ok achievements

Thread Tools
Display Modes

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