Showing Posts For smiley.1438:

WvW Community needs the API Back

in API Development

Posted by: smiley.1438

smiley.1438

Sorry, but i can’t stop laughing… i mean… seriously? SERIOUSLY?

API development gitter chat

in API Development

Posted by: smiley.1438

smiley.1438

It’s worth mentioning that there are also mobile apps for it as well as an IRC bridge!

https://gitter.im/apps
https://irc.gitter.im/

Created a json file for Mystic Forge recipes

in API Development

Posted by: smiley.1438

smiley.1438

[X] vote for GitHub repo!

I have no good answer to this GitHub isn’t my go-to place to do anything, and it just seems out of the way – an extra step to take (the v2 json above is all automated from my database).
Even so, if you want to set one up, I’ll add to it. I have no experience with GitHub, so anything I create there would likely be undesired :P

I have an answer: just try it! How can you say it’s so much extra work if you haven’t even tried it? Once configured, it’s just one more mouseclick (along entering a commit message) in your workflow. Nothing to even think about!
Just compare the current workflow for me now: i have to download & copy the json manually, check if it’s different to the one i already had, maybe squash dupes again… I doubt that this way is any simpler than just an automated `git -pull`.
I mentioned already above that with a good editor it’s effortless to manage GitHub. If you want an IDE instead of just an advanced text editor, go and try Jetbrains’ WebStorm or PHPStorm, both of which have full git support (like any Jetbrains IDE) and make it a pleasure to work with!

Just give it a shot!

(edited by smiley.1438)

Created a json file for Mystic Forge recipes

in API Development

Posted by: smiley.1438

smiley.1438

[X] vote for GitHub repo!

Getting all Items [Names not just IDs]

in API Development

Posted by: smiley.1438

smiley.1438

Well, paging is convenient for the people who use their fingers to count, others can do it without… (j/k)

like so:

// put all the IDs into chunks...
$ids = array_chunk($ids, 200);

// ...now loop through the chunks
foreach($ids as $chunk){
	// ...and create the request for each chunk and language
	foreach($api_languages as $lang){
		$urls[] = $api_base.'?'.http_build_query(['lang' => $lang, 'ids' => implode(',', $chunk)]);
	}
}

Ok, php is unfair advantage :P

(edited by smiley.1438)

Wrong WvW Objective Coordinates ?

in API Development

Posted by: smiley.1438

smiley.1438

I think, you’re pretty much looking for this: https://gist.github.com/codemasher/75d8e1a24b2363cabebf

Wrong WvW Objective Coordinates ?

in API Development

Posted by: smiley.1438

smiley.1438

Wait no. (it’s been a hard day…)

The above answer is correct when you get the coordinates from ingame, e.g. the Mumble link or the /v1/event_details API. It translates the relative map coordinate system into the continent’s absolute.
The solution to your problem is simpler: just don’t use the map_rect at all. continent_rect is what you need since the coordinates in the /v2/ APIs are already calculated to absolute.

Wrong WvW Objective Coordinates ?

in API Development

Posted by: smiley.1438

smiley.1438

See this thread: https://forum-en.gw2archive.eu/forum/community/api/Event-Details-API-location-coordinates

I made a silly picture

All events are within map_rect of their respective map.
All maps are within continent_rect of their continent.

To figure out where something is on the continent you need to know their place within map_rect on the map, then fit map_rect inside continent_rect on the continent.

So you have to do basically this:

I was using a numpy matrix, but even if I only built it once per map your pile of random characters is a lot faster.

All condensed in one ugly block of code so I don’t have to look at it so much:


def continent_coords(continent_rect, map_rect, point, game=False):
    return (
        (point[0]-map_rect[0][0])/(map_rect[1][0]-map_rect[0][0])*(continent_rect[1][0]-continent_rect[0][0])+continent_rect[0][0],
        ((-point[1] if game else point[1])-map_rect[0][1])/(map_rect[1][1]-map_rect[0][1])*(continent_rect[1][1]-continent_rect[0][1])+continent_rect[0][1]
    )

PHP version here: https://github.com/codemasher/gw2-database/blob/master/classes/gw2api.class.php#L248
JS version: (can’t find it…)

(edited by smiley.1438)

Advice for social phobic introvert people

in Players Helping Players

Posted by: smiley.1438

smiley.1438

Noone forces people to speak they just have to listen, if you cant do that your not part of the team and should be excluded frankly.

Even your comment sounds a little harsh, it’s true for certain activities. A lot of dungeons and stuff can be done in PUGs without the need of TS.

I might add a quote of myself from the other thread:

smiley.1438:

I had a girl in my guild who i met ingame and we constantly played together and chatted a lot but she always refused to come into TS when i asked her. It didn’t help that i told her, that i’m basically the same like her regarding her anxiety and that there are only my dearest friends in the channel. However, one day she asked me if i would take her on a DoA fullrun in hard mode. Ok, now that was a thing. One does not simply walk into DoA. So i told her that she needs to join TS to at least listen to the commands. So she accepted to join us. We completed the run, a lot of fun was had and i was really proud of her that not only she overcame her anxiety, but also that she did a great job on her first DoA run ever despite her arkward feels. And i told her that in the end. And suddenly something happened, i didn’t expect: she switched her mic on, said hello to everyone and thanked us for being so kind with her and that she’s always super angsty but in the end she felt comfortable.

Advice for social phobic introvert people

in Players Helping Players

Posted by: smiley.1438

smiley.1438

Personally, I don’t class myself as someone who has “social anxiety” or anything of the like, but I have a few issues connecting with communities in GW2.

Anexieties vary from person to person. In the original topic was a nice note about that:

While I think is great that everyone is helping and giving advice I would like to point out that it’s not the same being shy or introvert or have some anxiety (everyone have anxiety at some point for whatever reason) as having an anxiety disorder. Just wanted to point that out cause sometimes I think that we take importance out of the situation in which a person with an anxienty disorder is in.


Im actually heavily dissatisfied with many of the guilds ive been in, because they want to sit in the Teamspeak all the time, which im just not ok with, so I get left out of events and guild activities, but when I go looking for guilds, and explicitly say: “If your guild has a voice chat, I will not join you.” they lie to me, and invite me anyway, and thus the vicious circle continues.

When I tried to tell my legionmates about my problem, they only said it’s bullkitten and I’m literally making that up. Every time I complained that someone took my place in the group, legate just said that I will always stay his last priority unless I will come and speak with them on TS all the time. And by saying “all the time” I don’t mean prime-times, they were bacically living their lives on TS and they didn’t even notice anyone who was outside it. Those were really bad times for me, I actually even cried a lot back then. I really wanted to play, I loved that game so much, I was really good at it, but I couldn’t force myself to make friends with those people and that made me feel very lonely and sad.

There was also one guy in World of Warcraft who was harassing me and telling everyone that I’m a man pretending to be a girl, just because I refused to talk to him on Skype. xD He was so sure about that, it was so fun to watch!

Wow, thats just gross. Sometimes i wonder how people can be like that instead of just saying “thanks for telling me about your problem, i’ll try to take care”. Why is it so hard? What keeps other people from caring a little about people they play with? Reading this makes me sad.

I hope my experience helps someone realise that they are not alone. I also apologize for any grammar mistakes, I don’t practice english very often. Thatnk you for sharing this.

You did great! Thank You for sharing!

Advice for social phobic introvert people

in Players Helping Players

Posted by: smiley.1438

smiley.1438

Hey there, i’d like to share a thread from the WildStar forums, which deals with the sensitive and imortant topic of social anexiety and how to help these people to get in touch with others in order to play group content. Most “normal” people just don’t know/take notice/care about people with social anexiety which makes it even harder to connect.
I think sharing your experiences is one great way to help, giving some advice or offering direct help would be awesome!

So, enjoy reading this topic and try to help social arkward people:

https://forums.wildstar-online.com/forums/index.php?/topic/145593-question-for-social-phobic-introverted-players/

(btw. i’m one of them)

(edited by smiley.1438)

MumbleLink : Specializations

in API Development

Posted by: smiley.1438

smiley.1438

Get item from API using item name?

in API Development

Posted by: smiley.1438

smiley.1438

Simply put: you will need your own database to do a reverse search.

UI Mod

in API Development

Posted by: smiley.1438

smiley.1438

This is the wrong subforum – we’re just talking about the REST API service here

However, GW2 doesn’t support any addons. In addition, that what you’re asking for is currently not possible via the API.

Can't the find the right API for even timers.

in API Development

Posted by: smiley.1438

smiley.1438

The event timers are static now. The /v1/events.json API has been disabled back when the megaservers were introduced.

We can type /ip to get our instance of a map, would be nice if we could feed that to the events API and get something like the old one.

The event timers are static now.

This means there is no need at all for an endpoint. The event timers have been published in a blog post and are available on the wiki. Hardcode all the things!

Can't the find the right API for even timers.

in API Development

Posted by: smiley.1438

smiley.1438

The event timers are static now. The /v1/events.json API has been disabled back when the megaservers were introduced.

Items API with ?ids= returns weird order

in API Development

Posted by: smiley.1438

smiley.1438

The returned items are completely unordered due to the asynchronous behaviour of the backend (i believe Lawton or Pat explained that somewhere over here).

Also, the URL size problem has already been discussed. We’ve agreed to just use ~200 IDs (which is a bit below 4096 bytes, Internet Explorer URL max size).
Also: this https://forum-en.gw2archive.eu/forum/community/api/help-with-making-a-list-of-item-names/5267994

The API only currently allows a max of 200 results/request

(edited by smiley.1438)

Heart of Thorns and the tiles service

in API Development

Posted by: smiley.1438

smiley.1438

I’m pretty sure for A, given that Lawton and Pat find a solution to return the correct marker coordinates.

For B: Why the haste? Sure, it’d be cool to have a site up on launch day, but y’know: when it’s done™.

Heart of Thorns and the tiles service

in API Development

Posted by: smiley.1438

smiley.1438

Overwolf and trojan file.

in API Development

Posted by: smiley.1438

smiley.1438

Hmm, i’m almost pretty sure it’s either a false alarm or another program altered this file in a malicious way, since Overwolf is pretty common and a brilliant platform for scammers. Have you tried reinstalling the latest version of OW? Also, don’t ever download software from any other websites than the manufacturers to avoid problems like this one.

https://www.virustotal.com/file/c795ce3234929b7616d7dbb3af9713554c0aefa7d0c2b643ad8ccd97b84d49a5/analysis/

New Endpoint: /v2/wvw/matches

in API Development

Posted by: smiley.1438

smiley.1438

Probably not gonna provide a comma-separated list of guilds though :P

#lazyness4lyfe

New Endpoint: /v2/wvw/matches

in API Development

Posted by: smiley.1438

smiley.1438

I’m not the achievements guy, but i’m eager to play with the new wvw API as soon™ as possible.

Thanks for all the work btw!

€: Umm, now that we have that nice API, would it be possible to enable a bulk endpoint like /v1/guild_details? Would be 2 requests to get the whole data for a match – a dream!

€€: it would be even cooler if /v2/matches would contain a comma separated string of all guild IDs contained in the current response, which could then be used to get the guild data without looping through the response first.

(edited by smiley.1438)

New Endpoint: /v2/wvw/matches

in API Development

Posted by: smiley.1438

smiley.1438

Sorry to snipe that post, Lawton :P

(i got something wrong and found out now…)

€€: ok, one thing about the “bonuses” object: shouldn’t it be an array of arrays in case more bonuses are being added or will bloodlust be the only one for the future?

€€€: Wait, does that even make sense? Maybe i should go to bed.

https://api.guildwars2.com/v2/wvw/matches/1-4

(edited by smiley.1438)

Confusion about maps

in API Development

Posted by: smiley.1438

smiley.1438

No, thats not what i mean. By a clean overview map i mean something like this: http://gw2.chillerlan.net/examples/gw2maps-jquery.html
The problem currently is that any of floors 1/1 to 1/3 feature both, world and instance data, which renders this application moot.

Confusion about maps

in API Development

Posted by: smiley.1438

smiley.1438

There are still several problems in the underlying game data. I pointed that out once but didn’t have time yet to do more investigation and write it up in a GitHub issue.
Another example might be the wrong region for several maps over here: https://api.guildwars2.com/v2/continents/1/floors/1/regions/8
Lots of them are actually in Tarnished coast. It seems like the mappers thought “oh c’mon, let’s just throw all those new instances into region 8. YOLO!”.
I mean, the continents API is cool to draw any map once you know where they’re hidden; what i miss is an endpoint which allows us to draw clean overview maps for both continents. There’s still way too much instance data in all the main floors (well, at least continent 1).

(edited by smiley.1438)

New endpoint: /v2/wvw/objectives

in API Development

Posted by: smiley.1438

smiley.1438

Ok, that’s clearly API side (tbh, i haven’t checked the new coordinates yet). I wonder if it’s possible to get the positions of the markers. The thing about the sector centroids was in context of the sector name positions, so the current coordinates may be used that way instead.

Also, no need to figure out the marker coordinates, you can still use this for the time being: https://gist.github.com/codemasher/bac2b4f87e7af128087e

(edited by smiley.1438)

Improve Mac Client's fps instantly.

in Account & Technical Support

Posted by: smiley.1438

smiley.1438

Um, this topic would be probably more helpful in the game discussion forums than in API.

New endpoint: /v2/wvw/objectives

in API Development

Posted by: smiley.1438

smiley.1438

This looks like a rounding error to me, but then again, the positions of the keeps are odd.
What library are you using? Leaflet? Google Maps?

€: see also this: https://forum-en.gw2archive.eu/forum/community/api/New-endpoint-v2-wvw-objectives/first#post5526223

(edited by smiley.1438)

My API Wishlist

in API Development

Posted by: smiley.1438

smiley.1438

Hmm, weird, for me it’s always in that order. Maybe it’s a caching issue – i didn’t check immedeately after log-out. But yeah, it’d be perhaps usable with a 30s TTL like some of the AH APIs.

My API Wishlist

in API Development

Posted by: smiley.1438

smiley.1438

Most recently played character name

/v2/characters does actually return the character names ordered by last log in, the same way as in the character selection screen.

Squad endpoint

in API Development

Posted by: smiley.1438

smiley.1438

The problem is the same as with realtime positional data. It takes some time to get a snapshot of the client state and transfer this data to the API. Thus, realtime supply count through the API is moot and so are all it’s applications (i heard there may be websockets access at some point in the future). You need to know the exact supply count on demand at any time – not the data of 30+ seconds ago (your squad repaired the gate while the enemy’s ram was still up, right?).

(edited by smiley.1438)

Squad endpoint

in API Development

Posted by: smiley.1438

smiley.1438

You can get the supply count of a player through the Mumble API once this change has landed: https://github.com/arenanet/api-cdi/pull/68 (means: you’ll need to do the math on your own)

HoT, new and old API

in API Development

Posted by: smiley.1438

smiley.1438

I don’t plan to buy HoT either (does Anet offer development editions?) and still don’t understand the need. It’s not that these items don’t exist for basic and f2p players, they just don’t have direct access (hello GW1). They can see them, others can ping them in chat, i guess they can even buy the one or other HoT item on the AH once it’s live.
What you ask for is a completely account based thing – i mentioned ideas for solutions above, and as you see it’s not even possible to distinguish internally.

(edited by smiley.1438)

HoT, new and old API

in API Development

Posted by: smiley.1438

smiley.1438

Ah, thanks! ok, so it’s basically there.

HoT, new and old API

in API Development

Posted by: smiley.1438

smiley.1438

It was just a crazy idea, i guessed you’re tracking that somehow.

Oh, while we’re at it: is there something under /v2/account which lets us know the account type (f2p/basic/HoT)? Haven’t tracked that API in a while.

HoT, new and old API

in API Development

Posted by: smiley.1438

smiley.1438

Why would you distinguish between these? These items aren’t available for players ingame, as well as anything else they haven’t unlocked. The items API is just a source of information about any item which has ever been equipped/unlocked (and more) which should of course be available to everyone without limitation (hello https://gw2treasures.com).
You could go one step further and add another endpoint under /v2/account which returns any item id which has ever been unlocked by this account (if thats possible in any way).

(edited by smiley.1438)

New endpoint: /v2/wvw/objectives

in API Development

Posted by: smiley.1438

smiley.1438

I have read “/v2/wvw/objectives” and there are big value for coordinates. If I’d like to use them with a scale of 1:1, the coordinates retrieved by API are to compare with a maximum zoom in of the map?

I don’t get your question 100% because syntax error. But from what i get, you’re basically asking how to project them 1:1 on the map.

You might want to check out some examples:
http://gw2.chillerlan.net/examples/gw2maps-leaflet.html (latest, vanilla JS, using ES6 window.fetch())
http://gw2.chillerlan.net/examples/gw2maps-gmaps-simple.html
http://gw2.chillerlan.net/examples/gw2staticmaps.php (source: https://gist.github.com/codemasher/75d8e1a24b2363cabebf )

The project() function in the php example or fromPointToLatLng() in the gmaps one is probably what you’re looking for. (map.project/unproject in leaflet)

@Lawton: Thanks! Can’t wait for the matches!

(edited by smiley.1438)

Identifying which map a character is on.

in API Development

Posted by: smiley.1438

smiley.1438

(edited by smiley.1438)

Colours API base_rgb field values

in API Development

Posted by: smiley.1438

smiley.1438

I believe, Cliff said once that the base_rgb *may* change for future items, which was the reason to add the value.

Created a json file for Mystic Forge recipes

in API Development

Posted by: smiley.1438

smiley.1438

You can also use http://gw2wbot.darthmaim.de/smiley/ and https://gw2treasures.com/ to reverse lookup IDs and chatcodes (well, as long as the items are / or were at one point in the API )

(edited by smiley.1438)

Created a json file for Mystic Forge recipes

in API Development

Posted by: smiley.1438

smiley.1438

this post describes how to get the item id from the chat code, but it gave me item id 1048850. pretty sure that’s wrong :P

Try this: https://github.com/codemasher/gw2-database/blob/master/classes/gw2api.class.php#L311
It’s based on Poke’s JS version which works on the Wiki to decode chatcodes in the search, but mine also decodes a whole item stack (item+upgrades).

Created a json file for Mystic Forge recipes

in API Development

Posted by: smiley.1438

smiley.1438

GitHub is super easy and super simple to use – just create a repo and play a bit with it.
Get the desktop client https://desktop.github.com/ and a nice editor: https://atom.io/
You will most likely never see the command line then (well, unless you really messed something up)

Created a json file for Mystic Forge recipes

in API Development

Posted by: smiley.1438

smiley.1438

Right, this thread: https://forum-en.gw2archive.eu/forum/community/api/Mystic-Forge-Recipes-2/5349805

I suggested, that you’d best put it into a public repository like GitHub so that anyone could contribute.
https://gist.github.com/codemasher/e2e0e5e39de5dc4439e0

Is this application in allowed by the TOS ?

in API Development

Posted by: smiley.1438

smiley.1438

All good!

(see my Overwolf app, which basically sums up your post)

(edited by smiley.1438)

API for retriving player coordinates

in API Development

Posted by: smiley.1438

smiley.1438

The only way to get a player’s current position is the Mumble Link API.

See
http://wiki.guildwars2.com/wiki/Mumble
https://forum-en.gw2archive.eu/forum/community/api/Map-API-Mumble-Mashup/first
https://forum-en.gw2archive.eu/forum/community/api/Gw2-Location-Tracker/first

for more info

As a bonus, see this: https://github.com/arenanet/api-cdi/pull/57 (which points especially at the wikis)

(edited by smiley.1438)

Knowing which borderland map has a given id

in API Development

Posted by: smiley.1438

smiley.1438

The color association is always the same. However, this is just an empirical assumption which has not yet been proven wrong by the devs.

See also: https://github.com/arenanet/api-cdi/pull/8#issuecomment-103010478 (and following comments)

New WvW Map API

in API Development

Posted by: smiley.1438

smiley.1438

My guess: not before 23-10-2015 (well, perhaps a beta)

/v2/colors Question

in API Development

Posted by: smiley.1438

smiley.1438

New endpoints: wallets and unlocks

in API Development

Posted by: smiley.1438

smiley.1438

Thanks for all the mentions, it’s awesome to know that people like and use the site. Keeps the motivation going to push further!

Oh man, I just noticed the share character function.

Gonna make all my guildies use this to share builds. We’ve been looking for this for awhile — massive thanks!

Tell your team to finally make builds savable and expose the backend so that we can create stuff like this http://youpawned.com/code/OQRCAcxDP9HknNd7gqaVANA (which is still a proof of concept >.<)

Item flags returning flags + game_type

in API Development

Posted by: smiley.1438

smiley.1438

Yea, noticed this too a few days ago. Item flags have gone wild! (or maybe something changing in preparation for the addon?)