Execute this in chat-window:
/script ACHIEVEMENTS:ShowAchievement(1201)
It should show achievement "Illicit Entrepreneur", but it crashes at line 992 of achievements.lua.
As you can see, the id is valid, because the correct category "Justice" is opened.
In-game script:
Code:
...
local categoryIndex, subCategoryIndex, _, idOffset = GetCategoryInfoFromAchievementId(achievementId)
if self:OpenCategory(categoryIndex, subCategoryIndex) then
local parentAchievementIndex = achievementId - idOffset
-- Reset filters if this achievement isn't showing
if not self.achievements[parentAchievementIndex] then
self:ResetFilters()
end
self.achievements[parentAchievementIndex]:Expand() -- line 992
...
It's because the parentAchievementIndex can not be found in the ACHIEVEMENTS:achievements after opening the category. (no filter)
parentAchievementIndex should be 1197, but is 1200. => idOffset should be 4, but is 1.
You can find the achievementId 1201 in ACHIEVEMENTS.achievements as value of key 1197
Lua Code:
/script d(ACHIEVEMENTS.achievements[1197].achievementId)
/script d(ACHIEVEMENTS.achievements[1197].title:GetText())