View Single Post
04/24/14, 08:25 AM   #4
Iyanga
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 183
Playing around it seems to work like this:

All achievements have an achievementId.

Only the actually achieved achievement has a category though!

Using GetPreviousAchievementInLine() and GetNextAchievementInLine() return correctly the various ids of the progression line for me, you can traverse from 66 to 64 and from 64 to 68 and at the end of the line they both return correctly 0. If this doesn't work for you, you seem to be doing something wrong in your code.

So if you are currently Node Harvester III you can do:


0 returned for GetPreviousAchievementInLine(64) -> cannot get Category
id 64 returned for GetPreviousAchievementInLine(65) -> cannot get Category
id 65 returned for GetPreviousAchievementInLine(66) -> cannot get Category
id 66 Node Harvester III -> can get CategoryInfo()
id 67 returned for GetNextAchievementInLine(66) -> cannot get Category
id 68 returned for GetNextAchievementInLine(67) -> cannot get Category
0 returned for GetNextAchievementInLine(68) -> cannot get Category


If the achievement has no progression line, in example id 18 (the first general achievement), I get correctly 0 for GetNext and GetPrev.

So right now I assume you are doing something wrong in your code.

Except that you can't get the Category from an inactive achievement progression step, I don't see any strange behavior in the API.
  Reply With Quote