These are chat archives for arenanet/api-cdi

23rd
Sep 2016
Michael Dougall
@madou
Sep 23 2016 00:25
lolz
@queicherius nice job on the release. i can never seem to stay up to post to reddit at the best time for my stuff :shipit:
Archomeda
@Archomeda
Sep 23 2016 00:35
omg lol... youtube has something new
"youtube heroes"
it's a joke
Michael Dougall
@madou
Sep 23 2016 00:38
you dont like working for free? :fire:
David Reeß
@queicherius
Sep 23 2016 01:43
@madou Thanks! I usually just release "when it's ready", and post on reddit more for information and less for publicity (it doesnt even show anymore).
Aralicia
@Aralicia
Sep 23 2016 08:33
@queicherius My Account value tripled yesterday (from 11k to 35k). I don't mind it, but I wasn't even playing at that time. I'll try to see what changed, but I wanted to let your know right now.
Aralicia
@Aralicia
Sep 23 2016 08:39
Oh. that the gemstore stuff. I guess you're calculating the value based on the current gold-to-gem value.
... I suddenly feels like I've played the game far more than I possibly should have.
Shii Kayano
@BryghtShadow
Sep 23 2016 10:27
@lye @tivac What are the Ember Bay "tasks" called? Task Heart? Task Region?
David Reeß
@queicherius
Sep 23 2016 12:16
@Aralicia Yup, feels like that for me too. Turns out I buy quite a lot of gem shinies. :D
Nabrok
@Nabrok
Sep 23 2016 12:50
@Aralicia @queicherius my account value doubled, but I lost 3 percentile at the same time ... no longer top 10% :(
I still haven't been crawled yet for most of the stats though.
Aralicia
@Aralicia
Sep 23 2016 12:50
That because people like me saw our value tripled or whatever
Edgar Doiron
@Coffee4cr
Sep 23 2016 13:05
i jumped from 13.4k to 23k
Aralicia
@Aralicia
Sep 23 2016 13:11
Very good example. I went from 2k under you to 12k above. I just used the gem store more, I guess.
Nabrok
@Nabrok
Sep 23 2016 13:12
The number 1 for keg brawl rounds only played 2.5k hours ... did they do nothing else?
Aralicia
@Aralicia
Sep 23 2016 13:18
Uh.... Looking at the WvW Rank leaderboard, I guess the max rank is 10k.
Edgar Doiron
@Coffee4cr
Sep 23 2016 15:22
@Archomeda so you're adding wiki lookup, so it shoudl work for skills and such also, but probably won't list it properly right?
so we should try doing !item and !skill like @Aralicia did for /r/gw2's bot
so that way we can format the output properly for it
also quick question, is the wiki info on skill/items updated with the api or manually?
Archomeda
@Archomeda
Sep 23 2016 15:30
That information is updated manually
so using the api for that would be better
Nabrok
@Nabrok
Sep 23 2016 15:38
The way caching in the api wrapper works right now, is it only caches stuff on demand. For example you make an api request for ids 1,2,3 it caches those results for future queries until a build change. If you then request ids 1,2,5 it gets 1 and 2 from the db and makes an api request for 5. So, if you want to do a search by name, it does mean that we have to make sure it caches everything first.
Edgar Doiron
@Coffee4cr
Sep 23 2016 15:39
yeah, and then rebuild that every time tehre's a build change
I'll have to check how redis works
never used it :P
i'm an SQL guy
Nabrok
@Nabrok
Sep 23 2016 15:40
I guess it's not possible to get the skill id from the wiki?
Archomeda
@Archomeda
Sep 23 2016 15:41
Uhm, i think that's possible by using those semantic ask queries or whatever they are called
@codemasher should know more about that i think
Nabrok
@Nabrok
Sep 23 2016 16:02
The api wrapper is something I wrote for another project a while back, I just added most of the other includes I hadn't put in this project yet. This adds a getItem method, there's no getAllItems at the moment, but there's an example of how that would be done in the pvp_seasons file. Skills would also be done the same way.
Aralicia
@Aralicia
Sep 23 2016 16:06
Hi ! for !trait, !skill, !item... I built localy a name-to-id link table. When there is a big change, I manually trigger a command that load the list of all ids from the api and insert in the table the ids with didn't have yet. In addition to that, there's a cron that fetch the names of the entities we don't have the name of, five at a time. That way, I don't carpet bomb the API to get all the names.
Aralicia
@Aralicia
Sep 23 2016 16:08
To be honest, I prefer that to a "getbyname" endpoint in the API, because this allow me to account for some part of typing errors from the users.

@Coffee4cr

:fire: we need skill

wat

Nabrok
@Nabrok
Sep 23 2016 17:31
He means a /v2/character/[name]/skills
That's in /v2/character/:name if the key has the builds permission, IIRC
unless you're talking about unlocked skills which ... may be exposed in a roundabout way (not sure)
Edgar Doiron
@Coffee4cr
Sep 23 2016 17:31
the skills on your bar
oh
Edgar Doiron
@Coffee4cr
Sep 23 2016 17:31
it's already out?
oh
Nabrok
@Nabrok
Sep 23 2016 17:32
for pve/wvw/pvp
I thought it was
Edgar Doiron
@Coffee4cr
Sep 23 2016 17:32
hmm
Nabrok
@Nabrok
Sep 23 2016 17:32
let me check ...
It's only in the main blob I think
I can add the sub-endpoint in
it's friday so I need to do a deploy at 5PM
Edgar Doiron
@Coffee4cr
Sep 23 2016 17:33
oh it is out
Pat Cavit
@tivac
Sep 23 2016 17:33
:man: :gun: :skull:
Edgar Doiron
@Coffee4cr
Sep 23 2016 17:33
wrong side @tivac
Nabrok
@Nabrok
Sep 23 2016 17:33
ok, I see it.
Archomeda
@Archomeda
Sep 23 2016 17:33
:fire:
Edgar Doiron
@Coffee4cr
Sep 23 2016 17:34
skills: {
pve: {
heal: 29535,
utilities: [
30432,
5542,
5734
],
elite: 5666
},
pvp: {
heal: 29535,
utilities: [
30662,
5536,
29948
],
elite: 29968
},
wvw: {
heal: 29535,
utilities: [
30662,
30432,
30047
],
elite: 5534
}
},
so it's all there
well, /v2/skills is pretty moldy right now
Archomeda
@Archomeda
Sep 23 2016 17:34
So we can include it! Hah I'm not crazy then
so racial skills and the starting healing skill won't be in /v2/skills, among other issues
Nabrok
@Nabrok
Sep 23 2016 17:35
How do the ids work on a rev? Just a random legend? I know there's a legends entry as well, just curious about what the ids will give.
Edgar Doiron
@Coffee4cr
Sep 23 2016 17:35
@Archomeda yep, we need to update !build
@Nabrok /v2/legends I think; the ids are strings like "Legend1" IIRC
And rangers should have a pets field that references /v2/pets
Nabrok
@Nabrok
Sep 23 2016 17:36
Right
pve: { heal: 27220, utilities: [ 28379, 27014, 26644 ], elite: 27760, legends: [ "Legend1", "Legend3" ] },
Edgar Doiron
@Coffee4cr
Sep 23 2016 17:36
[
"Legend1",
"Legend2",
"Legend3",
"Legend4",
"Legend6"
]
LOL
Nabrok
@Nabrok
Sep 23 2016 17:36
So it lists the legends, just curious what the ids are.
Nabrok
@Nabrok
Sep 23 2016 17:36
No, I mean the heal is 27220 ... is that just the heal from Legend1?
Archomeda
@Archomeda
Sep 23 2016 17:37
Legend5 was apparently lost :smile:
oh
@Nabrok I have no idea
garbage data maybe?
looks like it's the heal for legend1.
man you step away for a month and forget how everything works
Nabrok
@Nabrok
Sep 23 2016 17:38
27220 is facet of light. Interesting that it shows 27220 on my wvw build too which isn't running glint legend
err, Legend1 has profession skill 28229 which is glint
oh on the wvw build
afk 10 minutes it's clear that i need coffee badly
smiley
@codemasher
Sep 23 2016 17:42
@Nabrok @Archomeda https://xkcd.com/208/
Aralicia
@Aralicia
Sep 23 2016 18:18
@Nabrok I'm getting the urge to make comment-docs for the bot. Any tool of preference ? dox ?
Nabrok
@Nabrok
Sep 23 2016 18:19
Whatever you like
Nabrok
@Nabrok
Sep 23 2016 18:59
Pushed a new commit up, skills are now shown with the !build command
Edgar Doiron
@Coffee4cr
Sep 23 2016 19:19
confirm it works!
thanks
@Nabrok you have a lot of other stuff too coming in the pipeline. There wasn't just that build change in that merge
Nabrok
@Nabrok
Sep 23 2016 19:22
oh, the earlier commit where I added some more api stuff?
Edgar Doiron
@Coffee4cr
Sep 23 2016 19:25
yep
Nabrok
@Nabrok
Sep 23 2016 19:26
This wrapper code I wrote a while back for another project, I just copied over some more of the includes.
I don't know if I'll have much use for continents and maps in this, but it's there if I do.
Archomeda
@Archomeda
Sep 23 2016 22:24
nice!
ChieftainAlex
@ChieftainAlex
Sep 23 2016 22:24
remind me, Nuhoch Wallows and Thermal Tubes aren't in the maps api are they
Archomeda
@Archomeda
Sep 23 2016 22:25
when i'm using the api for a personal project, i'm just lazy and write just a few methods that cover every endpoint
for example for php i use a class's __call and __get functions to overwrite stuff :P
:vomit:
@ChieftainAlex uhh, hmm, they're not in the whitelist queue
ChieftainAlex
@ChieftainAlex
Sep 23 2016 22:27
that's okay there's only a few of them
If you happen to have the map ids I can toss 'em in
ChieftainAlex
@ChieftainAlex
Sep 23 2016 22:27
hardcode all the things
1175
just ember bay for thermals evidently
Archomeda
@Archomeda
Sep 23 2016 22:28
well, it allows me to chain stuff like
$api->account->masteries->setToken($account->key_token)->get();
ChieftainAlex
@ChieftainAlex
Sep 23 2016 22:29
Nuhoch Wallows are for map ids 1041,1043,1045,1052
Added all 5 to the whitelist; they should show up at some point
Archomeda
@Archomeda
Sep 23 2016 22:29
it will automatically resolve to /v2/account/masteries with the authorization header :P
ChieftainAlex
@ChieftainAlex
Sep 23 2016 22:30
amazing thanks!
np, wish the whitelist bits worked better :(
Archomeda
@Archomeda
Sep 23 2016 22:34
hmm
i have no verification whatsoever in my library :D
so if an endpoint doesn't exist, it will still try to request it from the api, only to fail because the api responds with a 404
it does allow me to keep using the same library without having to update it
and i've actually no clue how your code there works @codemasher
smiley
@codemasher
Sep 23 2016 22:38
it's magic!
Archomeda
@Archomeda
Sep 23 2016 22:39
i should really look at type hinting
also, you lay down for a few minutes, and you fall asleep for a few hours... ¯\_(ツ)_/¯
smiley
@codemasher
Sep 23 2016 22:57
@Archomeda if you like to learn, jusut read into one of my libraries - ask silly questions (like i do all the time!)
Archomeda
@Archomeda
Sep 23 2016 23:15
haha
smiley
@codemasher
Sep 23 2016 23:31
(but use this channel for questions directly at me to avoid moar bloat here https://gitter.im/chillerlan/gw2hero.es )