These are chat archives for arenanet/api-cdi

6th
Jul 2016
Edgar Doiron
@Coffee4cr
Jul 06 2016 12:41
@lye for adventure leaderboard, will we get to pull our own score plus nearby friends, like inside the game?
Shii Kayano
@BryghtShadow
Jul 06 2016 16:23
Uh... wiki 404...
@Coffee4cr yeah, that's the plan
/v2/account/leaderboard/:id will return your account's position and surrounding bits (like in-game) and /v2/leaderboard/:id/leaders will return a paginated list of (usually) 1000 top entries
the weird bit for /v2/leaderboards is that they're not bulk-expanded -- there's no list of leaderboards -- instead they'll be referenced from /v2/adventures and /v2/pvp/seasons and such
or wherever else we put leaderboards -- there's a single generic system that handles them all these days
ChieftainAlex
@ChieftainAlex
Jul 06 2016 17:14
@BryghtShadow yep.. "We are currently upgrading the wiki software and are expecting the maintenance to be over at around 11:00 AM Pacific Time (7:00 PM UTC, 8:00 PM in France and Germany). To be updated, please check our Twitter. We are sorry about the inconvenience and thank you for your patience. "
somehow they messed up and the update message only displays on GWW.
ChieftainAlex
@ChieftainAlex
Jul 06 2016 17:19
message now displaying.
Shii Kayano
@BryghtShadow
Jul 06 2016 17:19
@ChieftainAlex Ah, ok. thanks :)
ChieftainAlex
@ChieftainAlex
Jul 06 2016 18:37
lye, about these area sectors, are these actually the ones used ingame?
Christian
@zeeZ
Jul 06 2016 18:42
you think he just drew them on in paint and then converted them to polylines? ^^
ChieftainAlex
@ChieftainAlex
Jul 06 2016 18:42
some of these are so rough it's amazing
looking at you crucible of eternity
darthmaim
@darthmaim
Jul 06 2016 18:42
lye is a paint master
Christian
@zeeZ
Jul 06 2016 18:42
there's so much overlap that that might fix things
ChieftainAlex
@ChieftainAlex
Jul 06 2016 18:43
I was kind of wondering if the script used to sample from the ingame map had just messed up a few times
Christian
@zeeZ
Jul 06 2016 18:45
the dragonwatch one is fairly accurate, I checked that one
someone should make some kind of overlay that projects the regions on the ground :P
ChieftainAlex
@ChieftainAlex
Jul 06 2016 18:46
gwtaco wasn't it
I guess at some point they paid an intern to draw the area boundaries on the maps + gave them a bunch of names and said: go draw shapes on these maps
Christian
@zeeZ
Jul 06 2016 18:48
I wonder how overlap is handled actually. As soon as you cross a border into a new region? Only when you leave your current region? Some kind of layered/priority ordering?
ChieftainAlex
@ChieftainAlex
Jul 06 2016 18:49
back when i svg'd the tangled depths map there was a big overlap north of the leyline confluence wp
went ingame + sure enough, approaching from one side you end up with one area, and from the other side the other area
(even standing at the same point on the ground)
Christian
@zeeZ
Jul 06 2016 18:51
so option 2
looked smiley's wiki map thing for overlaps, just realized there are borders for the hearts too
ChieftainAlex
@ChieftainAlex
Jul 06 2016 18:53
yeah
gets a bit hectic with everything on it though
Christian
@zeeZ
Jul 06 2016 18:54
there's some overlap in queensdale at the southern bit of the monastery
I actually have no idea where the sector lines come from
I have a feeling they're drawn by hand at some level
For the "which sector are you in" my guess is that it'd only check for a new sector when you've fully left the current sector
So the overlap prevents it from switching too quickly
But that may or may not be intentional
windwarrior
@windwarrior
Jul 06 2016 20:11
I guess they are also not communicated ingame other than losing your heart participation
ChieftainAlex
@ChieftainAlex
Jul 06 2016 20:12
as in losing the heart icon from the ui, yes.
iirc the heart regions are distinct from sectors
there should be a .bounds field in the map.tasks array objects now
windwarrior
@windwarrior
Jul 06 2016 20:13
oh then they are not communicated at all
they are for uhh sector unlocks?
and it might show the current sector name on the minimap, i don't recall
windwarrior
@windwarrior
Jul 06 2016 20:13
ohh right, for the Explorer achievies
ChieftainAlex
@ChieftainAlex
Jul 06 2016 20:31
I've just updated which map widget was used for the dungeon area pages on the wiki. For most of them the widget centers in on the given location, example with Citadel of Flame, however Caudecus's Manor seems to be off center. Bug or different floor extents?
(that's map ids 75+76)
ChieftainAlex
@ChieftainAlex
Jul 06 2016 20:55
okay more useful, with the orange box being the zone boundary for the dungeon. Looks a bit too big no? https://jsfiddle.net/hp9s6072/2/
Christian
@zeeZ
Jul 06 2016 21:05
even 1 is enough
darthmaim
@darthmaim
Jul 06 2016 21:08

https://api.guildwars2.com/v2/items/78238

{
    "name": "5 Gold",
    "description": "Contains 10 gold.",

:confused:

Christian
@zeeZ
Jul 06 2016 21:10
caudecus's map is off center because of the sekrit face room
the spinny thing that never got implemented
@darthmaim I have no explanation
I'll point that out to someone though
smiley
@codemasher
Jul 06 2016 21:15
@windwarrior well, the changes are at least documented and implemented ;D #335
Christian
@zeeZ
Jul 06 2016 21:15
that's a targeted troll for people using the API
so clearly we can also troll people with the API directly :P
ChieftainAlex
@ChieftainAlex
Jul 06 2016 21:19
@lye what's this "proxy wiki semantic search" stuff?
the wiki's got an API for doing semantic searches
there's already structured data for mystic forge recipes
ChieftainAlex
@ChieftainAlex
Jul 06 2016 21:19
yep..
so the API endpoint can theoretically just pull all that data, cache it, then serve it
it's kind of silly but people keep asking about a mystic forge endpoint so :/
ChieftainAlex
@ChieftainAlex
Jul 06 2016 21:20
given that the forge recipe id on the wiki is made up... how would you query for it?
just recipes without ids?
probably
haven't spent much time thinking about it
ChieftainAlex
@ChieftainAlex
Jul 06 2016 21:21
is there really not a recipe id for MF stuff?
there is, but no sane way to map from ingredients to the recipe id
David Reeß
@queicherius
Jul 06 2016 21:23
I like the idea with the wiki, since the validity of these recipes get checked more regularly than the custom list. Then again the custom list also includes things like the precursor collections (with a mix of "from achievements" and "manual work", since else stuff is duplicated). So I am not sure you are ever gonna get a clean list without manual work...
ChieftainAlex
@ChieftainAlex
Jul 06 2016 21:24
currently on the wiki we generate a garbage id for each mystic forge item, e.g. https://wiki.guildwars2.com/wiki/Special:Browse/Abyssal-20Scepter-23recipe1 has "Has mystic forge id=3,105,801" <item id><recipe number on page>. I hate that.
David Reeß
@queicherius
Jul 06 2016 21:25
A official list would be awesome tho, then I could blame the API for 80%+ of the "bug"reports i get. :P
ChieftainAlex
@ChieftainAlex
Jul 06 2016 21:25
if we knew which recipes such as "precursor recipes" were missing, we could add those as subobjects on some back list page
  • not have it show up
btw lye, the results out of the smw api are usually ugly. :<
David Reeß
@queicherius
Jul 06 2016 21:28
Well, for example the Chest of Concoctions currently has Filtered Honey listed as a "component" (requirement in the achievement API), but that's duplicated, because it's already included in another part of the achievement (the Vial of Healing Breath).
That's the edgecases I mean, not necessarily simple mystic forge recipes.
(And these edgecases are everywhere, mainly in the precursor collection stuff.)
ChieftainAlex
@ChieftainAlex
Jul 06 2016 21:32
currently the wiki doesn't store the output item id in the same subobject as the recipe ingredients, i guess if i patch that in it would be easier to pull the data out externally.
Eh it'd be best effort
@darthmaim tempted to just blacklist that item
Looked into it a bit and ... only one has ever been obtained?
(it's blacklisted; should be removed from the list within the hour)
ChieftainAlex
@ChieftainAlex
Jul 06 2016 21:53
what parameters would you need from the smw mystic forge items on the wiki? example item - the wiki uses item names instead of ids for the ingredients, which is different to the api.
probably just the input/output item ids
in an ideal world at least
tempted to just have a local script do a best-effort then fix it up manually locally
but if I'm going to do that might as well put the item ids in the wiki data directly
Archomeda
@Archomeda
Jul 06 2016 22:31
@lye, i tried to actually use the chat link of that 5/10g item, but even the chatlink didn't work
reasons
ChieftainAlex
@ChieftainAlex
Jul 06 2016 22:36
that reminds me, why are non-working chatlinks given in the continents api, e.g. for area ids?
I blame @tivac
I think it's because I looked at how chatlinks worked internally
and there's an area-type chatlink technically, it just maybe isn't implemented
Pat Cavit
@tivac
Jul 06 2016 22:41
built a JS version and sprinkled it throughout VERY liberally
and it probably only works for a subset of things
ChieftainAlex
@ChieftainAlex
Jul 06 2016 22:43
I seem to recall the chatlink generated for the area code was "the same" as that of another poi
I'll see if i can find an example
Pat Cavit
@tivac
Jul 06 2016 22:44
programming is hard
ChieftainAlex
@ChieftainAlex
Jul 06 2016 22:46
Sorrow's Embrace (area 63). Sector id 181, sector name Volcanium pit, chatlink [&BLUAAAA=].
... which looks the same as Highpass Haven Waypoint, [&BLUAAAA=].
(sector 181, waypoint 181)
windwarrior
@windwarrior
Jul 06 2016 23:50
well, if it were a sign written in css, construction would be out of the shape right ;)
smiley
@codemasher
Jul 06 2016 23:52
CSS IS AWESOME