These are chat archives for arenanet/api-cdi

19th
Jun 2017
Michael Dougall
@madou
Jun 19 2017 01:58
heh
Darqam
@Darqam
Jun 19 2017 02:17
Lye, there's no chance of a "this item can be deleted since it only serves use for a collection" flag... right?
Darrian
@rikkuness
Jun 19 2017 11:55
reply to the thread and suggest it might start working if they donate to @queicherius ' Patreon ;)
BoyC
@BoyC
Jun 19 2017 15:43
Any news on when the delivery endpoint might be back up again? Or will this take a while?
David Reeß
@queicherius
Jun 19 2017 16:58
@darthmaim @ChieftainAlex EVERY TIME I GO ON HOLIDAY
@Darqam there's no way to tell that it's only for a collection, unfortunately
@BoyC earliest is like 3 weeks
David Reeß
@queicherius
Jun 19 2017 16:59

Ok so here is what happened, in case you were wondering:

1) We went on holiday :fire:
2) The commerce/delivery api got disabled
3) All backend crawling throws errors since they try to grab the contents, and my error wrapping didnt work as I thought it would
4) The error logs of these failures are persisted in one of the DBs (redis) because thats what the library authors implemented even tho its stupid
5) The DB fell over from having 50 million keys
6) The internal API fell over because no DB :(

I was stupid and implemented it in a network-unfriendly manner, so it breaks stuff as-is
oops, sorry @queicherius ;_;
David Reeß
@queicherius
Jun 19 2017 17:02
All good, I should have learned my lesson to take my laptop from the last 3 holidays where stuff broke
I just thought "not gonna take it so I don't have the temptation to do work"
Is it just me or is gitter acting super wonky for anyone else
David Reeß
@queicherius
Jun 19 2017 17:31
+1 here, i thought it was just my net
gonna make my own chatroom with quaggans and mead
ChieftainAlex
@ChieftainAlex
Jun 19 2017 17:37
okay this blows, gitter tells me I have a message but all my chat windows are blank.
yeah
I closed the gitter window, then re-opened it, and it started working again
ChieftainAlex
@ChieftainAlex
Jun 19 2017 17:38
posting a message fixed the main chat block.. tracker on the right is still blank. I'll give that a go thanks.
odd, it loads, then it blanks it
Darqam
@Darqam
Jun 19 2017 17:39
gitter just logged me out sooo.....
like I was scrolling through the window and boom login plz
ChieftainAlex
@ChieftainAlex
Jun 19 2017 17:40
gitter: xml parsing error
...basically we have a user viewing the api-cdi called bobby drop tables
lul
BoyC
@BoyC
Jun 19 2017 17:41
@lye thanks, looking forward to it. Good thing I waited with the overlay release :D
ChieftainAlex
@ChieftainAlex
Jun 19 2017 17:41
aka gitter is behaving as excellently as normal..
ChieftainAlex
@ChieftainAlex
Jun 19 2017 18:07
@lye, any chance you could look up achievement 2381 for me?
yeah sec
ChieftainAlex
@ChieftainAlex
Jun 19 2017 18:11
a guy on a wiki talk page posted a bunch of achievements that have mastery points
wondering if it was an unreleased one.. he's definitely a dat miner :>
"name": "((626352))",
ChieftainAlex
@ChieftainAlex
Jun 19 2017 18:17
yeah okay that answers it
It does reward a mastery point
Does anyone have mastery point id 24?
ChieftainAlex
@ChieftainAlex
Jun 19 2017 18:17
yeah this guy is a magician when it comes to doing stuff..
Archomeda
@Archomeda
Jun 19 2017 18:17
how do i check that?
/v2/account/mastery/points
Archomeda
@Archomeda
Jun 19 2017 18:18
/v2/account/mastery/points [a] oh
Archomeda
@Archomeda
Jun 19 2017 18:18
not me
is that achievement related to the weird mastery point that is awarded by completing that event in verdant brink?
but not hooked up properly since it's rewarded by a script instead? :/
ChieftainAlex
@ChieftainAlex
Jun 19 2017 18:19
no, that's 126
Archomeda
@Archomeda
Jun 19 2017 18:20
hm
nvm
Darqam
@Darqam
Jun 19 2017 18:20
I have 23 and 25, but not 24
ugh I don't have content sync'd
ChieftainAlex
@ChieftainAlex
Jun 19 2017 18:20
the missing ones in auric basin make it look like there was another adventure planned
I'm gonna punt on this unless you find someone who has it >_>
ChieftainAlex
@ChieftainAlex
Jun 19 2017 18:21
it's okay, I appreciate that you looked.
Darqam
@Darqam
Jun 19 2017 18:21
no idea what you would get it from?
not a clue
Archomeda
@Archomeda
Jun 19 2017 18:22
there's more with achievement ids without data in your list @ChieftainAlex
ChieftainAlex
@ChieftainAlex
Jun 19 2017 18:22
list is all from the same guy though
so bound to be unimplemented
Archomeda
@Archomeda
Jun 19 2017 18:23
achievements 2136, 2137, 2138, 2139, 2141, 2506 :(
"requirement": "Complete all events in this outpost during the beta weekend.",
"requirement": "Complete one of these events during the beta weekend.",
2506 is "Legendary Weaponcrafter"
is that actually an achievement
Archomeda
@Archomeda
Jun 19 2017 18:26
eh, there's an achievement to account bind 5 legendary weapons / backpieces
but probably not the same :D
this one only requires 1
guessing it got cut or something
also it rewards a mastery point what
Archomeda
@Archomeda
Jun 19 2017 18:26
2506 seems like it got added quite late
JC123
@JC123
Jun 19 2017 18:28
looks like it also has a title
yeah it does
Archomeda
@Archomeda
Jun 19 2017 18:28
:O
the title is not exciting
JC123
@JC123
Jun 19 2017 18:28
"The Artisan"
^
wouldn't you rather be a Grandmaster Artisan?
Archomeda
@Archomeda
Jun 19 2017 18:29
heh, wonder why that got cut
just like the beta revenant weapons
hehe
Darqam
@Darqam
Jun 19 2017 18:30
but those weren't cut, they were "lost" :p
ChieftainAlex
@ChieftainAlex
Jun 19 2017 18:31
lost as in, still have animations and skins >.
Darqam
@Darqam
Jun 19 2017 18:31
I still find it amusing every now and again someone comes up and goes "I FIND THE WEAPONS! They are files XXXXXXX in the dat file. Now we can get them IG right?"
Archomeda
@Archomeda
Jun 19 2017 18:31
heh yeah :P
maybe the source files got lost if they are not checked in in p4
anything in the .dat file is in p4
we are not savages
Darqam
@Darqam
Jun 19 2017 18:32
idk about that
Archomeda
@Archomeda
Jun 19 2017 18:32
dat = compiled right? not source?
like as in, source design files
the dat is just an archive of files; you can throw anything in it
when the build server does a build, it checks out p4 latest, then effectively does a diff between the last-built dat and the new one to generate a patch
ChieftainAlex
@ChieftainAlex
Jun 19 2017 18:33
so you could you get the files out of the archive?
in original condition
depends on the file
the tool that constructs the dat has hundreds of rules to preprocess files before insertion
ChieftainAlex
@ChieftainAlex
Jun 19 2017 18:34
removes weapon glitter*
fair enough
everything from "change paths around" to "remove strings" and "if this image has more than one mipmap level resize it to 300x200"
the point is that if the weapons are in the dat they were in p4 at one point and should be retrievable from there >_>
Archomeda
@Archomeda
Jun 19 2017 18:45
wow
i'm sure no one dares to touch those rules
pretty much
Archomeda
@Archomeda
Jun 19 2017 19:37
omg haha, padl is showing major dps on my druid :P
i'm Arrax :P
in case that wasn't clear :laughing:
reported for carrying
I'm assuming that's a bug in padl though
those numbers are ... too high
Archomeda
@Archomeda
Jun 19 2017 19:38
yeah... especially on a healing druid haha
arcdps shows the correct dps ingame
Edgar Doiron
@Coffee4cr
Jun 19 2017 19:38
yeah my friend was hitting 125k on his condi ele
with padl
Archomeda
@Archomeda
Jun 19 2017 19:38
so i assume it's either the arcdps logs, or padl parsing
Edgar Doiron
@Coffee4cr
Jun 19 2017 19:39
the funny thing is
like his DPS was fine on another arcdps log
and everyone else was fine on his
Archomeda
@Archomeda
Jun 19 2017 19:54
yeah, padl is broken
raidheroes parses it correctly
but i still want it on a website :sob:
or a linux build so i can integrate it with my discord bot
smiley
@codemasher
Jun 19 2017 20:00
@darthmaim does this still work? (are the subdomains still valid?)
    icon: function(signature, file_id, size) {
        size = size || 64;
        var subdomains = ['callisto', 'europa', 'ganymede', 'io', 'titan', 'triton'];

        return 'https://' + subdomains[file_id % subdomains.length] + '.darthmaim-cdn.de/gw2treasures/icons/' +
            signature + '/' + file_id + '-' + size + 'px.png';
    },
ChieftainAlex
@ChieftainAlex
Jun 19 2017 20:22
@Archomeda probably a dot or comma somewhere not being handled
did someone have a script that compared available floors, regions etc for maps for v2/continents vs v2/maps?
ChieftainAlex
@ChieftainAlex
Jun 19 2017 20:27
e.g. A vs B
smiley
@codemasher
Jun 19 2017 20:34
image.png
just found this again
ugh regions
smiley
@codemasher
Jun 19 2017 20:40
oh, good call! friendly reminder <3
image.png
what
(i'm pretty sure i've removed all hardcoded fixes)
continent_id=2|floor_id=3|region_id=7
smiley
@codemasher
Jun 19 2017 20:44
that's a call to .../map/[id], eh?
fetch(`${apiBase}/continents/${id}/floors?ids=all`)
smiley
@codemasher
Jun 19 2017 20:46
the above is the response i use in the wiki example
oh
use floor 1 instead
smiley
@codemasher
Jun 19 2017 20:47
ikr, but that was basically the point of one of my reported issues :D
fair
i have literally no idea wtf content is doing
it's probably hardcoded to use floor 1 in the mists
smiley
@codemasher
Jun 19 2017 20:48
if you call a map endpoint directly, there's no problem at all because each map has a map_rect
but in case of regions you'd have to use the continent_rect, which is a bit off in some cases
i could check the all the regions endpoints and see which ones error out, so maybe you can Hardcode(TM) these
darthmaim
@darthmaim
Jun 19 2017 20:53
@codemasher the subdomains still work, but since http/2 I'm not using them anymore
smiley
@codemasher
Jun 19 2017 20:54
ah, good to know <3
windwarrior
@windwarrior
Jun 19 2017 20:57
whats with anet not managing to put stuff on the floor
on VG my asura is floating
smiley
@codemasher
Jun 19 2017 20:57
@lye what about adding a region_rect which is the 4 outermost points of the contained maps + a margin of 10%?
windwarrior
@windwarrior
Jun 19 2017 20:57
on Cairn the chest is floating
smiley
@codemasher
Jun 19 2017 21:04
image.png
i love snipping tool :D
Darrian
@rikkuness
Jun 19 2017 21:41
PvP borked for anyone else?
ChieftainAlex
@ChieftainAlex
Jun 19 2017 22:25
well the cool news is that the number of maps&floor combinations in /continents is the same as in /maps
Just with 593 identical (correct) and 641 on different (incorrect) regions..
Archomeda
@Archomeda
Jun 19 2017 22:38
oh, you meant this?
NO GITTER
not sure if it compares everything though
ChieftainAlex
@ChieftainAlex
Jun 19 2017 22:39
Yes, thanks for making me write something similar though :D
Archomeda
@Archomeda
Jun 19 2017 22:40
sorry D:
ChieftainAlex
@ChieftainAlex
Jun 19 2017 22:40
maps must be a real crock of shit if lye has so much trouble pulling out legit numbers :/
Archomeda
@Archomeda
Jun 19 2017 22:41
i was raiding 😖
well, maybe if someone fills in that webdev spot at anet, they'll get to look at fixing /v2/maps
:P
Darqam
@Darqam
Jun 19 2017 22:52
doesn't every dev complain about how maps are built into the game?
ChieftainAlex
@ChieftainAlex
Jun 19 2017 22:56
since i expect it to be closed as impossible I thought I'd put all the stupid map bugs in one report.
smiley
@codemasher
Jun 19 2017 23:25

use floor 1 instead

@lye just noticed that floor1 has the same borked continent_rect

smiley
@codemasher
Jun 19 2017 23:31
anyway, somethinglike this for region_rect
$r = $request->fetch(new URL('https://api.guildwars2.com/v2/continents/2/floors/3/regions/7'));

$map_rects = array_column($r->json_array['maps'], 'continent_rect');

$x_min = $y_min = $x_max = $y_max = null;

foreach($map_rects as $map_rect){
    $x_min = min($x_min ?? $map_rect[0][0], $map_rect[0][0]);
    $y_min = min($y_min ?? $map_rect[0][1], $map_rect[0][1]);
    $x_max = max($x_max ?? $map_rect[1][0], $map_rect[1][0]);
    $y_max = max($y_max ?? $map_rect[1][1], $map_rect[1][1]);
}

$margin_x = (int)round(($x_max-$x_min) / 10);
$margin_y = (int)round(($y_max-$y_min) / 10);

var_dump([[$x_min-$margin_x, $y_min-$margin_y], [$x_max+$margin_x, $y_max+$margin_y]]);
array(2) {
  [0] =>
  array(2) {
    [0] =>
    int(4657)
    [1] =>
    int(7704)
  }
  [1] =>
  array(2) {
    [0] =>
    int(16331)
    [1] =>
    int(16612)
  }
}