These are chat archives for arenanet/api-cdi

17th
Oct 2017
smiley
@codemasher
Oct 17 2017 16:52
also, the goldsellers have caused that armbrace prices quadrupled
which is good for DoA players but not the average one who just needs the one or other torment weapon in their HoM
Werdes
@werdes
Oct 17 2017 16:56
damn, yolomouse no longer works :worried:
oh wait, the version i used was 2 years old. newest works. phew
windwarrior
@windwarrior
Oct 17 2017 17:02
I like how we can now have double the inventory compared to pre-PoF
320 slots total for uhh
2.3k gold ish
And 2k gems
ChieftainAlex
@ChieftainAlex
Oct 17 2017 17:52
yay skill challenges have ids in the desert. Thanks @lye
pity i added the workaround widget code only yesterday :D
darthmaim
@darthmaim
Oct 17 2017 17:54
https://api.guildwars2.com/v2/achievements/daily is missing the halloween dailies in special
ChieftainAlex
@ChieftainAlex
Oct 17 2017 17:58
oh that's beautiful.. the challenge ids are sorted by the order you find them ingame
Archomeda
@Archomeda
Oct 17 2017 18:54
Has anyone confirmed that the new 2 bag slots do show up on the API?
i really hope they do
Enno G.
@SchoolGuy
Oct 17 2017 19:01
They do
Confirmed via gw2efficency from a guild member of mine
thanks :heart:
Enno G.
@SchoolGuy
Oct 17 2017 19:38
We have to thank you ❤
windwarrior
@windwarrior
Oct 17 2017 19:57
MAX_BAGSLOTS_NEVER_GONNA_CHANGE = 8
Edgar Doiron
@Coffee4cr
Oct 17 2017 20:10
lol
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:12
const final static unsigned int BAG_SLOTS = 8;
pls no java
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:13
hey, those are all valid C++ keywords, too
what does final mean in C++?
interesting.
It doesn't look like it's applicable to a member variable -- only class declarations and member functions.
I might be misreading, it is C++ after all
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:17
looks like it, yeah
if I'm reading it right, it's to stop overrides
windwarrior
@windwarrior
Oct 17 2017 20:17
basically the same as in java
it says virtual function tho
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:19
yeah I'm..a little confused
in java it makes more sense since everything is basically virtual by default
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:20
oh wait
ohhhh, I get it
in C++ if you forget the overrides keyword when overriding a final method it won't generate an error
Archomeda
@Archomeda
Oct 17 2017 20:20
in .NET you have to specify it to be virtual
so yay
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:20
so, you don't declare the virtual as final, you basically write as many overrides as you want, and cut off the end of the chain there
huh
windwarrior
@windwarrior
Oct 17 2017 20:20
I am more confused about virtual tho :')
Archomeda
@Archomeda
Oct 17 2017 20:20
there's also sealed
e.g.
class Foo {
    virtual void bar() final;
}
class Bar : Foo {
    void bar(); // ok
}
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:20
@windwarrior it's like interfaces
I might be mis-remembering the semantics of sealed but it seems like final in C++ applied to a class declaration behaves the same way
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:21
it basically says "any derivative class must implement this function"
windwarrior
@windwarrior
Oct 17 2017 20:21
right, but if its virtual AND final it can only be implemented once?
Archomeda
@Archomeda
Oct 17 2017 20:21
eh, i dunno; i only know that sealed is something .NET
@windwarrior yeah
Archomeda
@Archomeda
Oct 17 2017 20:21
well, C#
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:21
it can't be virtual and final at the same time though
final only makes sense if it's virtual tho
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:21
right
but
windwarrior
@windwarrior
Oct 17 2017 20:22
you guys are giving conflicting statements
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:22
you put final on the implementation of the function, not the virtual declaration
windwarrior
@windwarrior
Oct 17 2017 20:22
cant be, only makes sense if
okay, let me amend my snippet
class IFoo {
    virtual void bar() = 0;
};
class Foo : IFoo {
    void bar() final;
};
class Bar : Foo {
    void bar() override; // error
    void bar(); // okay
};
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:23
struct Base {
    virtual void foo();
};
struct A : Base {
    void foo() final; // A::foo is overridden and it is the final override
}
struct B : A {
    void foo(); // Compilation error: foo is final
}
pretty sure your B::foo declaration there is fine, since it doesn't use the override keyword
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:24
I'm looking at the example in that article
oh.
windwarrior
@windwarrior
Oct 17 2017 20:24
riiigh makes sense, virtual is like abstract in Java ^^
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:24
YES, abstract
I forgot the word for it
nah abstract implies there's no impl
you're thinking of a pure virtual function in C++, which is declared with = 0
virtual just means that this function uses dynamic dispatch
Archomeda
@Archomeda
Oct 17 2017 20:25
(does anyone have mad king's pumpkin icon at hand by any chance?)
windwarrior
@windwarrior
Oct 17 2017 20:26
my C++ is very bad tho :P, so I am not too weirded out that I am confused
my C++ is probably worse than yours lul
windwarrior
@windwarrior
Oct 17 2017 20:26
well you at least know C
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:27
C is dead simple though
syntax-wise
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:28
The hardest thing people usually have trouble with in C is pointers and references
not variadic templates and move semantics?
(oh, C, I saw "references" and assumed you meant C++)
(C doesn't even have references XD)
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:29
Er..what?
there's no reference type
only pointers
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:29
right but
&
that's the address-of operator
it's not a valid type modifier
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:30
address-of, reference, bah
I was taught it as 'reference'
it's confusing because C++ has references which are distinct types, e.g. Foo& vs. Foo*
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:30
weird
they're basically constant pointers that use non-pointer syntax
and they're supposed to be non-nullable
I think it's undefined behavior if you make a null reference
but yeah. C is da best.
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:32
Either way, C is one of the most robust, yet simple languages.. Even simpler if you're like @lye and do exclusively C99
BoyC
@BoyC
Oct 17 2017 20:32
weirdest thing in C is that it allows you to call a function with x parameters with k>x parameters
ran into some fun stuff with that when compiling Cairo for Emscripten
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:32
k>x?
BoyC
@BoyC
Oct 17 2017 20:33
say you have foo( int a, int b)
you can do
BoyC
@BoyC
Oct 17 2017 20:33
foo(5,6,4,6,7,8,3)
that's uhh
you need -Wall
windwarrior
@windwarrior
Oct 17 2017 20:33
you can do the same in Java, just need to be explicit about it
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:33
That really doesn't syntax error?
weird
windwarrior
@windwarrior
Oct 17 2017 20:33
public int max(int a, int... bs)
BoyC
@BoyC
Oct 17 2017 20:33
nope
Archomeda
@Archomeda
Oct 17 2017 20:33
oh man, the cursors have been updated
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:34
It'll definitely complain, at least
@windwarrior yeah varargs are a thing but they're part of the type
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:34
Does the compiler just throw away excess arguments?
e.g. it'd be void foo(...) rather than void foo(int, int)
BoyC
@BoyC
Oct 17 2017 20:34
now what emscripten does is that it buckets functions together by parameter count
and when Cairo called a 2 parameter function callback with 3 parameters... some completely random function was called :D
windwarrior
@windwarrior
Oct 17 2017 20:35
lets all thank printf for varargs tho :P
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:35
Can't you have 2 functions in C with the same name, but different param counts/types?
nope
I mean you can but depending on linkage weird things may happen
Archomeda
@Archomeda
Oct 17 2017 20:36
there goes my custom cursors for yolomouse :(
if they're defined static in the same source file -- no probs
if they're in different source files (or really -- different object files) you'll end up with a linker error
Archomeda
@Archomeda
Oct 17 2017 20:36
(also wtf has happened to the markdown rendering on github compared to 2 years ago?)
windwarrior
@windwarrior
Oct 17 2017 20:37
I think I have crashed my online repl
lol
did I recurse it do death
anyway, godbolt is giving me a compile error when using a non-varargs function as varargs
(using this as the varname to double-check that it's in C mode not C++)
windwarrior
@windwarrior
Oct 17 2017 20:41
yeah you got me so confused
self and this are forever reserved in my head
this is a valid identifier in C :D
super useful when writing object-oriented code in C
windwarrior
@windwarrior
Oct 17 2017 20:41
I to the day dont know why Python uses self
void class_method(class *this, int arg);
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:42
@lye is it because you have no main?
nope
remove the extra , this and it's fine
wish it emitted the warning text
oh it does down in the bottom if you click the /!\ symbol
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:42
eearslya@chimera ~ $ cat test.c
int sum(int a, int b) {
        return a + b;
}

int main(void) {
        sum(1, 2, 3);
}
eearslya@chimera ~ $ gcc test.c -o test
test.c: In function ‘main’:
test.c:6:2: error: too many arguments to functionsumsum(1, 2, 3);
  ^
test.c:1:5: note: declared here
 int sum(int a, int b) {
     ^
hm
wonder how anyone would get that to compile
if you omit the declaration of sum, it assumes it's an int(*)(int)
you'd have to explicitly declare sum as a varargs function, e.g. int sum(...)
(and use the stdarg bits in sum to pull the arguments off the stack)
windwarrior
@windwarrior
Oct 17 2017 20:48
I just ran of the first platform in the clock tower
this is gonna take a while
Eearslya Sleiarion
@Eearslya
Oct 17 2017 20:49
Hmm. Come to think of it, varargs are something I've never fully understood
TO THE INTERNET
...So ... is actually a reserved keyword in the compiler?
windwarrior
@windwarrior
Oct 17 2017 20:54
its not even a valid identifier
Archomeda
@Archomeda
Oct 17 2017 21:10
this is funny
image.png
never knew you could actually go down in AP :P
@lye, did you happen to fix the missing SAB achievements?
because it seems that the AP on gw2e are now correct
Archomeda
@Archomeda
Oct 17 2017 21:16
but it does seem that the festivals category is missing
@Archomeda nope
they were broken because content is wonky
guess someone fixed content :shrug:
Archomeda
@Archomeda
Oct 17 2017 21:17
yay
image.png
pushpayload
@pushpayload
Oct 17 2017 21:19
@lye since I see you're active at the moment, there are still some issues with stat-selectable trinkets that have stat-ids that appear to have not been updated properly since PoF, https://gitter.im/arenanet/api-cdi?at=59dcc15fbbbf9f1a384343fa , should I create an issue and try to find all the missing references or do you think it will be an easy fix?
Archomeda
@Archomeda
Oct 17 2017 21:19
#299 wasn't done right?
then it must be fixed, but i can't find the issue where the missing SAB achievements were mentioned
Archomeda
@Archomeda
Oct 17 2017 21:26
wait no, it's #544
but i think @queicherius fixed it in gw2e himself or something
definite possibility
Archomeda
@Archomeda
Oct 17 2017 21:29
oh well, at least the achievements themselves are still available in /v2/account/achievements
wait... gw2e doesn't keep track of achievement points statistics? D:
blegh
BoyC
@BoyC
Oct 17 2017 21:33
you guys know of any software that can migrate an os to an ssd? i tried a couple but they all need pre-boot access to the drives, and the source drive is some weird 64gig thingie integrated onto the mainboard (it's a chinese mini-pc) and they didn't see it
what's wrong with a linux livecd and dd if=/dev/original of=/dev/newssd bs=1m
to just clone the entire drive onto the new ssd
BoyC
@BoyC
Oct 17 2017 21:34
just goes to show that i'm a windows guy :D
Archomeda
@Archomeda
Oct 17 2017 21:35
eh, i think i managed to do it on a laptop, but ehm... it wasn't that easy
all manual
you could just remove the old HDD so the new SSD is the only drive, then install a fresh copy of windows on it
then plug the old HDD back in and copy over whatever
Archomeda
@Archomeda
Oct 17 2017 21:35
because once you copied everything to the ssd, you still can't boot on it... windows doesn't recognize the device
BoyC
@BoyC
Oct 17 2017 21:35
as i said, integrated onto the mainboard
oh lul
windwarrior
@windwarrior
Oct 17 2017 21:35
dd, the command that I will check a million times whether I did specify if and of correctly
BoyC
@BoyC
Oct 17 2017 21:36
it's some sub-par memory chip used as a hdd
which is why i bought the extension ssd for it :)
I've used that for a couple of HDD->SSD migrations before
It's free and pretty decent afaik
BoyC
@BoyC
Oct 17 2017 21:37
yep, first one i tried
didn't work :\
pushpayload
@pushpayload
Oct 17 2017 21:38
what didn't work?
if its the drive size you could probably shrink it first with something like gparted on a ubuntu live usb
it takes a while but gparted can shrink ntfs partitions while keeping the data intact
BoyC
@BoyC
Oct 17 2017 21:39
it needed to reboot (i'm guessing it loaded the clone tool into the boot sector), and after reboot it immediately said all done, but nothing happened
pushpayload
@pushpayload
Oct 17 2017 21:39
no it should be able to do it in windows
i've never had to reboot it for it to clone properly
BoyC
@BoyC
Oct 17 2017 21:40
hm i did use the migrate os functionality
let me check
windwarrior
@windwarrior
Oct 17 2017 21:41
hmm, UI crashes
not sure if arc dps
Assertion: removalIndex != (unsigned) -1 File: ..\..\..\Game\Ui\Widgets\HeroDialog\HdPaperDoll.cpp(5147)
BoyC
@BoyC
Oct 17 2017 21:41
says that one of these operations requires a reboot :\
@windwarrior don't preview weird things from strangers
windwarrior
@windwarrior
Oct 17 2017 21:42
I clicked on a tracked achievement in my HUD
huh, not sure why that would open the paper doll
windwarrior
@windwarrior
Oct 17 2017 21:42
whats a paper doll :p?
it's the character model used in the preview window
windwarrior
@windwarrior
Oct 17 2017 21:43
oh, maybe I opened the hero panel instead then
come to think of it, the previous crash I went to the mounts tab
gonna disable arc and see whether thats crashing it
Archomeda
@Archomeda
Oct 17 2017 21:45
lol
'paperdoll'
and not just a paper doll... it's an HD one
hd = hero dialog
Archomeda
@Archomeda
Oct 17 2017 21:45
o-oh
why did you destroy my fun :cry:
i am the devourer of jovilities
windwarrior
@windwarrior
Oct 17 2017 21:47
okay, crashes even without arc. Now lets try to make a minimal trace
Archomeda
@Archomeda
Oct 17 2017 21:47
what are you doing?
to make it crash
windwarrior
@windwarrior
Oct 17 2017 21:48
combinations of opening achievements and hero panel
or going to mounts or so
Archomeda
@Archomeda
Oct 17 2017 21:48
odd
i haven't crashed so far
windwarrior
@windwarrior
Oct 17 2017 21:52
I found one other redditor with the sameish issue: equipping the shining blade in offhand results in a crash
Archomeda
@Archomeda
Oct 17 2017 21:53
okay... can't help you with that
i don't have the shining blade
windwarrior
@windwarrior
Oct 17 2017 21:53
neither, my engi does have HOPE tho
Archomeda
@Archomeda
Oct 17 2017 21:55
oh, i do have hope
windwarrior
@windwarrior
Oct 17 2017 21:56
the assertion is quite generic tho, removal index must be -1
in UI
Archomeda
@Archomeda
Oct 17 2017 21:56
can't seem to repro it on hope
windwarrior
@windwarrior
Oct 17 2017 21:57
just spam through the tabs on the hero panel
(is this suspicious behavior? making yourself crash)
Archomeda
@Archomeda
Oct 17 2017 22:00
i only notice some fps drops whenever i spam clicking on the tabs :P
something to do with the equipment tab
probably using the GUI thread or something to load its contents
windwarrior
@windwarrior
Oct 17 2017 22:01
its fairly consistent for me, like I have crashed 5 times this way, twice accidentally and reproduced it three times
yeah we get the crash reports and stuff
I think it sends us a minidump or something
windwarrior
@windwarrior
Oct 17 2017 22:06
only if I say yes right?
maybe
it might just throw up a dialog while it sends
i never figured out how that thing worked
the stuff typed in the textbox definitely does show up on our end if you click "yes" though
windwarrior
@windwarrior
Oct 17 2017 22:07
"yeah I was trying to be helpful and make a minimal error trace, sorry"
it's a lot of fun when our internal tools crash
Eearslya Sleiarion
@Eearslya
Oct 17 2017 22:07

dd, the command that I will check a million times whether I did specify if and of correctly

dd if=/dev/urandom of=/dev/sda

"i was doing something stupid pls ignore"
@Eearslya seems fine to me
windwarrior
@windwarrior
Oct 17 2017 22:08
needs more root powah
Eearslya Sleiarion
@Eearslya
Oct 17 2017 22:08
# dd if=/dev/urandom of=/dev/sda
there
windwarrior
@windwarrior
Oct 17 2017 22:08
I once made a minecraft plugin that only in a very specific case logged to the chat
... which was promply triggered and DoS'ed the server
smiley
@codemasher
Oct 17 2017 22:20

you guys know of any software that can migrate an os to an ssd?

speaking of: does anyone know a tool to migrate a hdd/ssd into a Virtualbox VM? :D

pushpayload
@pushpayload
Oct 17 2017 22:25
Dunno for vbox, have done it for vmware, there are a couple of HDD->VHD converters, I've used https://www.macrium.com/reflectfree to image a partition and load it into vmware in the past
Archomeda
@Archomeda
Oct 17 2017 22:26
@lye... you don't know how many times the game crashed while i was running

i'm sure there are a few reports from me that just say

wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww

more than 1 and less than 4000
I actually haven't opened up the crash viewer for years
windwarrior
@windwarrior
Oct 17 2017 22:27
@lye's code doesnt crash right
... or is not in our clients :>
Archomeda
@Archomeda
Oct 17 2017 22:27
i used to clear that field and be helpful... but eventually i got tired of it and just clicked send with all the w's
windwarrior
@windwarrior
Oct 17 2017 22:28
sometimes you can alt+tab back into the game
"not now crash thingie, killing a raid boss here"
Archomeda
@Archomeda
Oct 17 2017 22:28
haha
i had that twice
during a raid
audio system crashed or something
and then none of the models loaded anymore after they were unloaded
so eventually i only saw name tags
and all the visual tells like the circles didn't show
or the bombs on escort :P
none of the attacks had effects either
smiley
@codemasher
Oct 17 2017 22:33
@pushpayload thanks! I'll check this out

ah, i knew there was a catch with the free version...

Server class OS backup and restore

smiley
@codemasher
Oct 17 2017 22:38
welp, the OS i'd like to put in a VM is a Win2008 Server
pushpayload
@pushpayload
Oct 17 2017 22:38
ah, didn't know sorry
smiley
@codemasher
Oct 17 2017 22:38
haha, not your fault, but of that shitty business model xD
pushpayload
@pushpayload
Oct 17 2017 22:39
well shitty...
do enterprise thing pay enterprise prices
smiley
@codemasher
Oct 17 2017 22:39
pretty sure there are some open source tools for that
pushpayload
@pushpayload
Oct 17 2017 22:39
probably
Archomeda
@Archomeda
Oct 17 2017 23:27
oh cool, the new cursors are 32x32, 64x64 and 128x128