These are chat archives for arenanet/api-cdi

4th
Dec 2017
ChieftainAlex
@ChieftainAlex
Dec 04 2017 00:15
also jesus I thought this was just my graphics card dying.. extremely-frustrating-freezes-and-crashing
Quaggan BooOOoot
@QuagganBooOOoot
Dec 04 2017 00:15

Extremely Frustrating Freezes and Crashing
by Ganpot.3879 in Account & Technical Support

This started around the Halloween update (maybe a bit earlier, it's hard to remember exactly) and has been an unrelenting pain ever since. The game will freeze up out of nowhere, stay frozen for a good couple of minutes, then disconnect me. I have lost a ton of progress thanks to this (mostly in fractals, but also story missions and when soloing in the open world). At first I assumed the GW2 servers were having some temporary difficulties due to an update, so I tried being patient and waiting for the issue to be resolved. But at this point it has been weeks, and the issue has not abated whatsoever. I am crashing at least once every couple of hours (more like once every 30 minutes in fractals), and it is completely killing my desire to play the game. What the heck is going on?!

Archomeda
@Archomeda
Dec 04 2017 01:19
did you install the windows fall creators update?
there's a lot of issues with that update
ChieftainAlex
@ChieftainAlex
Dec 04 2017 09:39
You're right... I did install the creator update last Thursday - but I installed it to try to remedy the increased number of crashes I've been getting from mid-nov onwards. (the type of crash where gw2 retains focus but your other applications, e.g. music,keeps working - I did find a workaround is to Windows+Tab > create new virtual desktop > bring up task manager in desktop 2 > kill gw2.exe)
Enno G.
@SchoolGuy
Dec 04 2017 09:40
Windows Aniversary Update Crashed my Display Driver so my Laptop cannot use external Displays anymore
ChieftainAlex
@ChieftainAlex
Dec 04 2017 10:01
I've been on some beta AMD radeon drivers for a while (also to avoid some gw2 display issues), took the opportunity to update them too
Werdes
@werdes
Dec 04 2017 10:03
fall update caused my notebook to leave the screen black for 20min initially while updating. caused some minor heart attacks, as there was a 1500€ laptop standing in front of me, black screen, but running and with keyboard backlighting turned on :confused:
smiley
@codemasher
Dec 04 2017 13:12
182293
is the number of values in /v2/continents/1/floors/1
<?php

$array = json_decode(file_get_contents('https://api.guildwars2.com/v2/continents/1/floors/1'));
$iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($array), RecursiveIteratorIterator::SELF_FIRST);

$paths = [];
$values = [];

foreach ($iterator as $key => $value) {
    $path = [];
    foreach (range(0, $iterator->getDepth()) as $depth) {
        $path[] = $iterator->getSubIterator($depth)->key();
    }
    $paths[]  = join('.', $path);
    $values[] = $value;
}


print_r($paths);
#print_r(array_combine($paths, $values));
so easy and yet so sick - why have i never tried this before?
Enno G.
@SchoolGuy
Dec 04 2017 13:19
Language?
darthmaim
@darthmaim
Dec 04 2017 13:20
thats php
smiley
@codemasher
Dec 04 2017 13:22
BAM! recursive search
foreach ($iterator as $key => $value) {
    $path = [];
    foreach (range(0, $iterator->getDepth()) as $depth) {
        $path[] = $iterator->getSubIterator($depth)->key();
    }

    if(join('.', $path) === $search){
        return $value;
    }

}
smiley
@codemasher
Dec 04 2017 13:37
oh, speaking of php - 7.2 is now released and brings strong crypto! http://php.net/archive/2017.php#id2017-11-30-1
(aka. ext-libsodium is now part of php)
ChieftainAlex
@ChieftainAlex
Dec 04 2017 20:08
"don't edit these lines, they were produced by MS form designer"... after editing said lines
ah so if I move stuff around on the form it removes any comments I've left myself ^^ neat
Eearslya Sleiarion
@Eearslya
Dec 04 2017 20:34
@Coffee4cr gasp, you stole one of my points
ChieftainAlex
@ChieftainAlex
Dec 04 2017 20:35
@Archomeda thanks for sharing your mumble link reader all those months ago, I've been playing with it in CS...
Untitled.jpg
Archomeda
@Archomeda
Dec 04 2017 20:50
ah sure np :D
ChieftainAlex
@ChieftainAlex
Dec 04 2017 20:51
and yeah deleting bits doesn't require any knowledge.. learning though :)
Edgar Doiron
@Coffee4cr
Dec 04 2017 20:51
@Eearslya sorry? I still need to do day 3 :(
Archomeda
@Archomeda
Dec 04 2017 20:51
just try improving that code, it's a mess :')
i think it's a vs2010 solution?
or vs2012? can't remember
Eearslya Sleiarion
@Eearslya
Dec 04 2017 20:52
@Coffee4cr XD Yeah, day 3 was..fun.
Archomeda
@Archomeda
Dec 04 2017 20:52
vs2012 was a no-go for me, so i assume it's vs2010 seeing that i wrote it 3-4 years ago i think
ChieftainAlex
@ChieftainAlex
Dec 04 2017 20:54
I don't know what any of this is ^^. It did prompt me when I first opened it to use some old .NET version or use a modern one.. I chose the one i had installed
darthmaim
@darthmaim
Dec 04 2017 21:01
didn't have time for the last 2 days yet
Guess I have 3 to do tomorrow
Eearslya Sleiarion
@Eearslya
Dec 04 2017 21:06
my day 3 solution is a bit...blunt, but it works
ChieftainAlex
@ChieftainAlex
Dec 04 2017 21:07
is there a way of producing a single output runnable file from VS instead of a /bin/Release folder full of things?
darthmaim
@darthmaim
Dec 04 2017 21:07
just the .exe is enough
the .pdb are to debug it
there shouldn't be anything else in there?
ChieftainAlex
@ChieftainAlex
Dec 04 2017 21:07
image.png
obviously can delete the code analysis bit
guessing the json bits are to interpret the API downloads
darthmaim
@darthmaim
Dec 04 2017 21:08
the .exe + .dll should be enough
Archomeda
@Archomeda
Dec 04 2017 21:09
^
darthmaim
@darthmaim
Dec 04 2017 21:09
I think you can configure something in the release settings to include dlls if I'm not mistaken
Archomeda
@Archomeda
Dec 04 2017 21:09
they will get regenerated though every time unless you change a config
darthmaim
@darthmaim
Dec 04 2017 21:09
Last time I used C#/Visual Studio was 5+ years ago, so not sure what changed
Archomeda
@Archomeda
Dec 04 2017 21:09
the json dll is downloaded automatically from nuget
i don't think there's a way to embed dlls in the exe in vs
you can do that manually though
through third party software if i'm not mistaken
ChieftainAlex
@ChieftainAlex
Dec 04 2017 21:10
that's alright, I wondered if I could make an idiot-proof tool to capture the coordinates for the wiki
like literally no information that isn't needed :P
Archomeda
@Archomeda
Dec 04 2017 21:11
but the files that are not the .exe or the .dll you don't need
you don't need the .vshost.exe either
ChieftainAlex
@ChieftainAlex
Dec 04 2017 21:14
alright copied them to another folder, opened the application without issues cheers <3
it didn't generate the other files either.
Archomeda
@Archomeda
Dec 04 2017 21:35
hm
might be vs2010 then
i mean, they might have changed it in those 7 years between vs2010 and vs2017
ChieftainAlex
@ChieftainAlex
Dec 04 2017 21:46
unlikely, probably added a ribbon and some new shiny titles
and a new number
Archomeda
@Archomeda
Dec 04 2017 21:47
lol
there are a lot of new c# features in those 7 years
darthmaim
@darthmaim
Dec 04 2017 21:48
wait, 2010 was 7 years ago :O
Archomeda
@Archomeda
Dec 04 2017 21:48
yes
darthmaim
@darthmaim
Dec 04 2017 21:48
then it has been even longer since I last used c#
Archomeda
@Archomeda
Dec 04 2017 21:48
also, i'm not sure, but is the mumble link reader using /v2 or still /v1? :P
i guess the latter one
darthmaim
@darthmaim
Dec 04 2017 21:49
I still have visual studio 2008 installed
thats almost 10 years :O
time flies
Archomeda
@Archomeda
Dec 04 2017 21:51
:D
i have used vs2008, vs2010, vs2012, vs2013, vs2015 and vs2017
vs2012 was crap
image.png
my folders in my documents D: