These are chat archives for arenanet/api-cdi

23rd
Oct 2017
Archomeda
@Archomeda
Oct 23 2017 01:02
okay, for fun (and partly out of frustration because of how addons require chainloading), i was trying to work on a global addon loader; one that is the main d3d9.dll and loads all addon dlls from a separate folder
but since i've never actually done anything before with d3d9 intercepting, i'm confused as to why gw2 crashes on the download screen, saying that coherent failed to load when i supply my own compiled d3d9 :/
smiley
@codemasher
Oct 23 2017 06:23
am i doing this right?
print_r(explode("\r\n", explode("\r\n\r\n", explode("API:\r\n",  file_get_contents('https://api.guildwars2.com/v2'), 2)[1])[0]));
smiley
@codemasher
Oct 23 2017 07:28
omg lye
 * @method mixed continents(array $params = ['lang'])
 * @method mixed continentsContinentId(string $continent_id, array $params = ['lang'])
 * @method mixed continentsContinentIdFloors(string $continent_id, array $params = ['lang'])
 * @method mixed continentsContinentIdFloorsFloorId(string $continent_id, string $floor_id, array $params = ['lang'])
 * @method mixed continentsContinentIdFloorsFloorIdRegions(string $continent_id, string $floor_id, array $params = ['lang'])
 * @method mixed continentsContinentIdFloorsFloorIdRegionsRegionId(string $continent_id, string $floor_id, string $region_id, array $params = ['lang'])
 * @method mixed continentsContinentIdFloorsFloorIdRegionsRegionIdMaps(string $continent_id, string $floor_id, string $region_id, array $params = ['lang'])
 * @method mixed continentsContinentIdFloorsFloorIdRegionsRegionIdMapsMapId(string $continent_id, string $floor_id, string $region_id, string $map_id, array $params = ['lang'])
what about splitting these into 4 separate endpoints like
/v2/continents/:id
/v2/floors/:id
/v2/regions/:id
/v2/maps/:id
smiley
@codemasher
Oct 23 2017 07:38
/v2/floors?ids=1,2
/v2/maps?ids=15&lang=de&format=geojson&floors=-1,3
/v2/maps/15/vistas
/v2/maps/15/poi
/v2/maps/15/events
...
smiley
@codemasher
Oct 23 2017 07:44
browsing the floors by map_id just makes so much more sense than the current way
image.png
image.png
image.png
smiley
@codemasher
Oct 23 2017 07:50
so this would be the result for /v2/maps/76/floors?ids=all (-4,4,5)
image.png
darthmaim
@darthmaim
Oct 23 2017 09:10
@codemasher you know about https://api.guildwars2.com/v2.json ?
smiley
@codemasher
Oct 23 2017 09:11
not even @lye knows :point_up: 20. Oktober 2017 20:23
thanks, that saved me a bit xD
smiley
@codemasher
Oct 23 2017 12:21
if only there was a way to retrieve the gw2 api access tokens in a convenient and secure manner...
codemasher @codemasher hides
Archomeda
@Archomeda
Oct 23 2017 14:13
oh... i'm stupid
the problem why the dll i created was crashing coherent... was because i actually didn't let the linker use the .def file
so no functions were exported at all... gg me
Archomeda
@Archomeda
Oct 23 2017 15:30
woop
it somehow works
image.png
seriously, who designed directx 9 -_-
wait, i probably do not want to have a memory leak by not cleaning up stuff... ehh
windwarrior
@windwarrior
Oct 23 2017 16:22
microsoft
pretty sure

anyone any idea when [the color endpoints] are up again?

@SchoolGuy I just turned 'em back on. Thanks for the reminder.

Enno G.
@SchoolGuy
Oct 23 2017 17:26
You are the best 👍
ChieftainAlex
@ChieftainAlex
Oct 23 2017 18:41
is there a neat way of getting the output of v2/continents/...subendpoints to always return the same structure even if you've asked for more sub-levels?
probably not
ChieftainAlex
@ChieftainAlex
Oct 23 2017 18:41
I'm thinking if i wanted to standardize my garbage that's where i'd start.
currently i end up stating var continents = [result from continents/1, result from continents/2]
ChieftainAlex
@ChieftainAlex
Oct 23 2017 19:06
alright what have i accidentally clicked to prevent gw2efficiency from searching my characters inventories
Eearslya Sleiarion
@Eearslya
Oct 23 2017 19:08
define prevent
smiley
@codemasher
Oct 23 2017 19:09
"delete token"
ChieftainAlex
@ChieftainAlex
Oct 23 2017 20:33
went away for a bit, come back and everything is fine.
api glitch /shrug
:fire: commerce endpoints are probably going to be down from 3-7PM PST today :fire:
smiley
@codemasher
Oct 23 2017 21:35
@lye any thoughts on this? :point_up: 23. Oktober 2017 09:28
Archomeda
@Archomeda
Oct 23 2017 21:35
that's... a specific time
@codemasher I don't have any time to make changes at this point
@Archomeda hardware maintenance window
smiley
@codemasher
Oct 23 2017 21:35
thoughts != changes :D
fair. I don't like how /v2/continents is structured; I think it should have been broken out into separate endpoints like you described
Archomeda
@Archomeda
Oct 23 2017 21:36
ah, does that affect the tp itself too?
uhhhhhhh maybe but don't tell anyone because it's not my role to announce things
smiley
@codemasher
Oct 23 2017 21:37
it's funny when you have all the data in a structured table and see how it is supposed to work
Archomeda
@Archomeda
Oct 23 2017 21:37
isn't 3 PM PST like in 30 minutes?
yeah
Archomeda
@Archomeda
Oct 23 2017 21:37
hmm, probably not then, otherwise it would've been announced already
wait
Quaggan BooOOoot
@QuagganBooOOoot
Oct 23 2017 21:38

Black Lion Trading Company Maintenance: October 23, 2017
by (ArenaNet) Gaile Gray.6029 in News and Announcements

The Black Lion Trading Company will be undergoing maintenance on Monday, October 23, 2017, starting at 3:00 PM Pacific Time and ending at approximately 4:00 PM Pacific Time. During the maintenance, you will be unable to use the Black Lion Trading Company for purchases, trades, or currency exchanges. BLTC service will resume as soon as the maintenance period ends.

Archomeda
@Archomeda
Oct 23 2017 21:38
was posted 3 days ago
ah okay it did get announced
yeah the TP is going to be down for a bit
XD
Archomeda
@Archomeda
Oct 23 2017 21:39
it's just that it's 3 days ago that i couldn't remember haha