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
Quaggan BooOOoot
@QuagganBooOOoot

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