These are chat archives for arenanet/api-cdi

8th
Apr 2017
:fire: deploying song fix
Michael Dougall
@madou
Apr 08 2017 00:41
🌋
David Reeß
@queicherius
Apr 08 2017 00:43
Going back to Angular 1.4 after 2 weeks of fulltime on a greenfield React app is freaking rough ;_;
darthmaim
@darthmaim
Apr 08 2017 00:43
:(
Michael Dougall
@madou
Apr 08 2017 00:45
Yeah can't say I miss using angular. Have you played with angular 2+?
okay song fix verified
@Archomeda thanks for the heads up on that
Archomeda
@Archomeda
Apr 08 2017 00:48
you're welcome :smile:
Discord_2017-04-08_02-47-35.png
yay
but screw discord's css float
what you need is a flexbox
Archomeda
@Archomeda
Apr 08 2017 00:49
how do i force that in a discord message? :P
David Reeß
@queicherius
Apr 08 2017 00:49
I have, and it pretty much was pretty meh imo. Own weird template language (again...) instead of just using the imperative language we have anyway, loads of syntax that is unique to the framework, good documentation, but that's needed for their giant API, build system that only wizzards can understand, reinventing DI (again...). Feels like its an overengineered version of the overengineered angular 1
@Archomeda step 1: acquire discord :|
Archomeda
@Archomeda
Apr 08 2017 00:50
lol
step 0: acquire money
step 0.5: disregard step 1, retire for life
Michael Dougall
@madou
Apr 08 2017 00:50
Yeah I know that feel. Vuejs seems like a nice balance of react and angular though
anyway I'm out for the weekend :wave:
darthmaim
@darthmaim
Apr 08 2017 00:50
:wave:
Michael Dougall
@madou
Apr 08 2017 00:51
Bye lye
David Reeß
@queicherius
Apr 08 2017 00:51
:wave:
Archomeda
@Archomeda
Apr 08 2017 00:51
cya @lye
and thanks again :)
David Reeß
@queicherius
Apr 08 2017 00:52
I think Vue has a few nice concepts, but I once again dont like that they have their own template language (v-if, v-repeat) etc
Someone on Reddit described it pretty well:
  1. {Imperative language} is not suitable for templates.
  2. Invent {template language}.
  3. We must keep {imperative language} and {template language} separate, so we can be pure!
  4. We need expressions in {template language}.
  5. We need variables in {template language}.
  6. We need lists, maps and objects in {template language}.
  7. We need conditional branches in {template language}.
  8. We need switches in {template language}.
  9. We need loops in {template language}.
  10. We need functions in {template language}.
  11. F**k. We reinvented {imperative language}.
Michael Dougall
@madou
Apr 08 2017 00:54
:P
Archomeda
@Archomeda
Apr 08 2017 00:55
heh
Archomeda
@Archomeda
Apr 08 2017 01:25
@Darqam you never got around to split the /v2/characters entry on the wiki?
now that sab is in there as well, the page will become way too large
Darqam
@Darqam
Apr 08 2017 01:37
hmmmm
I voted against it in the end, but I guess it will be needed
but it will be such a pain
Archomeda
@Archomeda
Apr 08 2017 01:56
maybe it's just me, but i really dislike docs with infinite long pages :(
Archomeda
@Archomeda
Apr 08 2017 01:57
maybe we should have a collapseable examples section too
Darqam
@Darqam
Apr 08 2017 02:18
no I agree it should be smaller sections anyway
but lazy
collapsable sections might be worth looking into though
Darqam
@Darqam
Apr 08 2017 02:51
was there an api docs update for the sab changes?
Archomeda
@Archomeda
Apr 08 2017 02:51
wiki or repo?
Darqam
@Darqam
Apr 08 2017 02:52
repo
I don't see anything in gitter
Archomeda
@Archomeda
Apr 08 2017 02:52
no, don't think so
Darqam
@Darqam
Apr 08 2017 02:53
:( guess I'll put those details later then
I'll try to make things collapsible for now, see if it's enough
I just made things collapsible
hum.... should probably do that to examples too
Archomeda
@Archomeda
Apr 08 2017 03:04
looks better yeah :)
Darqam
@Darqam
Apr 08 2017 03:11
ok, more cleanup. takes a bit to load though... ah well it works I think
I kind of want to kill that table of contents though
ChieftainAlex
@ChieftainAlex
Apr 08 2017 11:27
I agree on collapsing the examples however doesn't it just hide all the useful information if you hide the Response sections?
Eearslya Sleiarion
@Eearslya
Apr 08 2017 19:00
blob
THIS counts as a mousepad?
Archomeda
@Archomeda
Apr 08 2017 19:01
no
it's a mouse desk
Eearslya Sleiarion
@Eearslya
Apr 08 2017 19:01
thank you
darthmaim
@darthmaim
Apr 08 2017 19:01
my mousepad has the same size
Eearslya Sleiarion
@Eearslya
Apr 08 2017 19:01
WeLoveFine is drunk or something
Archomeda
@Archomeda
Apr 08 2017 19:01
what kind of material is it actually?
Eearslya Sleiarion
@Eearslya
Apr 08 2017 19:01
uh
Archomeda
@Archomeda
Apr 08 2017 19:01
it's not mentioned anywhere on their site
Eearslya Sleiarion
@Eearslya
Apr 08 2017 19:01
mousepad material?
Archomeda
@Archomeda
Apr 08 2017 19:01
yeah
Eearslya Sleiarion
@Eearslya
Apr 08 2017 19:02
No I mean..I have no idea XD
It just feels like a standard mousepad
Archomeda
@Archomeda
Apr 08 2017 19:02
like you have that soft stuff, and also that hard plastic stuff
Eearslya Sleiarion
@Eearslya
Apr 08 2017 19:02
soft
Archomeda
@Archomeda
Apr 08 2017 19:02
that last one i hate
hmm
it's really tempting to buy stuff
(if they only shipped from EU instead...)
Eearslya Sleiarion
@Eearslya
Apr 08 2017 19:03
I just..how am I supposed to put my mouse on this without my keyboard being half tilted upwards XD
Archomeda
@Archomeda
Apr 08 2017 19:03
which size did you buy?
ChieftainAlex
@ChieftainAlex
Apr 08 2017 19:03
teatray size
Eearslya Sleiarion
@Eearslya
Apr 08 2017 19:03
cough I, uh..I'm bad at visualizing measurements. So, uh..the largest. I didn't think it was -this- big
ChieftainAlex
@ChieftainAlex
Apr 08 2017 19:04
big enough to raise a family of midgets
12.4 miles wide
Archomeda
@Archomeda
Apr 08 2017 19:04
lol
Eearslya Sleiarion
@Eearslya
Apr 08 2017 19:04
On the bright side
the artwork is amazing quality
Archomeda
@Archomeda
Apr 08 2017 19:04
they even have a mouse on their images to visualize it XD
Eearslya Sleiarion
@Eearslya
Apr 08 2017 19:04
although I just realized they screwed up
Archomeda
@Archomeda
Apr 08 2017 19:04
but... i have to say, not all mice are the same size
Eearslya Sleiarion
@Eearslya
Apr 08 2017 19:05
The reflection of the SAB logo doesn't have the 'Festival' part XD
darthmaim
@darthmaim
Apr 08 2017 19:05
lol
Eearslya Sleiarion
@Eearslya
Apr 08 2017 19:05
Just slapped that on post-processing
Archomeda
@Archomeda
Apr 08 2017 19:06
Small 11"x17"... 28x43 cm... holy shit
Large 16"x21" -> 40.5x53cm... omfg
Eearslya Sleiarion
@Eearslya
Apr 08 2017 19:07
that's what I got
Archomeda
@Archomeda
Apr 08 2017 22:08
hmm, just something i came across earlier; there isn't a property in /v2/items for plural item names right?
darthmaim
@darthmaim
Apr 08 2017 22:08
nope
Archomeda
@Archomeda
Apr 08 2017 22:08
:<

i have my bot posting things like:

Guild Treasury
@Archomeda has deposited 250x Continue Coin

meh, will probably ask lye next week before writing an issue
darthmaim
@darthmaim
Apr 08 2017 22:11
@lye said he is just removing all the formatting stuff from the string
Archomeda
@Archomeda
Apr 08 2017 22:11
yeah
except coloring :P
darthmaim
@darthmaim
Apr 08 2017 22:12
its done really weird, sometimes just Shadow Purple Dye[s], sometimes its Memories of Scarlet Box[pl:"Boxes"]
probably some other ways
Archomeda
@Archomeda
Apr 08 2017 22:12
maybe
and lye probably does not have access to the formatting functions used by the client
Michael Dougall
@madou
Apr 08 2017 22:33
Just make a pluralise function 🌞
Archomeda
@Archomeda
Apr 08 2017 22:33
not sure if these take multiple words into account
"Duskk's World 1 Super Boom Box"
"Tome of Knowledge"
darthmaim
@darthmaim
Apr 08 2017 22:34
parse the dat for the singular string by removing all formatting, then pluralize it
Archomeda
@Archomeda
Apr 08 2017 22:35
:(
would be better if i knew how to link the strings in the dat with their item id :P
darthmaim
@darthmaim
Apr 08 2017 22:36
yeah :(
I also want item id -> model
but looking at some examples it seems like the model file is the icon file + 1
probably doesn't work for all items though
especially if the icon is used for multiple items
Archomeda
@Archomeda
Apr 08 2017 22:41
i'm not even sure if it's actually stored in the dat, maybe it's just sent by the server
darthmaim
@darthmaim
Apr 08 2017 22:41
maybe
I think someone has found some relations though but hasn't shared it
Archomeda
@Archomeda
Apr 08 2017 22:42
or it's stored in some obscure file that i don't know about
darthmaim
@darthmaim
Apr 08 2017 22:42
let me see if I can find that link again
Archomeda
@Archomeda
Apr 08 2017 22:42
i only know about the file structures of some basic files
but not their inner structure if it's some weird file
and the next few posts
gw2db was only using the dat file for all their item stuff, because the API didn't even exist at that point
unless they were loading stuff from the gw2 servers
Archomeda
@Archomeda
Apr 08 2017 22:55
hmm
ehhhh, Rhoot :P
why am i not surprised
i really don't want to have to search the entire dat for a reference to a specific string id
takes ages
darthmaim
@darthmaim
Apr 08 2017 22:58
I wrote a program for it
didn't find anything
Archomeda
@Archomeda
Apr 08 2017 22:58
plus i think i've done it at least once already
what id were you looking for?
sometimes the strings are coded as "((...))"
i think the ... is the id
darthmaim
@darthmaim
Apr 08 2017 22:59
I can't remember, but both item id and icon file id
Archomeda
@Archomeda
Apr 08 2017 22:59
but that would mean there are 800k+ strings already...
actually, that wouldn't surprise me
i do think there are 800 string files for a language... with each 1024 strings; yeah that actually makes sense
hmm, i couldn't find references to item ids either
darthmaim
@darthmaim
Apr 08 2017 23:01
I also tried all files as binary
searching for the ids as little and big endian
so if it is in there its probably encoded somehow or not byte aligned
Archomeda
@Archomeda
Apr 08 2017 23:10
just browsing through all the structs again
TextPackPasswords these exist?
a txtp file :P
i doubt these exist in the dat file though... since i think this would otherwise decrypt the encrypted strings?
Version: 0
TextPackPasswords:
  dword stringCount
  struct_array_ptr TextPackPassword passwords
TextPackPassword:
  dword textId
  qword password
darthmaim
@darthmaim
Apr 08 2017 23:14
no idea
Archomeda
@Archomeda
Apr 08 2017 23:16
if these would've been found, hello datamining, rip surprises
Archomeda
@Archomeda
Apr 08 2017 23:23
just browsing through some javascript files...
why are there launchers for italian, japanese, polish and russian lol
well, rather short language files
do you know how i can binary search an entire folder of files?
without having to write my own algorithm :P
darthmaim
@darthmaim
Apr 08 2017 23:26
I wrote my own :(
Archomeda
@Archomeda
Apr 08 2017 23:27
i have a bgrep application in one of my datamining folders... what
what did i do last time
darthmaim
@darthmaim
Apr 08 2017 23:28
haha
Archomeda
@Archomeda
Apr 08 2017 23:28
bgrep version: 0.2
usage: ./bgrep [-B bytes] [-A bytes] [-C bytes] <hex> [<path> [...]]
okay then
useful /s
darthmaim
@darthmaim
Apr 08 2017 23:29
history | grep bgrep
Archomeda
@Archomeda
Apr 08 2017 23:29
eh... that application was there from a long time ago
before like a few reinstalls :P
3-8-2016... maybe just 2
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
Apr 08 2017 23:30
¯\_(ツ)_/¯
Archomeda
@Archomeda
Apr 08 2017 23:35
i think i can just feed it a hex string ./bgrep <HEX> ./file
darthmaim
@darthmaim
Apr 08 2017 23:36
try it with a file you know contains some specific bytes
Archomeda
@Archomeda
Apr 08 2017 23:36
good plan
$ ./bgrep 65756C61 ./EULA/154806.eula
./EULA/154806.eula: 00000008
./EULA/154806.eula: 0000000c
seems valid to me
even better:
$ ./bgrep 65756C61 ./EULA/*
./EULA/154806.eula: 00000008
./EULA/154806.eula: 0000000c
./EULA/154807.eula: 00000008
./EULA/154807.eula: 0000000c
./EULA/578776.eula: 00000008
./EULA/578776.eula: 0000000c
yay
i think it's this https://github.com/tmbinc/bgrep ?
darthmaim
@darthmaim
Apr 08 2017 23:40
convert the binary of the github repo to a hexstring and search for it? :D
Archomeda
@Archomeda
Apr 08 2017 23:40
lol
also, windows defender doesn't like that there are so many files written to my hdd
or opened
oh well, i suppose i can just add a folder exception