Items returning wrong icons

Items returning wrong icons

in API Development

Posted by: Sariel V.7024

Sariel V.7024

For the most part I suspect this is working, but I had an example this morning where the API icon did not match the one used in-game.
Case in point, Glorious Hero’s Pauldrons. API entry:
https://api.guildwars2.com/v2/items/67149
API Icon:
https://render.guildwars2.com/file/79D0152FEF26654D2F5C7B60D6156602325AEAE0/61555.png
Actual icon can be found at:
http://wiki.guildwars2.com/wiki/Glorious_Hero%27s_Pauldrons

Since the API is autopopulated, I’m sure there are others that have gotten out of sync. I use these to update the wiki, so I’d like these to be correct

Items returning wrong icons

in API Development

Posted by: Lawton Campbell

Lawton Campbell

Web Programmer

Next

Whoops, yeah, that’s a bug. Apparently the item has a different icon than it’s default skin, which is unusual. The API code is wrongly making the item’s icon have priority over the skin’s icon — not sure when the fix will land but you can work around it in the meanwhile by pulling the default skin’s icon instead (e.g.,/v2/skins/5605).

Items returning wrong icons

in API Development

Posted by: Lawton Campbell

Previous

Lawton Campbell

Web Programmer

Uhh, hmm. This might not be as simple as I’d assumed — take, for example, Dusk and Naegling which share the same skin — their item icons take precedence over their skin icons (specifically, Naegling’s icon appears to override its skin’s icon). I’m guessing there’s a flag that we’re not checking which toggles the override behavior.

EDIT: eh, nevermind, the icon for Naegling should be the same as Dusks; just an instance where the wiki is returning bad data from the API.

(edited by Lawton Campbell.8517)