These are chat archives for arenanet/api-cdi

3rd
Mar 2017
i just cheated through it
but it worked fine for me :/
reddit still trolling me -- first the escort/kc false misordering and now this
doing the live deploy that I put off yesterday
  • /v2/races: expose 'name' when backend support lands.
  • /v2/raids: bastion of the penitent is its own raid.
  • /v2/pvp/seasons: remove deprecated region shim.
boring stuff, was going to do it earlier but I forgot and then the raid/dungeons bits made me want to delay just in case I needed to squeeze another fix in :heart:
Michael Dougall
@madou
Mar 03 2017 02:26
neat
David Reeß
@queicherius
Mar 03 2017 02:39
@lye Just wanted to let you know that I can confirm that the dungeon thing is working
I queried a few thousand keys and found some that do dungeons
Michael Dougall
@madou
Mar 03 2017 02:48
anyone want in on gw2 item/skill/specialisation embeds? made a system for qtfy, would love to get more people using it
should probably make a embed intro page on the armory later..
windwarrior
@windwarrior
Mar 03 2017 10:05
I was thinking about making such a thing
host it on GH pages
let people have simple iframe links
Michael Dougall
@madou
Mar 03 2017 11:12
I made something similar to how social embeds work (embed a Twitter post for example). The tooltips not being able to extend past IFrames killed it for me :P
Darrian
@rikkuness
Mar 03 2017 13:13
I will have a look @madou I've just started having a playing making a generic guild pages thing, place for guilds to make a site where they can manage calendars and link to builds and things like that
on that note, going to ask a question that has more than likely been asked a bunch of times before, what the deal with the guild authenticated endpoints and role based access controls? Logically a member of a guild should be able to use their API key to list members and do things they can do in game based on the permissions they have set against the role
the the moment it seems like if you're not using the API key of a guild leader you can't see much
darthmaim
@darthmaim
Mar 03 2017 13:16
The reasoning behind that is/was, that some other members might not want to "publicly" share that they are members of a guild
They have no control over sites like gw2efficiency showing their account
Darrian
@rikkuness
Mar 03 2017 13:17
I get not making it public info of course, but right now in game I can see who is in my guild, but via the API I can't with my own key
darthmaim
@darthmaim
Mar 03 2017 13:18
yeah, you can see it, but I can't
but if you shared your API key with me I could see all members and they don't know about that
(I'm totally with you to give non leaders more api permissions btw, just stating the reasons of the current model)
Darrian
@rikkuness
Mar 03 2017 13:20
so the issue is attribution? I mean it's no huge shame, I was kinda planning making the site so the guild leader could choose what to share and then the server makes API requests on your behalf and returns the information the leader ha willingly set as sharable with members
darthmaim
@darthmaim
Mar 03 2017 13:20
I think there was a plan on adding a additional in game permission you can assign ranks, so that their API keys would be allowed to access all the member/... info
Darrian
@rikkuness
Mar 03 2017 13:21
ahh interesting. I don't mind doing it the way I was going to, it just means I'm proxying a lot of API calls that I could offload to the client
the dude that set up our current guild site hardcoded our guild leaders API key in the client side so anyone can grab it, and that pisses me off haha
darthmaim
@darthmaim
Mar 03 2017 13:23
yeah :(
Darrian
@rikkuness
Mar 03 2017 13:24
so I was like hey I can make this a generic place where other guilds can create a homepage and share info
darthmaim
@darthmaim
Mar 03 2017 13:25
:+1:
I started something like that too
Darrian
@rikkuness
Mar 03 2017 13:25
idk how other guilds operate but we have like a calendar of events, role specific builds, instructional videos and videos of previous raids and things, a place to share that seemed useful to us
darthmaim
@darthmaim
Mar 03 2017 13:25
but time...
Darrian
@rikkuness
Mar 03 2017 13:25
I'll probably make it an open thing, y'all are welcome to contribute if you find time/motivation to :)
darthmaim
@darthmaim
Mar 03 2017 13:26
well, first of all I want to finish the build editor
Darrian
@rikkuness
Mar 03 2017 13:26
I can't imagine I have the time either but I'd rather get something up there even for our guild at least to save having the hard coded client side thing
if that's an embeddable thing I'll super be interested in looking at it for this thing too
darthmaim
@darthmaim
Mar 03 2017 13:27
Maybe we will add something to embed the builds, but for now its only planned to link to them
You probably want to embed only parts of it (specialization/skill/gear/...) and not all of that at once?
Darrian
@rikkuness
Mar 03 2017 13:30
yeah for sure, I don't mind linking either, I think our guild leader has a bunch of builds on some build site already, I don't recall the name
darthmaim
@darthmaim
Mar 03 2017 13:31
we already got the best branding for our build editor figured out
yeah?
darthmaim
@darthmaim
Mar 03 2017 13:31
the one site everyone knows about, gw2efficiency :P
Darrian
@rikkuness
Mar 03 2017 13:32
ofc
darthmaim
@darthmaim
Mar 03 2017 13:32
:P
probably as subdomain of gw2efficiency, and https://gw2.be/ as short url
Darrian
@rikkuness
Mar 03 2017 13:33
my guild leader saw my name on the contributors page last night and thought I was some sort of internet celebrity now
darthmaim
@darthmaim
Mar 03 2017 13:33
haha
Darrian
@rikkuness
Mar 03 2017 13:41
ahh thanks for the invite! Was dreading seeing PHP in there but it's all beautiful nodejs
darthmaim
@darthmaim
Mar 03 2017 13:41
:D
Darqam
@Darqam
Mar 03 2017 16:09
@madou I'd like to be able to at least take a look. I'm probably not decent enough to actually help, but I'd enjoy having a look at something that I should understand
Darqam
@Darqam
Mar 03 2017 17:51

@Lye, so I'm looking at your docs for /v2/dungeons and the API, and the structure doesn't quite match. https://github.com/arenanet/api-cdi/blob/a7e2e8dbe597b613a464f1333b13d0296222a893/v2/dungeons.js vs https://api.guildwars2.com/v2/dungeons/caudecus_manor

The api paths variable is an array of objects which contain id: path name, whereas your docs say the paths variable should just be an array with path names/ids.

Will the API be updated to match the docs, or are the docs slightly off?

docs are off
I wrote the docs, decided they were dumb, then didn't update the docs
the main reason is that I want to jam additional localized data in those path objects
(e.g. if I can get the event names and such out)
Darqam
@Darqam
Mar 03 2017 17:53
ah ok, so I'll base myself off API for that instead than. thanks
updated the examples :heart:
Darqam
@Darqam
Mar 03 2017 17:56
<3
So could we say that this week has been the biggest update to dungeons since... what... the past 3 years?
savage
Darqam
@Darqam
Mar 03 2017 17:59
gasp in /v2/raids you called things "events" instead of "encounters"! How could you?
they're eventssssssssssss internalllyyyyyyyyyy
Darqam
@Darqam
Mar 03 2017 18:00
lol
can the type of events only be checkpoint and boss? Or can it be whatever it will be called in the future?
those are the only two currently
if they add something weird it might make more sense to add additional types
Darqam
@Darqam
Mar 03 2017 18:03
ok, I'll keep that in mind, thanks
windwarrior
@windwarrior
Mar 03 2017 18:26
thing
oh no thats the reddit api
my bad
tomorrow breath of the wild, I cannot wait
:fire: may be some API downtime today :fire:
migrating some hardware
Darrian
@rikkuness
Mar 03 2017 18:43
migrating hardware on a Friday, that's a recipe for disaster right there
not sure if they're doing it today, trying to get some more detalis
Werdes
@werdes
Mar 03 2017 19:42

so, EU wvw is one fire again?

"worlds": {
    "red": 2202,
    "green": 2012,
    "blue": 2007
  },

fsp (2007) is red though

fuckkkkkkkkkkkkkkk thank you I totally forgot to update the matchups
one second
new configs going out now
i can't wait until the next release when I can stop bloody hand-maintaining this
Werdes
@werdes
Mar 03 2017 19:45
:heart:
Eearslya Sleiarion
@Eearslya
Mar 03 2017 20:19
#449 "this output shouldn't be possible" famous last words
pretty sure I grepped the code for that identifier and found no paths to the log generation
(in my defense)
windwarrior
@windwarrior
Mar 03 2017 20:38
Clearly stage 1
Also, how annoyed are browsers by iframes with negative margin
Maybe Thats a way to fix tooltips,
I rarely make it past stage 1
windwarrior
@windwarrior
Mar 03 2017 20:41
"that cant happen. Period."
Also I wanted to tag @madou but failed terribly
Archomeda
@Archomeda
Mar 03 2017 21:47
hm... is it valid when i don't even make it to stage 1?
basically, whatever is in the code is not my responsibility
if it sets your :house: on :fire:... not my fault
David Reeß
@queicherius
Mar 03 2017 21:57
So basically a living MIT licence?
windwarrior
@windwarrior
Mar 03 2017 21:59
'I do not have expectations of code, so it is always correct'
Archomeda
@Archomeda
Mar 03 2017 22:00
hmm... that's a nice way to look at it
windwarrior
@windwarrior
Mar 03 2017 22:00
All my functions map from a set of inputs to the set of all possible outputs
including error
let fn = (x) => ({
        1 : 1,
        2 : 4,
        3 : 9,
        4 : 16,
        // continues
    })[x];
windwarrior
@windwarrior
Mar 03 2017 22:02
Yeah, you are not coding for the ariane n+1
What
Why
I don't know
I have post-lunch fatigue
windwarrior
@windwarrior
Mar 03 2017 22:04
Well if map lookup is optimally implemented... It is in the same complexity class (O(1))
But then again, its javascript so probably not
Insomniac Games on their use of web tech
I saw that earlier today

for me the takeaway quote is

Core Team = a bunch of C++ experts
With almost no web experience at this point

They started it 6 years ago (nodejs was v0.4.x at the time)
windwarrior
@windwarrior
Mar 03 2017 22:10
Yeah, they went in with the wrong mindset
So it's not really a surprise to me that they had !!FUN!! with the project
I'm sure they're in for even more !!FUN!! with their C#+Qt implementation
windwarrior
@windwarrior
Mar 03 2017 22:12
C++/Qt
Which seems more up their alley
fair.
Pat Cavit
@tivac
Mar 03 2017 22:22
apparently they were hoping to hire web programmers but none applied
probably because they talked about it at GDC
and there's no web programmers in the games industry, really
gotta go wider yo
Everything changed when the fire nation attacked
Darqam
@Darqam
Mar 03 2017 22:26
^ I like Lye's better
smiley
@codemasher
Mar 03 2017 22:28
(p sure this can also applied to any kind of programming docs)
The goal of this documentation is to comprehensively explain the Node.js API. And then the murders began.
Darqam
@Darqam
Mar 03 2017 22:43
@lye should I make an issue for correcting the order of /v2/account/raid, or will you just do that in its own time?
go ahead and make an issue
i'll certainly forget about it (already did once)
smiley
@codemasher
Mar 03 2017 22:47
go ahead and make an issue - And then the murders began.
Darqam
@Darqam
Mar 03 2017 22:49
. >.>
windwarrior
@windwarrior
Mar 03 2017 23:09
Well a 150k line of code javascript codebase with a twice as big backend doesnt sound too inviting to anyone
windwarrior
@windwarrior
Mar 03 2017 23:15
GDC talks eventually get published no?
Particularly interested in nintendo's
IIRC they're published to the "GDC Vault" which is not freely accessible

http://www.gdcvault.com/inquiry/

The 12-month membership cost is only $495 per person**.

lol

Archomeda
@Archomeda
Mar 03 2017 23:22
only
windwarrior
@windwarrior
Mar 03 2017 23:22
Eh.
Michael Dougall
@madou
Mar 03 2017 23:22
@rikkuness i started making some guild system on the armory hehe, i guess everyone comes to the same conclusions based on the apis available. all comes down to noone having much time tho LOL
windwarrior
@windwarrior
Mar 03 2017 23:22
Well I watched an anet talk freely
About fixing the AI
Michael Dougall
@madou
Mar 03 2017 23:25

@rikkuness @Darqam here's an example test page for the embeds: http://testing-things.s3-website-us-east-1.amazonaws.com/, look at the html for hints.

basically it comes down to 2 steps

1) add divs on your page where you want embeds e.g: <div data-armory-embed="skills" data-armory-ids="5507,5508"></div>
2) add embed script somewhere, e.g: <script async src="https://gw2armory.com/gw2aEmbeds.js"></script>

let me know how you guys go

windwarrior
@windwarrior
Mar 03 2017 23:26
Dueling, death magic and invocation
@madou should put overflow: hidden on those specialization divs; they have scrollbars on firefox :(
that looks really pretty though
windwarrior
@windwarrior
Mar 03 2017 23:28
Well on my phone it allowed me to see everythinf
Which is nice
oh fair
Michael Dougall
@madou
Mar 03 2017 23:48
oh interesting lye, ive never noticed that. ill give them a max width instead
the scroll is intended for mobile tho :) just so they can still be used
windwarrior
@windwarrior
Mar 03 2017 23:58
@madou this was my plan for fixing tooltips when using iframes
so that class negative margin should be on an iframe
but I dont know how fun browsers think negative margins on iframes are