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
Werdes
@werdes
@woutervs the wvw api has some caching issues nevertheless. It can take up to an hour for matches to refresh, so new matches after reset may take up to an hour to appear on the api (they appear in the id-list, but the start/end-dates show that it's still the old match)
Shii Kayano
@BryghtShadow

https://github.com/arenanet/api-cdi/blob/master/v2/account/achievements.js

// "current"/"max" are the counters, if any, for the achievement
// progress. They'll be set for all achievements -- boolean achievements
// are treated as if they had "max=1".

What does the "if any" mean in this case? Are there example achievement structures where there is no counter?

Shii Kayano
@BryghtShadow
I've looked through my 1898 achievements and found:
  • 1 with max=0,current>0 (ids=152);
  • 22 with current=0,max>0 (ids=1010,1256,1259,1384,1386,1387,1421,1762,2764,2790,2793,3002,3257,3923,3926,3931,4044,4060,4155,4624,4626,4654);
  • Out of the above 23, only 10 can be found in v2/achievements: (ids=3002,3923,3926,3931,4044,4060,4155,4624,4626,4654)
Quaggan BooOOoot
@QuagganBooOOoot
New discussion in API Development:

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.)

New discussion in API Development:

Guild missions
by Nightgunner.2896 in API Development

Similar to the daily achievement API, it'd be nice to be able to see what missions are assigned to guilds this week.

Ben Lubar
@BenLubar
@queicherius how often does gw2efficiency pull static data like guild upgrades?
it looks like they're showing correctly in the API right now: https://api.guildwars2.com/v2/guild/upgrades?ids=174,478,434
Quaggan BooOOoot
@QuagganBooOOoot
New discussion in API Development:

Native to Linux via Vulkan
by Gizmo.4530 in API Development

Hi everyone,
I have recently being advised to post a suggestion and ask how many others out there using Linux would like the game to be made native for the OS. (Ubuntu, Mint, Peppermint etc).
Yes is may take some time and I'm sure there are a lot of Linux gaming enthusiasts here, but a suggestion from a large amount of people should hopefully give us some attention.
I suppose the best thing would be a shout out. Let me know how many out there.

Email from Arenanet:

...Thanks a lot for taking the time to share your ideas about running Guild Wars 2 on Linux! We have found that the best way for the Development team to gather and review player feedback and suggestions is through the official forums. We ask and encourage players to post their ideas in our forums...

Members of the Development Team read the forums daily, and while they usually cannot respond to individual suggestions, the fact that team members can review those suggestions in a public forum helps them gauge the level of interest in a particular idea, and also allows other players to discuss and offer feedback of their own.

Erik Humphrey
@ErikHumphrey
it's been awhile since I've worked with JSON
how can I get the value of a currency from the /account/wallet/ endpoint?
for a certain ID
I'm drawing blanks since it's not layed out like https://api.guildwars2.com/v2/currencies/ where i can just get the attributes of https://api.guildwars2.com/v2/currencies/2 for example
or rather, how do I parse it if there are multiple arrays (one for each currency)?
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