These are chat archives for arenanet/api-cdi

11th
May 2017
Michael Dougall
@madou
May 11 2017 00:38
Hey lye I posted a potential bug for u: arenanet/api-cdi#517
Archomeda
@Archomeda
May 11 2017 01:01
i don't see achievement 1839 in that category :(
was it yesterday's achievements?
Michael Dougall
@madou
May 11 2017 01:39
oh. its changed. wtf haha
Archomeda
@Archomeda
May 11 2017 01:40
well, they are daily achievements after all ;)
Michael Dougall
@madou
May 11 2017 01:40
right that makes sense
well yeah would have been yesterdays achievements
Archomeda
@Archomeda
May 11 2017 01:41
i'm out of obby shards... i never thought i would see that day
Michael Dougall
@madou
May 11 2017 02:57
@Archomeda what dat extractor do u use for gw2
Archomeda
@Archomeda
May 11 2017 03:13
gw2browser
Michael Dougall
@madou
May 11 2017 03:19
sweet, thanks
Archomeda
@Archomeda
May 11 2017 03:20
make sure to use a fork
Michael Dougall
@madou
May 11 2017 04:38
bit of work to finish + bugs to fix but its getting there
(sorry not sorry :D)
@madou that's pretty wicked
ChieftainAlex
@ChieftainAlex
May 11 2017 17:02
new endpoint v2/achievements/daily/yesterday-tomorrow-morning confirmed
i think i confused myself there
Nabrok
@Nabrok
May 11 2017 17:04
Is there a way to see which dailies you've completed yet?
that's what i get for checking my email at night
no
windwarrior
@windwarrior
May 11 2017 19:18
Eearslya Sleiarion
@Eearslya
May 11 2017 19:25
My last job, I got at least 1,000 e-mails a day
Granted, 90% of those were automated alert systems for datacenters across the entire US
  {
    "sender_id": "8890B5A0-7D2E-E611-9106-0862664D7672",
    "sender_char": "Fsdf",
    "subject": "subject",
    "message": "hello",
    "timestamp": "2017-05-09T23:01:50.000Z",
    "coins": 42000,
    "items": [
      {
        "id": 20323,
        "count": 2
      }
    ]
  }
darthmaim
@darthmaim
May 11 2017 21:36
\o/
these don't actually have unique ids
also ... I'm not sure how they're marked as read.
darthmaim
@darthmaim
May 11 2017 21:36
hmm
timestamp might be unique-enough
darthmaim
@darthmaim
May 11 2017 21:37
I'm guessing only user mails, and no npc/anet mails?
you know I'm not actually sure
darthmaim
@darthmaim
May 11 2017 21:38
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
May 11 2017 21:38
¯\_(ツ)_/¯
npc mails are per-character, right? I think those use a different thing
darthmaim
@darthmaim
May 11 2017 21:38
yeah
anet mails I think just have a flag set on them
I should probably expose flags
crap I need to get my local gemstore working, that's one way to get anet-sent mails
darthmaim
@darthmaim
May 11 2017 21:39
I thought you had that working because /v2/gemstore/catalog appeared last update :P
the catalog just reads from the gemstore backend
my local gemstore frontend needs some configuration or something changed
I cbf'd to look into why it's broken
I probably need to get latest configs + resolve or something
windwarrior
@windwarrior
May 11 2017 21:40
wait, arent you anet yourself :P
did I ever turn on /v2/gemstore/catalog
darthmaim
@darthmaim
May 11 2017 21:40
nope
just appeared 7 days ago
disabled
@windwarrior it only says "sent from anet" if the sender's account has GM rights
windwarrior
@windwarrior
May 11 2017 21:40
YOU are anet, dumdumdumm
ah makes sense ^^
i'm not sure if the local test account has gm rights actually
windwarrior
@windwarrior
May 11 2017 21:42
is stored what account sent?
or only what char sent
sender_id is the account id
I should probably add the account name in there too
darthmaim
@darthmaim
May 11 2017 21:42
yeah
windwarrior
@windwarrior
May 11 2017 21:42
yeah that
but yeah thats about it I guess, looks neat
I would put it under a new scope tbh
I have it requiring the contacts endpoint yeah
contacts
Your friends, followers, and blocked accounts lists.
Will probably have to send an addition off to localization to add "in-game mail" to that

The other option is

chat
Read and write access to your guilds' chat channels.

but I think contacts makes more sense
darthmaim
@darthmaim
May 11 2017 21:44
yeah, contacts
windwarrior
@windwarrior
May 11 2017 21:45
wait, wouldnt you seperate the two, have different perms for chat and contacts
oh yeah those are totally separate scopes
I've got localized strings for them already I just never turned them on on live
windwarrior
@windwarrior
May 11 2017 21:45
like, @queicherius really doesnt need to send messages to my guild in my name :P
but think of the app possibilities
darthmaim
@darthmaim
May 11 2017 21:46
gw2-to-irc-bridge
but yeah probably going to keep chat totally devoid of anything except chat.
@darthmaim i has a drem
darthmaim
@darthmaim
May 11 2017 21:46
:D
I need to buckle down for a couple weeks and actually put it together though
it's a lot of work, unfortunately
windwarrior
@windwarrior
May 11 2017 21:48
no more gossiping about guildies that are not online then
:')
just make per-clique guilds
windwarrior
@windwarrior
May 11 2017 21:48
blob
I need about 2guildmembers2^{|guild members|} guild slots pls
become less popular
windwarrior
@windwarrior
May 11 2017 21:50
or dont gossip about people :P
I'll try that
I don't recommend it
hmm, okay, interesting.
is there a limit to how much mail an offline person can receive?
I thought you got to a point where you couldn't send someone mail anymore
windwarrior
@windwarrior
May 11 2017 21:51
they are queued if your box is full
but I dont know whether there is a limit to that queue
the API uhh
totally reads the queue
since the messages don't leave the queue unless you're logged in (because the map instance server moves 'em out of the queue)
darthmaim
@darthmaim
May 11 2017 21:52
not complaining :P
I'm more worried about scalability
like you could use this for automated donations right
except what happens when you don't clean out the donation account for a month and there are 100k pending mails
I might artificially limit this to like 100 mails or something
darthmaim
@darthmaim
May 11 2017 21:53
I guess you could limit the API
yeah
windwarrior
@windwarrior
May 11 2017 21:53
wait, you expose the mails we have queued too?
hellz yeah i do
otherwise it wouldn't update until you logged in and that's kinda pointless
windwarrior
@windwarrior
May 11 2017 21:53
well, I mostly want it for archiving
SAVE ALL THE LOGS!
log all the trees
darthmaim
@darthmaim
May 11 2017 21:54
If you are reading the queue, are the mails you already received even in there?
I'm reading both the queue and the mails stored in the account blob
there might be some minor bugs w.r.t cache coherency because those are pulled from different databases
darthmaim
@darthmaim
May 11 2017 21:55
ah, so even if I have no mails and someone sends me something, it gets put in the queue until I login?
yep
darthmaim
@darthmaim
May 11 2017 21:55
cool
only thing that's allowed to modify account/character blobs is the map instance server
windwarrior
@windwarrior
May 11 2017 21:55
its still in the API when I am logged in right?
yep, but subject to a 5-minute delay
since your character blob is cached by the API to not overload the database servers
windwarrior
@windwarrior
May 11 2017 21:55
yeah, so it might duplicate
I think the window for it is super small tbh
windwarrior
@windwarrior
May 11 2017 21:56
be both in the queue'y part and be in my char part?
if you're logged in I think it gets dequeued fairly quickly
darthmaim
@darthmaim
May 11 2017 21:56
sounds good
and the API backend server caches the queued messages as well, so it'll probably miss it until it refetches the user blob
windwarrior
@windwarrior
May 11 2017 21:57
but if the API backed reads the queue first, then the message gets dequeued, and then it reads the character blob
its in both right?
#slightlytheoretical
it reads the user blob first
actually
the user blob has a sequenceId to the queue that it's read from
so there shouldn't actually be any race conditions
windwarrior
@windwarrior
May 11 2017 21:59
well, then you can lose messages, userblob read, message dequeue, queue read
fair.
windwarrior
@windwarrior
May 11 2017 22:01
congotta love currency
if you want to fix this theoretically you need a readlock on the queue from the moment you read the userblob, but thats probably not a thing is it?
I'm not gonna put that much effort into it :|
just don't have those kinds of primitives
windwarrior
@windwarrior
May 11 2017 22:13
its pretty theoretical anyway
okay, slightly amended output format:
  {
    "from_id": "8890B5A0-7D2E-E611-9106-0862664D7672",
    "from_account": "Lawton Campbell III.7615",
    "from_char": "Fsdf",
    "subject": "☃ ☃ ☃ ☃ ",
    "message": "☃ ☃ ☃ ☃ ☃ ☃ ☃ ☃ ",
    "timestamp": "2017-05-11T22:56:26.000Z",
    "carrier_id": 4,
    "coins": 0,
    "items": []
  }
going to go ahead and submit this and write the PR
darthmaim
@darthmaim
May 11 2017 22:58
:+1:
Eearslya Sleiarion
@Eearslya
May 11 2017 22:59
can you actually put emoji in mail?
that's not emoji
that's on the BMP
e.g. ☁→☃→☀→☂ can be copy-pasted into chat just fine
♨ is also a fun one
Michael Dougall
@madou
May 11 2017 23:32
Oh u guys talking about chat system? Is that a whiles away?
API chat
if we lived in magical christmas land where everything is happy all the time, it'd take ~2 solid weeks of dev time to implement
I should probably take a swing at it soonish though.
Michael Dougall
@madou
May 11 2017 23:38
Fair enough, there's so many awesome things to come tho
Not enough time in a day