Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 30 2019 11:45
    Tolkyria commented #646
  • Jan 30 2019 11:44
    Tolkyria commented #646
  • Jan 16 2019 14:09
    patrickboesch starred arenanet/api-cdi
  • Jan 16 2019 03:23
    isand3r starred arenanet/api-cdi
  • Dec 09 2018 14:11
    queicherius commented #567
  • Dec 05 2018 16:57
    apoch closed #433
  • Dec 05 2018 16:57
    apoch commented #433
  • Dec 05 2018 16:53
    wafflebot[bot] unlabeled #527
  • Dec 05 2018 16:53

    apoch on master

    /v2/pvp/seasons: add .ranks. Merge pull request #535 from ar… (compare)

  • Dec 05 2018 16:53
    apoch closed #535
  • Dec 05 2018 16:53
    apoch closed #527
  • Dec 05 2018 16:45

    apoch on master

    add missing name tag to /v2/rac… Merge pull request #609 from Th… (compare)

  • Dec 05 2018 16:45
    apoch closed #609
  • Dec 04 2018 19:18
    darthmaim commented #640
  • Dec 04 2018 18:17
    apoch commented #640
  • Dec 04 2018 09:43
    darthmaim commented #640
  • Dec 03 2018 17:50
    Aonwy unlabeled #640
  • Dec 03 2018 17:49
    Aonwy closed #640
  • Dec 03 2018 17:47
    Aonwy labeled #645
  • Dec 01 2018 18:36
    strigefleur edited #645
Erik Humphrey
@ErikHumphrey
well, I sort of figured it out
I used array indices, like foo[24]
but I want to get the object with ID 25 (without looping through all of them)
also foo[24] gives me the object with id 28
or the array of the currency with id 28 rather
anyone know why? is there a better way to accomplish it?
David Reess
@queicherius
@BenLubar I cant remember, either every time you open the page or not at all
David Reess
@queicherius
@BenLubar Also the prerequisites for those are empty for me
Ben Lubar
@BenLubar
@queicherius strange - here's what I'm getting: https://pastebin.com/raw/iU1s2Lyd
@ErikHumphrey what language?
Archomeda
@Archomeda
@ErikHumphrey you have to match the ids that are given. In both endpoints they are an array of objects
You cannot depend on the array index
So in the case of the account wallet, there's no other way than to just loop over the array and find the correct object
If you need to find multiple objects, you can of course loop it once and transform it to a id -> object map/dictionary
Erik Humphrey
@ErikHumphrey
@BenLubar C#
@Archomeda ah, my only option is to loop through the array until I find one with the right ID?
Erik Humphrey
@ErikHumphrey
seems a little computationally expensive but I got it working pretty quickly
Ben Lubar
@BenLubar
@ErikHumphrey you could make a dictionary to look things up in but it's not gonna be that computationally expensive either way
Archomeda
@Archomeda
agreed, you're only gonna notice it on a toaster or when you do that many many times
but indeed, converting it to a dictionary is better when you need to get multiple entries by their id
.ToDictionary(x => x.Id) should suffice for c#
Quaggan BooOOoot
@QuagganBooOOoot
New discussion in API Development:

how to link PvP sigils and PvP runes?
by icy.9250 in API Development

I was looking at https://wiki.guildwars2.com/wiki/PvP_Build#Sigils and had trouble requesting these sigils and runes.

For example, looking at the Sigil of Absorption(PvP) page, we see it's supposed to have an id of 81266 (hover over "Game link" chat code). The equivalent in PvE has an id of 72872.

request for Sigil of Absorption(PvP): https://api.guildwars2.com/v2/items?id=81266
response:

<pre>{
"text": "no such id"
}</pre>

Quaggan BooOOoot
@QuagganBooOOoot
New discussion in API Development:

API Skills activation time ?
by tim.4596 in API Development

Does anyone know how I can get the skill activation time and activation type from the API?

https://api.guildwars2.com/v2/skills?ids=10334

The current API doesn't appear to return any information concerning those two things :(

Ben Lubar
@BenLubar
is there a way to resize item icons to 64x64? I'm trying to use icons as Emoji (curl -H 'Accept: application/activity+json' https://ravenvale.lubar.me/_item/20546/_emoji) but Mastodon won't accept any emoji over 50 kilobytes. Example: https://render.guildwars2.com/file/06DF4AD10F92FDC3AB0EA1D8411038D44758BD52/66654.png
(it also won't accept non-PNG emoji, so I can't switch to the 20 kilobyte jpeg rather than the 60 kilobyte png)
Ben Lubar
@BenLubar
(I'm going to solve this via proxying images based on a list)
Archomeda
@Archomeda
resize icons through the api or by yourself?
there's a lot of third party tools that lets you resize images through the command line, and then there's optipng which allows you to trim the png file more of their metadata
e.g. your example with optipng:
** Processing: 66654.png
256x256 pixels, 4x8 bits/pixel, RGB+alpha
Reducing image to 3x8 bits/pixel, RGB
Stripping metadata...
Input IDAT size = 57664 bytes
Input file size = 57771 bytes

Trying:
  zc = 9  zm = 9  zs = 0  f = 0         IDAT size = 50755

Selecting parameters:
  zc = 9  zm = 9  zs = 0  f = 0         IDAT size = 50755

Output IDAT size = 50755 bytes (6909 bytes decrease)
Output file size = 50812 bytes (6959 bytes = 12.05% decrease)
that's just stripping metadata (and apparently the alpha channel)
however you should cache images then if you decide to host a proxy
Archomeda
@Archomeda
or that ^
i completely forgot you had this running :D
darthmaim
@darthmaim
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
¯\_(ツ)_/¯
darthmaim
@darthmaim
too many projects, even I can't remember all of them
Quaggan BooOOoot
@QuagganBooOOoot
New discussion in API Development:

Mirage Thrust daze value set to 0
by tim.4596 in API Development

Mirage thrust daze value set to 0, while IG link claim it to be 0.25s

https://api.guildwars2.com/v2/skills?ids=45230

Quaggan BooOOoot
@QuagganBooOOoot
New discussion in API Development:

Request: WvW Skirmish Reward (Pip Count) Current Progress
by Butters.2807 in API Development

Hi there, I'm just curious. Is there any plans to add an endpoint to the API to return the Current Pip progress on the Weekly Skirmish Rewards. Eg "Platinum Chest, 3rd Tier, 5 Pips".
It would be so useful. As i already have a semi-automated spreadasheet that predicts timings for finishing chests and works out how many weeks / hours etc until you can acquire the armor set you want.

Ben Lubar
@BenLubar
https://en-forum.guildwars2.com/discussion/75139/guild-aetherium-generation-information is the forum the wrong place for this kind of request, or is this just not something that has been looked at yet?
Quaggan BooOOoot
@QuagganBooOOoot

Guild aetherium generation information
by Nightgunner.2896 in API Development

This may be a weird request, but would it be possible to add the timestamp of the last aetherium generation tick to guild info?

I noticed in my own guild hall that without any speed upgrades aetherium seems to always generate based on when aetherium capacity was last made available. That is, the capacity upgrade was unlocked at 2019-04-29T04:30:54.000Z (using up all 500/500 aetherium, changing the available capacity from 0 to 1500) and the ticks have been happening every 60 seconds on the :54 of the minute. Before that, the mine was unlocked at 2019-04-28T20:11:29.000Z (changing the available capacity from 0 to 500) and the ticks seemed to be happening around halfway through each minute.

This is technically something that applications could calculate for themselves, but it gets very messy, especially if the guild log doesn't include enough information due to upgrades being done a while ago.

This is the last piece needed to replicate the guild hall upgrade UI on a website.

(Also, just as a side note, some of the early upgrades like ore synthesizer 1 don't seem to require their building even though they do require it ingame.)

Ben Lubar
@BenLubar
@dsnider-anet hopefully this can help you debug the guild treasury endpoint being confused about which upgrades are actually available: https://gist.github.com/BenLubar/10fa65868cc87b3d2efc3cbf9ba870f5
Quaggan BooOOoot
@QuagganBooOOoot
New discussion in API Development:

API Updates - May 14 2019
by (ArenaNet) Daniel Snider.6241 in API Development

Hello all,

As of today's patch some backend changes to support the API have gone live. I will be working to bring some of the benefits of those changes over the coming weeks. One of the changes broke the mounts endpoint for several hours today (it is now fixed), but in return all missing mount skins have been added to the API.

Recent API Updates


Here are the changes in list format:

Quaggan BooOOoot
@QuagganBooOOoot
New discussion in API Development: