These are chat archives for arenanet/api-cdi

20th
Feb 2018
Quaggan BooOOoot
@QuagganBooOOoot
Feb 20 2018 18:11
New discussion in API Development:

Guild API Request
by Foghladha.2506 in API Development

API: https://api.guildwars2.com/v2/guild
Is there any chance you can add LastLogin to this? It would help a lot of guild leaders be able to figure out who is active in their communities without requiring people to figure out how to plug in an api-key to our websites. It currently gives ArenaNet.id, Rank, and Joined Date. A Last Login timestamp would go a long way.

smiley
@codemasher
Feb 20 2018 19:30
@ChieftainAlex :point_up: October 7, 2017 12:27 AM (read the chat just now)
ChieftainAlex
@ChieftainAlex
Feb 20 2018 20:14
thanks Smiley, that's what I was thinking of. I had to use 117% to get the pixels to line up in GIMP /shrug
smiley
@codemasher
Feb 20 2018 20:24
maybe the ingame upscale depends on the screen size?
or UI scaling?
BoyC
@BoyC
Feb 20 2018 20:25
if you have dpi awareness on then yeah dpi scaling affects the ui
smiley
@codemasher
Feb 20 2018 20:26
but then again... is the base map considered UI?
ChieftainAlex
@ChieftainAlex
Feb 20 2018 21:34
I'm getting the distinct feeling I'm a gw2 player that is bad at crafting.. I looked up the craft prices on gw2efficiency, followed by "that'll take way too long i'll buy everything straight up" :<
ptolstoi
@ptolstoi
Feb 20 2018 22:03
@BoyC you know that the taco protocol only registers if you run taco as admin?
BoyC
@BoyC
Feb 20 2018 22:38
crap
not sure what i can do about that tbh
Archomeda
@Archomeda
Feb 20 2018 22:40
you might be able to request elevated permissions upon startup if you detect that the protocol isn't registered, but start it as a separate process with command line arguments that closes itself after registering
because you can't request elevated permissions in a running process, you have to start a new one
BoyC
@BoyC
Feb 20 2018 22:41
something for next weekend to do i guess
Archomeda
@Archomeda
Feb 20 2018 22:41
have fun with it :P
ptolstoi
@ptolstoi
Feb 20 2018 22:42
just add it for now to the change log ;)
BoyC
@BoyC
Feb 20 2018 22:43
done
Silveress
@Silveress
Feb 20 2018 22:44
@ChieftainAlex Thank you for your patronage at SilverMart (tm)
Archomeda
@Archomeda
Feb 20 2018 22:44
i wish we had something like what android does with permissions, but then on windows
Silveress
@Silveress
Feb 20 2018 22:44
^ and not udp either
well not current windows store ones at elast
Archomeda
@Archomeda
Feb 20 2018 22:45
windows store is crap :P i don't like mobile stuff on a desktop
even though it's supposed to be for desktop too, it's still created with mobile in mind first
Silveress
@Silveress
Feb 20 2018 22:46
yeah and it dosent work well
yet at least
Archomeda
@Archomeda
Feb 20 2018 22:46
give microsoft 5 years, and they still fuck it up
Silveress
@Silveress
Feb 20 2018 22:46
GFWL.....
ChieftainAlex
@ChieftainAlex
Feb 20 2018 23:24
@Silveress I totally wasn't expecting that - thanks!
I just got an email about the /v2/commerce/exchange being broken
anyone know what's up with that?
It's all roses from where I'm standing
ChieftainAlex
@ChieftainAlex
Feb 20 2018 23:28
[ "coins", "gems" ]
seems okay on EU
Silveress
@Silveress
Feb 20 2018 23:28
seems to be working for me (accessing on web)
:shrug: maybe someone's site broke or something
wish people would say what the problem is rather than "it's broken" :(
Silveress
@Silveress
Feb 20 2018 23:29
@ChieftainAlex basically when someone instant buys they become my customer, when they instant sell theya re my supplier
"Blah blah blah, kindly do the thing"
ChieftainAlex
@ChieftainAlex
Feb 20 2018 23:30
still mighty kind of you :)
Silveress
@Silveress
Feb 20 2018 23:30
heh
ChieftainAlex
@ChieftainAlex
Feb 20 2018 23:30
made my day at least
Archomeda
@Archomeda
Feb 20 2018 23:30
:point_up: 24 januari 2018 03:31
maybe related to this?
it worked on and off back then
no clue about more recently though
Silveress
@Silveress
Feb 20 2018 23:31
although my main problem now Is I spend more time in spreadsheets/node.js than ingame trading
@Archomeda thanks, looks like gw2spidy's scraper stopped scraping
the current listed values don't match the API
Silveress
@Silveress
Feb 20 2018 23:33
heh
actually that is what brought me back to gw2
a few weeks ago
Archomeda
@Archomeda
Feb 20 2018 23:34
yeah, i can't find the other related messages about it later, but iirc the gem priced updated irregularly
gems -> gold is not updating as much as it should, while gold -> gems is
as much as it should -- e.g. compared to in-game?
Archomeda
@Archomeda
Feb 20 2018 23:36
but spidy is completely broken yeah
hmm
Archomeda
@Archomeda
Feb 20 2018 23:36
looking at the graph on shinies, and comparing the two lines, there are gaps in the gold -> gems updates
like, the value of it is the same for a long period of time, and then it updates suddenly, and then it starts again
gems -> gold is fluctuating like how it is normally
looks like that behavior changed on jan 9th
...there was a patch on jan 9th
hmmm
Archomeda
@Archomeda
Feb 20 2018 23:41
looking back at the graph, i do see some unchanging values even earlier than that, but it can also be because of the change to average per day db storage
image.png
like wth... ^
but the 9 jan mark seems suspicious yeah
coincidentally, i think that's also when gw2spidy's graph started breaking
wonder wtf happened there
...
1/9/2018 4:18 PM [2API]

 * I have no idea what all these changes are.
 * Fix some error handling in memoized functions.
 * Drastically change the caching backend to use CAS to prevent group stampedes.
 * Add in new raid wing.
Archomeda
@Archomeda
Feb 20 2018 23:47
would... it be caching? :P
it's definitely possible there's a bug in the caching stuff
which would be bad
I don't really understand why it only broke for one of the things though
Archomeda
@Archomeda
Feb 20 2018 23:49
yeah, that's definitely odd
rate = memoize("Exchange/GetRate.{2}.{3}", false, (req, state, kind, quantity, cb) => {
where kind is gems or coins and so forth
it's the exact same codepath
Archomeda
@Archomeda
Feb 20 2018 23:50
well, at least it's clear that the issue wouldn't be in that line of code i guess
sure but both routes use the same controller function
also the memoize function semantics changed slightly on Jan 9th
man deploying that stuff was pretty dumb
Archomeda
@Archomeda
Feb 20 2018 23:53
well, it did fix a ton of other things
although if something broke in that function, it's pretty bad
literally world-ending for the most part
Archomeda
@Archomeda
Feb 20 2018 23:54
but, i haven't heard anyone mentioning problems on any other endpoint i think
soo... yeah
fwiw the new cache code reduces the number of requests by like 85%
Archomeda
@Archomeda
Feb 20 2018 23:56
that's pretty significant
are you taking requests with different parameters into account while caching? or are you still treating every request with different parameters as individual requests in terms of caching
Silveress
@Silveress
Feb 20 2018 23:58
currently having fun with caching myself
it puts the parameters marked with {N} in the cache key string into the key string
Silveress
@Silveress
Feb 20 2018 23:58
"fun"
Archomeda
@Archomeda
Feb 20 2018 23:58
exchange is literally one of the few endpoints with an amount as parameter
nah almost every endpoint uses that
exports.fetchItemDetails = memoize("ItemDetails.{2}", true, function(req, state, itemId, cb) {
etc
Archomeda
@Archomeda
Feb 20 2018 23:59
well, if you take the pages and ids into account... yeah
nvm
transactions are the best
getListingBlock = memoize("Transactions.{1}.{2}.{3}.{4}", false, (req, accountId, cmd, mode, block, cb) => {