These are chat archives for arenanet/api-cdi

26th
Apr 2017
Archomeda
@Archomeda
Apr 26 2017 00:01
okay cool, i fixed that alert
whenever the accumulators have less than 15% stored power, it will give you a warning, once
darthmaim
@darthmaim
Apr 26 2017 00:03
:+1:
hmm, /v2/vendors/daily/fractal_reliquary
kind of want to leave /v2/vendors/:id open for a bulk-expanded endpoint
almost want to do /v2/vendors/fractal_reliquary but that won't fly with a bulk-expanded endpoint
maybe /v2/vendors/named/:name for the hardcoded ones
/v2/vendors/special/:name, hmm
Archomeda
@Archomeda
Apr 26 2017 00:10
ehm... these "vendors" are actually items right?
why not bind them to their item id?
lists of items and prices
Archomeda
@Archomeda
Apr 26 2017 00:10
no, i mean the "vendor" itself :P
the item that opens the window
oh, i see what you're saying
Archomeda
@Archomeda
Apr 26 2017 00:11
so in that case /v2/vendors/item/:id or something
and for general vendors just /v2/vendors/:vendor
NO GITTER BAD
@Archomeda I think I'd just put a vendor_id in gizmo-type items' .details field
Archomeda
@Archomeda
Apr 26 2017 00:12
oh, even those items have different vendor_ids then?
the gizmos that pop open the vendor UI have a script which uses an "open vendor UI 43" action
Archomeda
@Archomeda
Apr 26 2017 00:13
ah
so e.g. the fractal reliquary could have a .details.vendor_id = 43 which resolves to /v2/vendors/43
Archomeda
@Archomeda
Apr 26 2017 00:13
that works too
it totally breaks down for the karma one though
Archomeda
@Archomeda
Apr 26 2017 00:14
in regards of daily rotations?
the karma one's script references 100 different vendors (the script implements the rotation itself)
yeah
we added actual support for randomly rotating selections after that and never backported it
Archomeda
@Archomeda
Apr 26 2017 00:14
well.... force someone to change it :D
well, they're semantically different systems
the karma converter works on a schedule
Archomeda
@Archomeda
Apr 26 2017 00:15
the rest is random?
everything since then uses a deterministic RNG (e.g. seeding based off the vendor id + date) to choose which items
yeah
Archomeda
@Archomeda
Apr 26 2017 00:15
i am glad i completely did not continue checking for the guild vendor rotations then
rip me because i would never have found out the schedule
well, either that or the RNG needs to be fixed again
Archomeda
@Archomeda
Apr 26 2017 00:16
hmm
i suppose it's possible to support that schedule system natively too
but, then someone has to write it :P
is the karma converter the only one that's outdated?
yes
I... I think.
Archomeda
@Archomeda
Apr 26 2017 00:18
then i suppose a hardcoded list on the api wouldn't hurt
I mean, if /v2/items has the vendor_id in it
Archomeda
@Archomeda
Apr 26 2017 00:18
but... the issue is, the vendor ids will get screwed up
I can just symbolically execute the attached gizmo scripts to figure out the correct vendor_id
so the karma one would ... change it's /v2/items on a daily basis
Archomeda
@Archomeda
Apr 26 2017 00:18
urgh
i think most people expect /v2/items to be static
except between builds etc
well, it's almost hometime so I'll waffle about this a bit more tonight
Archomeda
@Archomeda
Apr 26 2017 00:19
what if you make that vendor id field an array?
that would work
probably.
Archomeda
@Archomeda
Apr 26 2017 00:20
it's gonna be a pain nonetheless :P
I should probably also hook up vendor whitelisting just in case
yeah it is, orz
this is why I never really wanted to tackle vendors
but hey we're here it's happening mistakes were made etc
Archomeda
@Archomeda
Apr 26 2017 00:20
for all the other daily changing vendors, will /v2/vendors change daily then as well?
or will it contain all possible options
/v2/vendors will change daily
Archomeda
@Archomeda
Apr 26 2017 00:21
well then
two completely different systems :D
karma is kind of static with 100 vendors, no one will ever figure out which vendor is today; while the others have a static vendor id with daily changing items
assuming the vendor_id in /v2/items will be an array of course
I could put the rotation details in there; I think it's just an offset from some epoch
I'm not sure how I'd encode it, but it's possible
Archomeda
@Archomeda
Apr 26 2017 00:23
i suppose you can hide it away as well
just have the karma the first vendor_id from the list of 100 vendors, and change that vendor_id on the API on a daily basis
i think you said that as well?
or was that different?
yeah
that involves having /v2/items change though
that might be the easiest way to do it, though it involves more symbolic script execution
Archomeda
@Archomeda
Apr 26 2017 00:25
well, i mean, have the vendor_id in /v2/items static (like the first vendor_id out of the list of 100 vendors)
ah.
Archomeda
@Archomeda
Apr 26 2017 00:25
and symlink that vendor_id in /v2/vendors to the others, based on day
and basically hide all the other 99 vendors
that's a super messy hack on the backend
Archomeda
@Archomeda
Apr 26 2017 00:25
yeah :P
oh
yeah hiding the other 99 would be fine
I dunno, I'll think about it
making this data pretty is gonna be rough
Archomeda
@Archomeda
Apr 26 2017 00:26
it's basically, vendor 1 - 100, have /v2/items/<whatever_item> permanently link to vendor 1; it's day 30, return vendor data 30 on /v2/vendors/1 and never expose /v2/vendors/[2-100]
it's the easiest way for people to consume the API i suppose, since it's basically how the others work on the frontend
but... it might require :sparkles: on your end :D
anyway, i won't hold you up from going home any longer :D
but, in case vendors change daily, it might be useful to set that on a separate field in /v2/vendors, but that's just me talking about details
actually, probably flags would suffice, since i assume there are HoT only vendors too
or other flags
Archomeda
@Archomeda
Apr 26 2017 00:31
(and i still keep talking, despite me saying i wouldn't hold you up for longer... haha)

just looked at the gist again...

{
    "type": "Sell",
    "tabs": [{
        "name": "",
        "line": "",
        "items": []
    }]
}

is actually kind of funny

Archomeda
@Archomeda
Apr 26 2017 00:38
unrelated note, i'm glad my wacom tablet still works
windwarrior
@windwarrior
Apr 26 2017 08:07
rip me because i would never have found out the schedule
unless you find the underlying's PRNGs period
uh no not even then
because it is "seeded" by the date
but if you would take infinite values from a singly seeded PRNG, at some point it will repeat itself
Edgar Doiron
@Coffee4cr
Apr 26 2017 12:56
someone was playing Zelda on the switch, beside me, on my commute to work
first time seeing a switch up close
Archomeda
@Archomeda
Apr 26 2017 14:55
@Eearslya rip server
windwarrior
@windwarrior
Apr 26 2017 15:36
@Coffee4cr ideal entertainment for train commutes :>
if the battery is not flat :(
it doesnt do the 3.5h of zelda that were promised to me
Jonathan Andrist
@rwfrk_twitter
Apr 26 2017 16:54
Quick, seed based on ID+Date? EVERYONE Lets work out the seed! cackle
(TimeGetMinutesSince2001() / MINUTES_PER_DAY) | (vendorId << 32) is the seed
not that that's going to get you very far
Archomeda
@Archomeda
Apr 26 2017 16:55
lol
that MINUTES_PER_DAY though :P
what's wrong with MINUTES_PER_DAY
Archomeda
@Archomeda
Apr 26 2017 16:56
just funny how it's there
lye @lye scratches his head
Archomeda
@Archomeda
Apr 26 2017 16:56
what's wrong with 1440
umm
no comment
Archomeda
@Archomeda
Apr 26 2017 16:57
;P
it might be SECONDS_PER_DAY and please don't hardcode 86400
why would you do that
Archomeda
@Archomeda
Apr 26 2017 16:57
make other people's lives horrible?
I like to be more creative
(let's never be creative again)
Archomeda
@Archomeda
Apr 26 2017 16:58
1000 * 60 * 60 * 24 * 365
^ looks good hehe :p
that's just asking for sadness
Pat Cavit
@tivac
Apr 26 2017 16:59
what could possibly go wrong
Archomeda
@Archomeda
Apr 26 2017 17:00
magic numbers are always fun to toy around with
unrelated note; legendary armor!
When you apply an upgrade (rune or infusion) to a piece of legendary armor and there is already an upgrade in the slot you have selected, the existing upgrade will be moved to your inventory and the new upgrade will replace it.
phew I was reading this and was like "oh god API changes" but this should work fine with the existing stuff
For a second I thought we did choosy-runes or something crazy
John Carroll
@johncarroll
Apr 26 2017 17:08
i wanted choosy runes
would have been a mess of an implementation
John Carroll
@johncarroll
Apr 26 2017 17:09
someone in the reddit thread thinks it would be simple. you just add another field to the database
what database
lol
Darrian
@rikkuness
Apr 26 2017 17:09
it's always the moderately tech people that come out with the best answers
"aws geez cmon anet, all you gotta do is add another thing, I do it all the time, so easy"
John Carroll
@johncarroll
Apr 26 2017 17:10
can't take more than 5 minutes :D
Darrian
@rikkuness
Apr 26 2017 17:11
legit just like ALTER TABLE armor ADD choosey_rune int
Edgar Doiron
@Coffee4cr
Apr 26 2017 17:18
now they only need to retro those legendary armor rune thing, to ascended armor and weapons
:D
easy right?
John Carroll
@johncarroll
Apr 26 2017 17:19
are all the runes sigils and infusions done by creating a new item id?
Archomeda
@Archomeda
Apr 26 2017 17:23
i want choosy runes and sigils :<
John Carroll
@johncarroll
Apr 26 2017 17:23
i want unlockable stats for ascended too, and build templates, and a pony
Archomeda
@Archomeda
Apr 26 2017 17:24
we have enough of the latter in the game already
or wait, those are unicorns
but yeah, i do hope these changes will be retroactively added to the legendary weapons
John Carroll
@johncarroll
Apr 26 2017 17:27
i expect they will
Archomeda
@Archomeda
Apr 26 2017 17:27
no more reason to carry around tons of different armor and weapon stats
(i literally expanded my inv bags to 140 one or two months ago, on my main, just for a third armor set)
Eearslya Sleiarion
@Eearslya
Apr 26 2017 17:57
@Archomeda wait what what did you do
Archomeda
@Archomeda
Apr 26 2017 17:58
obviously hacked into your server and caused it to crash
i dunno
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
Apr 26 2017 17:58
¯\_(ツ)_/¯
Eearslya Sleiarion
@Eearslya
Apr 26 2017 17:58
69072.154 Info HttpSharedState.cpp:109: Downloading https://multiplayer.factorio.com/update-game/1654135
69072.154 Info HttpSharedState.cpp:111: Status code: 404
69102.583 Info HttpSharedState.cpp:109: Downloading https://multiplayer.factorio.com/update-game/1654135
69102.583 Info HttpSharedState.cpp:111: Status code: 404
69132.329 Info HttpSharedState.cpp:109: Downloading https://multiplayer.factorio.com/update-game/1654135
69132.329 Info HttpSharedState.cpp:111: Status code: 404
what
are you connecting via IP or through the browser?
Archomeda
@Archomeda
Apr 26 2017 17:59
@darthmaim and i were ingame, and the server suddenly wasn't responding anymore
and we got kicked :P
Eearslya Sleiarion
@Eearslya
Apr 26 2017 17:59
..Better now?
Archomeda
@Archomeda
Apr 26 2017 17:59
dunno
windwarrior
@windwarrior
Apr 26 2017 17:59
I like how someone was like, yeah just use a bitset for storing whether someone has a rune unlocked or not
Archomeda
@Archomeda
Apr 26 2017 17:59
i have a wvw raid soon :P
Eearslya Sleiarion
@Eearslya
Apr 26 2017 18:00
automate it
Archomeda
@Archomeda
Apr 26 2017 18:00
lol
windwarrior
@windwarrior
Apr 26 2017 18:00
thats so wasteful if like 95% of the people only unlock scholar and berserker runes
Eearslya Sleiarion
@Eearslya
Apr 26 2017 18:00
fffff my client is out of date
why does it never update automatically
Archomeda
@Archomeda
Apr 26 2017 18:01
@windwarrior even better, just let the legendaries have their own separate inventory of 5 slots, where you can store runes/sigils and choose whatever you want to have active; then gemstore to unlock more slots
that's gonna be the worst pain to develop
windwarrior
@windwarrior
Apr 26 2017 18:02
or you know
reengineer how weapons work in a game that has been running for almost 5 years
from the ground op
orz
windwarrior
@windwarrior
Apr 26 2017 18:02
:')
Archomeda
@Archomeda
Apr 26 2017 18:02
oh yes, totally
i'm glad i'm not a gameplay engineer
Archomeda
@Archomeda
Apr 26 2017 18:02
and implement build templates at the same time
windwarrior
@windwarrior
Apr 26 2017 18:03
oh yeah gotta have those
Archomeda
@Archomeda
Apr 26 2017 18:03
so @lye will have something to do for the api as well
windwarrior
@windwarrior
Apr 26 2017 18:03
and variable stat splits
Archomeda
@Archomeda
Apr 26 2017 18:03
;)
Darrian
@rikkuness
Apr 26 2017 18:03
all you gotta do is put a new field in the database now and then
windwarrior
@windwarrior
Apr 26 2017 18:03
while we are at it
and before you know it you have a system more complex then a juicero
(FINALLY someone took it apart, turns out, the bill of materials of the thing is actually quite a lot)
Darrian
@rikkuness
Apr 26 2017 18:05
I actually read that blog yesterday after Adam Savage tweeted about it, was super interesting tbh haha
windwarrior
@windwarrior
Apr 26 2017 18:05
(it remains a squeezing machine that can be beaten by a man)
Typical case of trying to put a nail in the wall with a Falcon 9 rocket
I don't understand why you wouldn't just by a normal juicer
then again I don't understand most things, so
windwarrior
@windwarrior
Apr 26 2017 18:07
well this has some convenience (no mess!)
and not having to buy a million ingredients
but is it worth the markup
I mean, ignoring the cost of the hardware itself
the bags of produce aren't even worth it imo
it's something stupid like $7/juice pack, isn't it?
windwarrior
@windwarrior
Apr 26 2017 18:08
yeah it is
that pricepoint is not worth it for me either
not gonna lie, I can buy a lot of produce for $7
windwarrior
@windwarrior
Apr 26 2017 18:09
but I dont think there is no market for this at all
like if the bags were cheaper, more people would probably buy them
like there is a market for nespresso coffee
while normal packs of coffee are way cheaper
rikkuness @rikkuness has a £300 nespresso machine
Darrian
@rikkuness
Apr 26 2017 18:10
xD
sure, but nespresso pods are like $2/coffee
in my book that's perfectly fine; it's when you exceed $5/drink that it becomes ridiculous
windwarrior
@windwarrior
Apr 26 2017 18:12
I wonder how much it costs them to produce a pack
but probably a lot
because they completely overengineered the machine too
Darrian
@rikkuness
Apr 26 2017 18:12
yah I bulk buy on Amazon so it's not that bad, cheaper than going the coffee shop down the road by far
to me that's what makes it fine - the price of the hardware is amortized by not going to the store and buying something more expensive
i dunno i'm also a cheapskate
windwarrior
@windwarrior
Apr 26 2017 18:13
(I am not defending juicero, I am just arguing that there might be a market for freshly squeesed juicepacks at a different pricepoint)
like, I buy bottles of freshly squeesed orange juice for 2 dollar, while the same amount of orange juice costs me about a dollar worth of oranges if I would squeeze them myself
that's fair
windwarrior
@windwarrior
Apr 26 2017 18:26
reddit on the full offensive, legendary armor looks just like {{ armor set }}. Yeah what did you expect, armor is still... armor you know
Nabrok
@Nabrok
Apr 26 2017 18:26
I just don't like that it's locked behind raids ... and I even do raids
windwarrior
@windwarrior
Apr 26 2017 18:27
dont really care about that, think that is fine
elite armor for elite content, sounds about right
Nabrok
@Nabrok
Apr 26 2017 18:28
Like the stat/rune swapping would be really useful for WvW players too, and those are the least likely to do raids.
windwarrior
@windwarrior
Apr 26 2017 18:28
yeah, a WvW set should be added too
or well, I think legendary armor is something to work for
if you really want {{this}} you need to do {{that}}
John Carroll
@johncarroll
Apr 26 2017 18:30
wvw doesn't even have a legendary backpiece
windwarrior
@windwarrior
Apr 26 2017 18:31
which is also something they should add
but yeah, development of stuff takes time
John Carroll
@johncarroll
Apr 26 2017 18:33
given how long it took for this set of armour, i have doubts on another set being made
windwarrior
@windwarrior
Apr 26 2017 18:33
yeah true
but yeah, rewards like these are super tricky
John Carroll
@johncarroll
Apr 26 2017 18:34
and people would complain that they have to go into wvw to get the wvw rewards
windwarrior
@windwarrior
Apr 26 2017 18:34
because parts of the community are gonna hate how it looks, part of the community think the process is no fun
Darrian
@rikkuness
Apr 26 2017 18:34
I did my first PvE raid the other night! I spend all my time in WvW
windwarrior
@windwarrior
Apr 26 2017 18:36
and the GW2 vocal minority is pretty hard on GW2 development
Eearslya Sleiarion
@Eearslya
Apr 26 2017 18:37
I remember last night someone kept going from world boss to world boss, complaining about the changes
"why did they change shatterer, it was fine as it was" lol no it was not
Archomeda
@Archomeda
Apr 26 2017 18:37
people complain for the sake of complaining
Darrian
@rikkuness
Apr 26 2017 18:38
WE FEAR CHANGE
Eearslya Sleiarion
@Eearslya
Apr 26 2017 18:38
he was complaining that he shouldn't die at a world boss
windwarrior
@windwarrior
Apr 26 2017 18:38
honestly ; GW2 is a great game, and the better the game, the more people like to point out what could have been even better
I like to call it the 95% effect, if a train is on time 95% of the instances people will complain relatively more then if its on time only 60% of the cases.
John Carroll
@johncarroll
Apr 26 2017 18:42
you haven't had to deal with Southern Rail
they're probably at 60% and get all the news
latest news articles were 12 hours ago. it's been going on for a year
windwarrior
@windwarrior
Apr 26 2017 18:48
well the dutch railway has 95% and is all over the news too
Werdes
@werdes
Apr 26 2017 19:54
like anyone in wvw would care if a legendary backpiece was poorly implemented. most of us just want it implemented in any way. just make it 20k badges + 5k proofs of heroics + precursor + some t6 mats, people just don't want to leave wvw (or even worse, play pve). remember elite spec unlocks? people complained until that proof-of-heroics-unlock-maguuma-masterypoints-item was introduced. never leave your safe spaces i guess
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
Apr 26 2017 19:54
¯\_(ツ)_/¯
windwarrior
@windwarrior
Apr 26 2017 20:18
yeah but that is not what anet tries to do with their game :P
"legendary backpack straps"
Pat Cavit
@tivac
Apr 26 2017 21:12
anybody w/ customers or end-users will get complaints
humans are entitled buttheads most of the time
you just learn to try and filter the noise from the actually useful feedback
Archomeda
@Archomeda
Apr 26 2017 21:18
heh, basically every person that says "<name> should add/include/make/etc", i'm already ignoring it :D
darthmaim
@darthmaim
Apr 26 2017 21:19
but the wvw community demands it!
Archomeda
@Archomeda
Apr 26 2017 21:19
that word should is just annoying me, it's like demanding stuff
Darqam
@Darqam
Apr 26 2017 21:19
I want something removed, do I still count?
yes
Darqam
@Darqam
Apr 26 2017 21:19
:(
it's okay we still love you despite your flaws
Darqam
@Darqam
Apr 26 2017 21:21
it's something
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
Apr 26 2017 21:21
¯\_(ツ)_/¯
Darqam
@Darqam
Apr 26 2017 21:22
nowplzremovetimecaponprovisonerplz
Archomeda
@Archomeda
Apr 26 2017 21:23
thereisactuallyanitemthatyoucanspamonaprovisionervendorthatdoesnothaveacap
Darqam
@Darqam
Apr 26 2017 21:24
they fixed that a long time ago though.... unless there is a new bug...
Archomeda
@Archomeda
Apr 26 2017 21:24
according to some people it still exists
Darqam
@Darqam
Apr 26 2017 21:25
hmmmmmmmm
Archomeda
@Archomeda
Apr 26 2017 21:25
but that rare item is like 3g+ direct buy on tp lol
David Reeß
@queicherius
Apr 26 2017 21:25
for me its "have to" > "should" (in terms of annoyingness), but someone that starts out like that is most likely gonna be put on the sidelane.
Darqam
@Darqam
Apr 26 2017 21:25
hmmmmm
"I would prefer it if...."
Archomeda
@Archomeda
Apr 26 2017 21:26
yeah fair
it also heavily depends on the context that it's used in
darthmaim
@darthmaim
Apr 26 2017 21:29

just pasting this again because its too funny:

Dear API Devs,

On Behalf of the World Vs World Community we are requesting the WvW part of the API back. The health of the community depends on these services. I understand that it is broken or parts of it are broken. However it is imperative that sites such as mos.millenium.org/na/matchups/ and https://wvwintel.com/ are working even if nothing else works. Please hurry with up with it we need it.

Archomeda
@Archomeda
Apr 26 2017 21:29
ah right... that one
lmao yeah
Darqam
@Darqam
Apr 26 2017 21:29
good times
Archomeda
@Archomeda
Apr 26 2017 21:30
just for that person alone, i would just create a static page for all wvw worlds during api downtime
that shows 0 points for all worlds
:P
Darqam
@Darqam
Apr 26 2017 21:30
nah, show everything flipped to red, no matter what server it is
Archomeda
@Archomeda
Apr 26 2017 21:31
or just 0:inf on K:D ratio for his server
no wait, randomize captured objectives
Darqam
@Darqam
Apr 26 2017 21:33
^
yes
and flip them BEFORE RI is over
I'm gonna leave general mischief to you application developers
seealso: YB objectives displaying as arrow carts on wvwintel
Darqam
@Darqam
Apr 26 2017 21:45
templates would be purdy
David Reeß
@queicherius
Apr 26 2017 22:49
@lye sab(112), sab back to school(202) and sab tribulation(260), together 574 points, achievements disappeared from the API (ingame they are still under historical)
;_;
were those achievements, categories, or groups?
David Reeß
@queicherius
Apr 26 2017 22:57
The category and achievements exist, but the categories are not in the group's category array
(I hope that made sense)
                // If this is a timespan group, gate it to only show up
                // within the specified timespan.
                if (NULL != val->groupDefTimespan && NULL != val->timespan) {
                    if (NowWithinTimespan(*val->timespan)) {
                        WriteJsonReadyInt(out, "Id", val->dataId);
                    }
                }
hwhelp
I'll have that fixed in a month ;_;
Eearslya Sleiarion
@Eearslya
Apr 26 2017 23:03
NULL != val->groupDefTimespan
Eearslya @Eearslya shudder
David Reeß
@queicherius
Apr 26 2017 23:10
That already looks like fun. D:
@Eearslya what, you don't like my yoda conditionals?
Eearslya Sleiarion
@Eearslya
Apr 26 2017 23:19
Not, do I.
Pat Cavit
@tivac
Apr 26 2017 23:20
Seconded
but it's C++ so I can't tell him to stop it there
:>
Eearslya Sleiarion
@Eearslya
Apr 26 2017 23:20
do it anyway
anyway, it do
Pat Cavit
@tivac
Apr 26 2017 23:20
C++ is nonsense anyways so ¯\_(ツ)_/¯
Eearslya Sleiarion
@Eearslya
Apr 26 2017 23:21
hey woah let's not get carried away
I mean he's not wrong
Jonathan Andrist
@rwfrk_twitter
Apr 26 2017 23:21
As for the SAB achivements. I thought it did that every single time they turned SAB on and off? I've always had to look it up in between
two reasons to use yoda conditionals in C++
  • To ferret out poorly-written operator==
  • To explicitly not use operator bool
especially when working with non-pointer classes that provide implicit conversion to pointers but no bool IsEmpty() const method
@rwfrk_twitter the turning on/off is a new thing; previously the achievement categories were just wholly added/removed by game patches
I didn't consider the behavior for after the timespan is up, unfortunately.