Forums » Bugs

API: All GetAccomplishment... functions are broken

Aug 03, 2022 Snib link
All of these functions from vo_accominfo.lua are broken:

GetAccomplishmentBigSize
GetAccomplishmentBigTexture
GetAccomplishmentBigUV
GetAccomplishmentCategory
GetAccomplishmentDescription
GetAccomplishmentLevels
GetAccomplishmentName
GetAccomplishmentSize
GetAccomplishmentTexture
GetAccomplishmentTitle
GetAccomplishmentType
GetAccomplishmentTypeName
GetAccomplishmentUV

(they all expect a dictionary when it is an array)
Aug 03, 2022 draugath link
They all work fine as far as I can tell.

RegisterUserCommand("accomplishment", function()
console_print("Type",GetAccomplishmentType(1, GetCharacterID()))
local atype, level = GetAccomplishmentType(1, GetCharacterID())
console_print("Name", GetAccomplishmentName(atype, level))
console_print("Category",GetAccomplishmentCategory(atype, level))
console_print("Description",GetAccomplishmentDescription(atype, level))
console_print("Levels", GetAccomplishmentLevels(atype, level))
console_print("Title", GetAccomplishmentTitle(atype, level))
console_print("TypeName", GetAccomplishmentTypeName(atype, level))
console_print("Texture", GetAccomplishmentTexture(atype, level))
console_print("Size", GetAccomplishmentSize(atype, level))
console_print("UV", GetAccomplishmentUV(atype, level))
console_print("BigTexture", GetAccomplishmentBigTexture(atype, level))
console_print("BigSize", GetAccomplishmentBigSize(atype, level))
console_print("BigUV", GetAccomplishmentBigUV(atype, level))
end)
----------------------------------------
Type 17 1
Name Hive Hunter I
Category combat
Description In recognition of those brave souls who willingly engage the Hive in combat on behalf of their Nation, their factions and their people. There are ten variations of the award, this individual has <current> of <nextvalue> kills required to reach the next award level.
Levels 0 0
Title Hive Hunter I (10 kills)
TypeName hivehunter1
Texture images/medals/ribbons.png
Size 96x32
UV 0.375000 0.000000 0.750000 0.125000
BigTexture
BigSize
BigUV
Aug 03, 2022 Snib link
Ugh, my bad, not sure why I had the type parameter wrong in my head. Sorry for the noise. :/