These are chat archives for arenanet/api-cdi

22nd
May 2018
Daniel Snider
@dsnider-anet
May 22 2018 00:26
API Updates:
  • v2/nodes has been updated to include previously missing nodes. Note: garden plot is still missing
  • v2/itemstats now displays multiplier and base bonus value per attribute Note: this change is schema breaking
Archomeda
@Archomeda
May 22 2018 01:25
@ChieftainAlex i actually finally created https://wiki.guildwars2.com/wiki/Template:API_nav, it might need some changes to better suit the API pages, but this is a start (also a good opportunity to redirect some of the subendpoints maybe)
Quaggan BooOOoot
@QuagganBooOOoot
May 22 2018 09:30
New discussion in API Development:

Item stats attributes is now a mixture of old and new types and styles
by bunty.4610 in API Development

This is a mess to parse.

{
"id": 69,
"name": "",
"attributes": {
"Power": 3.24,
"Toughness": 2.31,
"Vitality": 2.31
}

smiley
@codemasher
May 22 2018 12:54
oh wow, the gw2 forum seems to have a crazy bug
but it didn't log me out however...
@dsnider-anet @apoch
Mike Lewis
@apoch
May 22 2018 16:06
@smiley neither of us work on the forum software; please report forum issues in the bug forum - https://en-forum.guildwars2.com/categories/bugs%3A-game-forum-website
smiley
@codemasher
May 22 2018 16:10
@apoch i would - if i could :D
could you maybe forward this info to the responsible people? :D
David Reeß
@queicherius
May 22 2018 16:52
@apoch @dsnider-anet API keys are throwing ErrInternal, seems to happen for old API keys and newly created ones.
Daniel Snider
@dsnider-anet
May 22 2018 17:06
@queicherius What timezone are datetimes in?
Mike Lewis
@apoch
May 22 2018 17:07
@queicherius can you provide more specifics? I don't see a current source of errors that corresponds to this
David Reeß
@queicherius
May 22 2018 17:41
Oh didnt see these. Errors stopped now. Errors were just ErrInternal when calling /v2/account and timezone was BST
Mike Lewis
@apoch
May 22 2018 18:07
I suspect this is just the cache invalidation bug that happens around new game releases - #623 is a cousin issue
ChieftainAlex
@ChieftainAlex
May 22 2018 22:34

Can someone who has had a glance at the new output of itemstats explain "value" + "multiplier" and what exactly we can do with them?

It looks a bit to me like "multiplier" gives the ratio of each stat to each other, and usually sums to somewhere between 0.85 and 1.15

"value" looks a bit like some kind of scaled prefix value in the range 18-32 for 3 attribute prefixes, 13-13 for celestial items, or 12-25 for 4 attribute prefixes

not sure how the current output is supposed to be used other than knowing which is a minor/major/quad/triple/celestial prefix
Daniel Snider
@dsnider-anet
May 22 2018 22:48
Effectively, each item has a single generated number based on level/item type/handedness, etc. That number is then multiplied across those "multiplier" values you see in the response. The "value" is added on top of that, so the formula to compute a stat for an item is hidden_item_number * multiplier + value where multiplier and value are from the itemstat response.
hidden_item_number isn't exposed anywhere, but I'd like to do so in v2/items/:id
ChieftainAlex
@ChieftainAlex
May 22 2018 22:49
oh interesting
ChieftainAlex
@ChieftainAlex
May 22 2018 23:05
once its implemented i suppose I can replace the lookup tables on the wiki for every value/rarity/item type combination
Daniel Snider
@dsnider-anet
May 22 2018 23:31
Bonetti's Rapier has a hidden value of 341.44
It's infix upgrade is https://api.guildwars2.com/v2/itemstats/161
so Precision will be round(341.44 * 0.25 + 0) == 85
ChieftainAlex
@ChieftainAlex
May 22 2018 23:42
you've been very helpful, I've used your text to update the documentation on https://wiki.guildwars2.com/wiki/API:2/itemstats#References. cheers
Daniel Snider
@dsnider-anet
May 22 2018 23:45
thanks! :+1: