These are chat archives for arenanet/api-cdi

20th
Apr 2016
iLovePorkDumpling
@iLovePorkDumpling
Apr 20 2016 01:09
Hi, is there an update on daily achievement api? Some achievement ids do not return any data for me. Is there a new specific way to call and I missed it?
David Reeß
@queicherius
Apr 20 2016 01:42
@lye /guild/:id/stash returns endpoint broken :pensive:
(guid in case that helps: F8CDF1E0-2D64-4D71-81E2-049B0796B7AE)
orz, thanks for the guild id; i'll pull the data down locally later today and see what's up
@iLovePorkDumpling probably new achievements that need to be whitelisted; I'll go through the queue now; I should make dailies auto-whitelist :/
Aralicia
@Aralicia
Apr 20 2016 16:33
Probably, especially considering the amount of new daily achievs added with the tuesday's update.
darthmaim
@darthmaim
Apr 20 2016 16:34
yes please
don't forget to whitelist daily/tomorrow
yep, just did those too
that won't affect daily fractals though since they API doesn't expose tomorrow's :<
David Reeß
@queicherius
Apr 20 2016 16:38
@lye And I dont know if that helps, but here is a list of items that are in the tradingpost, but that you can't actually list: https://github.com/gw2efficiency/gw2-api.com/blob/master/src/static/tradingpostBlacklist.js
(if anyone has stuff to add to that list, feel free to PR / message me)
were... those ever tradable? if not how did they even get to the trading post wtf
some of those are fairly new items
David Reeß
@queicherius
Apr 20 2016 16:40
The slivers were in the TP wrong since a long time as well, at least a year.
And no idea. :D
I just know that people shout at me because they think they found 1k+ gold on their account and then it's old pvp crafting mats. lol
Aralicia
@Aralicia
Apr 20 2016 16:43
lol. I note that some of them are guild-related (schematics and the like). From what the API show, they aren't AccountBound (thus sellable on the TP), even though it probably can't be done because a character shouldn't be able to have one in its inventory.
David Reeß
@queicherius
Apr 20 2016 16:44
^ Yep, it's exactly that. And that was only recently introduced, they were not in the tradingpost for a while
Aralicia
@Aralicia
Apr 20 2016 16:46
That said, sometimes, I got a small bug when exchanging tokens for super clouds. A few clouds (like one in 500) weren't immediatly consumed and were left in the inventory. Maybe a similar issue may allow people to carry (and trade) items that shouldn't.
huh, that's weird; my understanding was that that couldn't happen
Aralicia
@Aralicia
Apr 20 2016 16:47
well, it did.
yeah no I totally believe you
there's so much stuff with implementations that are way complex
David Reeß
@queicherius
Apr 20 2016 16:49
"way to complex" is a nice way to say that. Gonna remember that for appropriate times.
but if that's the case, it totally invalidates my previous assertion that guild upgrades may, in the future not each have a corresponding "Immediate"-type item.
Aralicia
@Aralicia
Apr 20 2016 16:49
It may be because I was using a scroll-as-click macro on a free-wheel mouse (each step of the wheel was a click). With so much click per second, it might have been possible that I sometimes bought 2 clouds in the time it took to use 1.
my understanding was that if the script failed to add to the guild inventory it would queue the transaction on the map instance server; if you disconnected before the transaction finished the map instance server would abort the retries and put a note on your account data for the next map instance server to continue retrying
it sounds like the latter half of that either doesn't apply for the clouds or I'm totally misunderstanding the code (or the code isn't working correctly)
Aralicia
@Aralicia
Apr 20 2016 16:55
hmmm. I take it the script try to use the item one by one ? Is there a reason to do that, rather that going by stack/full inventory ? (Sorry to ask questions you may not have response to because it's not your area).
AFAIK the "Immediate" items have a script that triggers on acquire
so every time you buy one it triggers a separate instance of the script
Aralicia
@Aralicia
Apr 20 2016 16:56
That said, I didn't think to report the bug. I considered that pretty minor. should have, in retrospect.
I'll ask around real quick to see if that's intended behavior
Pat Cavit
@tivac
Apr 20 2016 17:20
yeah it's definitely a thing
so many CSS-in-JS solutions popping up
they're all horrifying IMO
smiley
@codemasher
Apr 20 2016 17:20
more complexity! more dependecies! nothing will break! yay!
Pat Cavit
@tivac
Apr 20 2016 17:21
I can't throw too much shade though, since I've got my own CSS dialect thing I maintain
smiley
@codemasher
Apr 20 2016 17:21
i feel like a rebel writing vanilla most of the time
Pat Cavit
@tivac
Apr 20 2016 17:22
vanilla CSS is fine but can get out of hand on big projects
smiley
@codemasher
Apr 20 2016 17:23
and so can dependencies :D
darthmaim
@darthmaim
Apr 20 2016 17:23
i really want to use modular css, but its so hard to use outside of js projects where I can just require it
smiley
@codemasher
Apr 20 2016 17:24
i guess it's pretty individual
Aralicia
@Aralicia
Apr 20 2016 17:25
tbh, I strongly prefer things like Sass/Less to CSS-in-JS solutions
David Reeß
@queicherius
Apr 20 2016 17:26
I like JSX, but I dont know what to think of CSS in JS... it looks cool for small things, but when looking at a folder of SCSS files I dont know how maintainable that gets when it's all in JS
Pat Cavit
@tivac
Apr 20 2016 17:27
@darthmaim I'm using modular-css on a entirely server-rendered project right now
of course, it's server-rendered using javascript... XD
darthmaim
@darthmaim
Apr 20 2016 17:28
well, yeah...
i just want all my [module].css files -> combined.css + map.json with a simple gulp task
doing a deploy, prepare for a bumpy ride
Changes:
  • /v2/achievements: expose title unlocks
  • /v2/characters: expose equipped skills/legends/pets
  • /v2/characters: expose pvp builds
  • /v2/guild/:id/teams: add season standings
  • /v2/specializations: explicitly expose implicit weapon proficiency trait
  • /v2/wvw/matches: make all_worlds always present
  • all endpoints: deny API usage to banned accounts
Aralicia @Aralicia hold thigt
darthmaim
@darthmaim
Apr 20 2016 17:31
:+1:
Aralicia
@Aralicia
Apr 20 2016 17:32
"all endpoints: deny API usage to banned accounts" it didn't before ? :o
nope lol
/v2/account would say "access": "None"
David Reeß
@queicherius
Apr 20 2016 17:33

deny API usage to banned accounts

@lye aww, no more looking at duper's accounts? :(

smiley
@codemasher
Apr 20 2016 17:34
/v2/dupers
David Reeß
@queicherius
Apr 20 2016 17:34

/v2/dupers

:+1:

#lyepls
@queicherius the way it's hooked up, API keys will still be valid until a day after the ban
okay, everything seems fine
Nabrok
@Nabrok
Apr 20 2016 17:45
famous last words ...
Aralicia
@Aralicia
Apr 20 2016 17:45
alright, boys, time to try to crash the API !
@queicherius are you still getting the broken error on /v2/guild/F8CDF1E0-2D64-4D71-81E2-049B0796B7AE/stash ?
I pulled the guild data locally and can't reproo :|
(thinking I might have fixed it earlier with the deploy)
Eearslya Sleiarion
@Eearslya
Apr 20 2016 18:26
Woooo, finally got through the backlog
Eearslya Sleiarion
@Eearslya
Apr 20 2016 18:33
@lye "server id of claiming guild (not sure if this is even tracked)." Isn't that already implied by who owns the objective?
not with merges, no
Eearslya Sleiarion
@Eearslya
Apr 20 2016 18:33
..Riiight. Hm
though tbh I don't think it matters -- the claiming restriction is one objective/guild/map
doesn't really matter what the merges are or which chapter claimed
Edgar Doiron
@Coffee4cr
Apr 20 2016 18:35
it does if you want to shove it in there face! We capture more than you! pull your own weight!
Nabrok
@Nabrok
Apr 20 2016 18:35
guilds aren't particularly tied to servers through the game, for example we could easily have a guild with members on both tied worlds.
Edgar Doiron
@Coffee4cr
Apr 20 2016 18:35
yep
right, I think the person requesting that was mis-understanding how claiming works
Edgar Doiron
@Coffee4cr
Apr 20 2016 18:36
I had a little piece of code to gather all the guilds on SF, which everytime and objective was claimed I would log the guild_id
so for me, that server id is important
ah okay, that makes sense
I won't be able to have anything ready until the next release at best
not even sure about that since the cutoff for making it int o that release is pretty soon
Nabrok
@Nabrok
Apr 20 2016 18:38
How would you do that though? If TC is matched with (for example) Devona's Rest ... and say my guild has people on DR as well as TC, what server claimed the objective?
David Reeß
@queicherius
Apr 20 2016 18:38
what the living hell why does it work on my local stack
Nabrok
@Nabrok
Apr 20 2016 18:41
I suppose you could look at the server of the person who clicked the claim button, but I'd be surprised if that is currently tracked.
I mean, the map instance server knows
I'm just under the impression it doesn't tell anyone
(incl. who pressed the button)
Edgar Doiron
@Coffee4cr
Apr 20 2016 18:46

but let's say you have Guild X with Person A on server 1 and Person B on server 2

Person A claims camp in EBG that is listed as claimed by Guild_ID Server 1
Person B claims camp in BL that is listed as claimed by same Guild_id Server 2

no?

That's fine pre-merges
Each guild gets 1 claim/map
Edgar Doiron
@Coffee4cr
Apr 20 2016 18:48
yeah it would even work pre-merge if Person A and Person B claimed the same camp in each their matchup
Nabrok
@Nabrok
Apr 20 2016 18:48
By the way ... what happens if you have 2 people in a guild on opposing servers and they both try to claim on the same map?
Edgar Doiron
@Coffee4cr
Apr 20 2016 18:48
but now let's say they're in the same merged match, are we going to see two different server_id for Person A and B
@Nabrok I think it unclaims; I'm not entirely sure though
@Coffee4cr technically, yeah, if it's possible to expose
if it's not already exposed I'm not going to muck around piping it out of the map instance servers because I'll probably break something and destroy wvw forever
Which I'd like to avoid
lye @lye hmms
@queicherius so I found out what's broken
one of your guild's bank tabs is a slothazor mushroom
Edgar Doiron
@Coffee4cr
Apr 20 2016 18:51
especially since they're starting to fix WvW, we don't want you destroying it
??????????????????????????????????????
David Reeß
@queicherius
Apr 20 2016 18:52
What
I DON'T EVEN KNOW
Edgar Doiron
@Coffee4cr
Apr 20 2016 18:52
what?
haha
you have 4 guild bank tabs
and it says one of them is a mushroom
I'm going to go cry then I'll try to get this fixed today
Eearslya Sleiarion
@Eearslya
Apr 20 2016 18:52
hwat
smiley
@codemasher
Apr 20 2016 18:52
this is a hint!
shrooms!
Edgar Doiron
@Coffee4cr
Apr 20 2016 18:53
someone had some good stuff
David Reeß
@queicherius
Apr 20 2016 18:53
That's hilarious. :D
We got 1 extra mushroom stash outside of the normal 3 limit
Also, looks like my guild is not the only one that's happening for
Edgar Doiron
@Coffee4cr
Apr 20 2016 19:04
quick question, GW2skills.net hasn't been updated since the January Quarterly. So here's my question, do we have all skill/trait information already available in the API?
so we could build a tool that updates as the API updates
Eearslya Sleiarion
@Eearslya
Apr 20 2016 19:15
I wanted to try that at some point; a build tool entirely populated by API entries
yay
oh wait.
(i should really finish this before the gw1 servers are being turned off...)
it bugs me that that it is still impossibru to load/save builds like in gw1, so that building a build tool for gw2 would actually make sense
@Coffee4cr mostly, but it's still difficult to use. I've been trying to make /v2/professions a bit cleaner so that it could hypothetically be used to auto-populate a build editor
Edgar Doiron
@Coffee4cr
Apr 20 2016 19:35
@lye thanks
windwarrior
@windwarrior
Apr 20 2016 19:37
today I found a subreddit devoted to the IKEA
darthmaim
@darthmaim
Apr 20 2016 19:48
{
  "type": "Food",
  "duration_ms": 600000,
  "apply_count": 2,
  "name": "Nourishment",
  "icon": "https://render.guildwars2.com/file/779D3F0ABE5B46C09CFC57374DA8CC3A495F291C/436367.png",
  "description": "+3% burning duration\n+10% experience from kills"
}
:+1:
Aralicia
@Aralicia
Apr 20 2016 20:05
@Coffee4cr I'm taking care of the bot for the Discord server or /r/GuildWars2. I've added !skill & !trait commands that directly query the API. works pretty well. Only thing he doesn't do on his own, is rebuild an internal name-to-id table whenever there is an update.
Main issue : on some point, we get human-readable data, put not data easy to parse (for example, Sigil/Rune effects are only present as a description)
Edgar Doiron
@Coffee4cr
Apr 20 2016 20:07
eww
I've been enjoying the !skill and !trait on the discord ;)
Aralicia
@Aralicia
Apr 20 2016 20:09
Hey, you're not the only one here, I have to give context for the other :p
The Sigil/Rune bits are probably not going to get better, unfortunately
The only structured part of them are those description strings -_-
Aralicia
@Aralicia
Apr 20 2016 20:12
Unsurprising, given that some of them spawn mobs on some conditions. I don't believe it's something that could be easily described.
I could just serialize the game scripts and the conditions under which they're triggered
:trollface:
Aralicia
@Aralicia
Apr 20 2016 20:15
... My mind is split between : "urgh" and "that would be awesome !"
Pat Cavit
@tivac
Apr 20 2016 20:48
:no_good:
Nabrok
@Nabrok
Apr 20 2016 20:56
@queicherius gw2efficiency available achievement points is showing "NaN"
I think it's Dungeon Frequenter's fault
In game that shows as 4 billion max AP
uhh hmm, what does the API say
the max value is set at -1 in content
darthmaim
@darthmaim
Apr 20 2016 21:00
"tiers": [{
  "count": 8,
  "points": 0
}],
"point_cap": -1,
hmm, there might be a way to make that cleaner on the API side but nothing's coming to me
I'd bet $100 the client is treating that as an unsigned 32-bit integer though, hence the 4 billion-something
Nabrok
@Nabrok
Apr 20 2016 21:01
I'm not taking that bet
okay so for core/hot achievement splits I need a field name
Pat Cavit
@tivac
Apr 20 2016 21:32
HOT-STUFF-GOES-HERE
it goes on achievement categories and is an array of strings, e.g. ["Core"] or ["Core", "HeartOfThorns"] etc
I'd prefer to keep field names valid javascript identifiers
which doesn't preclude ES6 unicode identifiers
so maybe still room to go ntus
s/ntu/nut
Pat Cavit
@tivac
Apr 20 2016 21:33
too bad emoji's no good
yeah shame about that
darthmaim
@darthmaim
Apr 20 2016 21:33
required_access
done
:shipit:
Pat Cavit
@tivac
Apr 20 2016 21:33
:heart: :rose:
also s/Core/whatever-string-/v2/account-uses
darthmaim
@darthmaim
Apr 20 2016 21:35
"GuildWars2"
@queicherius fix pushed out!
David Reeß
@queicherius
Apr 20 2016 23:30
@lye thanks! (can we somehow get that mushroom bank slot tho? :sparkles:)
@Nabrok Oh boy, thanks for the notice. Is that achievement infinite now? Because then the available value would make no sense in the first place...
@queicherius the mushroom slot bit turned out to be an id mismatch between my feature branch and live. What it actually is makes much more sense.
And also super boring.