FYI: https://forum-en.gw2archive.eu/forum/community/api/API-Suggestion-Maps-API/
(Can a Moderator megre this please?)
this? https://forum-en.gw2archive.eu/forum/community/api/Guide-to-the-Black-Lion-Trading-Co-API/
(some programming skills may be required…)
(edited by smiley.1438)
The reason behind this is to sanitize the input in order to prevent XSS attacks. The only problem is, that the forum’s software is unable to convert the sanitized characters back from their respective HTML entities once they are stored… This is especially ridiculous in the API subforums where it is likely that someone posts a code snippet…
So yes, please fix it!
I was wondering how the karma cost and vendor cost can be found? I manage to get all the information using the official APIs and spidy APIs, but no way I can get these remaining informations.
Any idea would be appreciated.
There’s currently no official (or legal) way to get the price of an item. I think this has been requested more than once over here. → see first post
2 new items, 2 new errors:
https://api.guildwars2.com/v1/item_details.json?item_id=49846
https://api.guildwars2.com/v1/item_details.json?item_id=49861
€: nevermind, errors are gone since the update came in.
(edited by smiley.1438)
Perhaps the machine you are querying from doesn’t have some standard root certificates installed. Ensure the GeoTrust Global CA cert in installed on your machine.
https://forum-en.gw2archive.eu/forum/community/api/Connection-issue/
https://forum-en.gw2archive.eu/forum/community/api/Java-access-to-the-api/
https://forum-en.gw2archive.eu/forum/community/api/Certificate-problems-with-Android-Apps/
You may also want to check out the list of API Wrappers and dig through some code to see how others handled this problem
(edited by smiley.1438)
Since most people tend to use a TL;DR version i think it’s totally ok in this case. If one wishes to see a further explaination, he could just hop over to the linked forum thread.
EDIT: Just a random note regarding to this, wouldn’t it be easier to put these formulas on the wiki for easier access? I notice a lot of people are having trouble with the conversion between coordinates.
These are already over here in multiple threads – have a look at this one:
https://forum-en.gw2archive.eu/forum/community/api/How-to-convert-from-Mumble-to-Map-API-Coords/
I’ve added the formula to the german translation of the API docs back when i did the translation:
http://wiki-de.guildwars2.com/wiki/API/v1/event_details
Since noone seemed to adopt it, i’ve added it to the english wiki too (right now):
http://wiki.guildwars2.com/wiki/API:1/event_details
The french one seems indeed a bit weird – at least inconsistent to the others. So in french would be possibly “Cercle de feu” → “Territoires frontaliers (Cercle de feu)”. Since these names apparently are taken directly from the game (including bugs) i guess theres some string replacement done here. Further explaination by a dev would be appreciated
Have you tried checking it with our Location Tracker? I haven’t yet, but it might give you a glimpse if you have an error in your code or the coordinates for the waypoint are somehow wrong in the API (i doubt the latter). You can also check out the code of our tool which is written in C/C++ over here: https://gw2apicpp.codeplex.com/SourceControl/latest
Oh btw. it would be great if your TS plugin would also feature sending the location data to a specified server too
(edited by smiley.1438)
I have also something small to report, while iterating over the maps.json entries, it occured to me that the Borderlands do not have their colors listed (map ids 94, 95 and 96). While the english ones have the name " Borderlands" (note the extra space), the spanish are worse: "Tierras fronterizas de ". Now I’m not spanish, but I think “de” can be read as something like “of”. So there’s definitely missing something here :p.
Thats not a bug. These names are just pre- and suffixes (depending on the language) for the current map name so that you just need to add the worldname to it.
e.g. my homeworld is “Ring of Fire”, so it would end up in “Ring of Fire Borderlands” – in spanish it would be “Anillo de Fuego” for the world, and the map would be named “Tierras fronterizas de Anillo de Fuego”
(edited by smiley.1438)
Why did you then mark your post as question and did not post into one of the appropirate suggestion threads?
https://forum-en.gw2archive.eu/forum/community/api/API-Suggestion-Characters/
https://forum-en.gw2archive.eu/forum/community/api/API-Suggestion-World-vs-World/
At this point, it would be far more damaging to change the spec and break everyone’s stuff, so I would prefer it if no changes were made. However, presenting a consistent format for all new APIs going forward would be a great idea.
I wouldn’t mind at all if it would break stuff in favour of overall consistent responses.
These APIs are in beta, so don’t be surprised if the interfaces change, but we will try to warn you if we have to make any breaking changes.
Just btw. – We’re talking about JSON here. We’re talking about object identifiers and not about methods. Within it’s intended target languages (JS/web), these object identifiers are perfectly fine and useful – e.g. for jQuery/prototype’s each() methods where they are passed as index argument.
(edited by smiley.1438)
I’m sorry, I don’t know what “BLTP” is an acronym for. I don’t see anything in the list that it could be — http://wiki.guildwars2.com/wiki/API:1
BLTP – Black Lion Trading Post (my guess)
Unless I’ve missed it, that isn’t a part of the official public API.
It isn’t – but as you can read in this subforum, it’s happily used…
Hey Stefan,
thanks for the update. My guess is that those items haven’t been discovered but were added with some content updates. (e.g. the Mr Funkel minipet – i don’t think it had to be discovered – also it had a correct name before – we track item renaming → http://gw2wbot.darthmaim.de/rss/renamedItems/ )
(edited by smiley.1438)
I’m sorry, I don’t know what “BLTP” is an acronym for. I don’t see anything in the list that it could be — http://wiki.guildwars2.com/wiki/API:1
BLTP – Black Lion Trading Post (my guess)
Hey Stefan,
thanks for the heads-up. I ran the script again which checked for missing items (http://gw2.chillerlan.net/missing_items.html) and it seems they’re all back again. Thanks!
Oh, while i’m at it: there are still several items with a name like ((ITEM_NAME))
http://gw2wbot.darthmaim.de/itemlist.php?name=((
(edited by smiley.1438)
I guess even anet isn’t able to reliable determine the home server of a player during WvW (Ya know, the strange server names of people in WvW…). However it’s at least possible to get the current world_id of a player who is NOT in WvW AND NOT in overflow via the Mumble API. The only reliable source for player info like that would (hopefully) be possible when the API finally supports OAuth and then delivers detailed data…
A simple “workaround” which i use in such cases is just to do a double post containing the message “pagination fix” along with link to one of these threads where this bug is reported… You’re welcome
(edited by smiley.1438)
Aside of the account related problem it would be good if a download link to the installer would be prominent on the homepage to avoid all the hassle when reinstalling the game. Even Guild Wars 1 had that already. Forcing players to log in to get the public download link is usability and user friendlyness at it’s worst.
Although I don’t support it entirely, I can understand why. If everyone can download the game, a lot of players willing to try if they can connect will download the game and consume a lot of bandwidth from Anet, wich is a waste of time. Making that only registered players can download the game, they only get the bandwidth used in the people that will play the game.
So… it’s just to save money, and i’m fine with that, as much annoying as it can be.
Am I wrong, Danicia?
These downloads are served via a so called “content delivery network” (CDN, cloudfrond.net -> Amazon AWS) and it wouldn’t affect the bandwith used for the game in no way – and i doubt it would cause much more costs – who would download and install a game without having an account?
(edited by smiley.1438)
broken pagination is still broken…
https://forum-en.gw2archive.eu/forum/support/forum/Thread-loaded-as-Empty/first#post2149426
https://forum-en.gw2archive.eu/forum/support/forum/No-posts-in-a-thread/first#post2693455
i wonder if this will ever get fixed – it isn’t too hard to create simple (and reliable) paginations…
for example:
https://github.com/codemasher/gw2-database/blob/master/inc/utils.inc.php#L82
https://github.com/codemasher/gw2-database/blob/master/gw2itemsearch.php#L109
(edited by smiley.1438)
Oh..lol…well, I wouldn’t have any idea how to do that. Thanks for the info, though.
Do what? Disable JavaScript? Oh, thats not that hard and actually useful to improve overall browsing security
For Chrome: ScriptSafe
For Firefox: NoScript
combined with an adblocker like AdBlock Plus you’re pretty safe against the most common threats from the web. (and you may discover things you’ve not seen before)
(Sorry for thread highjacking)
How do you get the year to show up on the dates on posts? I can’t manage that.
I can only get either: so many minutes/months ago…or…just the month/day (or today/yesterday).
JavaScript disabled.
There’s a little script running which converts all the dates from the actual date into “… ago”. You can see the real date when you hover over it.
<time class="changeabletime" datetime="2014-01-07T14:46:54Z" title="January 07, 2014 14:46">about 15 minutes ago</time>
Aside of the account related problem it would be good if a download link to the installer would be prominent on the homepage to avoid all the hassle when reinstalling the game. Even Guild Wars 1 had that already. Forcing players to log in to get the public download link is usability and user friendlyness at it’s worst.
http://cloudfront.guildwars2.com/client/Gw2Setup.exe
http://cloudfront.guildwars2.com/client/Guild%20Wars%202.dmg
Oh, i see, i just checked on minimum zoom and Kessex didn’t look if it has been changed at all.
The script is just intended as a simple (and hopefully understandable) example which could basically ported to any other language
You know that the “discovered items” list has been truncated a couple of months ago and a lot of items which are actually in game have not been “rediscovered” yet. (btw. i have those rcipes in my local DB)
what do i do
Ask in the appropirate forum:
https://forum-en.gw2archive.eu/forum/support/bugs
https://forum-en.gw2archive.eu/forum/game/gw2
As far as i remember, there was only one significant update of the continent map tiles yet: when the ruins were added to WvW. Temporary content has never been added to the continents maps (not even the toxic stuff in kessex, which is already there for over 3 months or so?) and i doubt this will happen in near future. However, instance maps are usually added with their respective game updates.
Also, unfortunately Anet doesn’t seem to bother to tell us if there were map tile updates, so you’ll need to check manually if something has changed. You might want to check out a script i wrote to get a portion of the map:
https://gist.github.com/codemasher/75d8e1a24b2363cabebf
Demo over here: http://gw2.chillerlan.net/examples/gw2staticmaps.php
(edited by smiley.1438)
I don’t mind the risk of an infraction, but i’d like to share a quote on this topic from #gww:
We’ve added 10 years to your sentence for asking why you’re in jail.
See this thread: https://forum-en.gw2archive.eu/forum/community/api/Event-Details-API-location-coordinates/2262330
or the TL;DR version over here: https://github.com/codemasher/gw2api-tools/blob/master/examples/gw2location.php#L209
MY EYES!!! THEY’RE BLEEDING OUT MY SKULL!!!
Brain-melting, eh?
See this thread: https://forum-en.gw2archive.eu/forum/community/api/Event-Details-API-location-coordinates/2262330
or the TL;DR version over here: https://github.com/codemasher/gw2api-tools/blob/master/examples/gw2location.php#L209
(edited by smiley.1438)
So, how would you make data available which you can only see when you’re logged to your account? Right, via OAuth.
This might give you a glimpse of how it would work (if you’re unfamiliar with OAuth): http://collaboradev.com/2011/04/01/twitter-oauth-php-tutorial/
(edited by smiley.1438)
Hey, some of you might be also interested in this:
http://overwolf.uservoice.com/forums/235154-feature-requests/suggestions/5262764-mumble-integration
(in other words: vote for it! )
When the API finally supports OAuth, things like these become possible.
MAKE IT HAPPEN, Anet!
from http://www.fangamer.net/pages/about
The Fangamer Forum is
an advanced forum software packagethe worst piece of crap ever we wrote from scratch for the Starmen.Net Forum. We recentlylicensed the software tomade ArenaNet throw money at us for use in their Guild Wars Support Forum and still laugh at them for doing this.
Seriously, i bet every programmer you can find in the API subforum would write a better forum from scratch. I’ve never used any custom styles before – this forum (for an AAA game title!) was the first website ever to do so in order to make it at least a bit better usable. Of course it doesn’t solve the problems with the search…
On a side note: i was pleasantly surprised that the WildStar-Online Forums actually use the Invision Power Board (along with NCSoft login), which is one of the best commercial community solutions to date. I still cannot understand why ArenaNet chose the current crap…
Edit: The Fangamer blog is “Proudly powered by WordPress” – i guess we all know why…
/rant
(edited by smiley.1438)
Just wanted to bump this thread because… ya know – it’s still broken. Will it ever be fixed?
It’s just the way the JSON is built – as you can see, the IDs are quite ordered – EB starts at 1, followed by blue, red, green border (in that order) – the ruins objectives were added later and start with the id after the “normal” objectives which is 57/Cragtop. They were just added randomly as it appears.
The order of those IDs isn’t as random as it appears – the ID in match_details.json and the object identifier in objectives.json is the (game internal?) ID of that objective – you just need to assign them to the corresponding ID in objectives.json. There are a lot of examples around so that you can get an idea of how it works. You might also want to use the objectives.json which i’ve created instead of the one from the API – it contains some additional info like the objectives coordinates and their correct names in all 4 languages: https://gist.github.com/codemasher/bac2b4f87e7af128087e
I have some PHP examples as well as a working WvW map application, where you can get some ideas (not yet updated to cover the new ruin objectives):
https://github.com/codemasher/gw2api-tools/blob/master/examples/gw2wvw.php
https://github.com/codemasher/gw2api-tools/blob/master/inc/wvw_stats.inc.php
http://gw2.chillerlan.net/examples/gw2wvw.php
https://chillerlan.net/gw2/wvw.html (it doesn’t use the GW2 maps API yet because i created this app long before it was released)
(edited by smiley.1438)
This doesn’t make it any better – see my edit above. Plus: compared to texmod, the TP API and therefore any software whic uses it accesses the game directly and has possibly an impact on the market.
Players in GW1 have been banned for less in the past.
FYI: GW2Spidy uses the trading post API aswell so it’s the same “grey zone” as if you would access directly.
€: Anet didn’t make any official statements about software which access the game direct or indirect. I think the only exception was Texmod which was said to be ok to use because it just changes textures on the clients PC.
(edited by smiley.1438)
I just mentioned it because you were asking for C++ and VB examples – and since they’re all kind of C derivates it’s sometimes helpful to look beyond the Tellerrand to gather ideas
Oh, a moderator may be so kind and split this topic if possible. Thanks.
Yep it’s the result. And yes, PHP is a C derivate
(so you might want to check out PHP and maybe JavaScript (also C derivate, not Java) examples for ideas, too)
There you are, have fun
http://gw2.chillerlan.net/missing_items.html
For me it’s as easy as:
$q = sql_query('SELECT * FROM `gw2_items`');
$count = count($q);
if(is_array($q) && $count > 0){
$data = gw2_api_request('items.json');
if(is_array($data) && isset($data['items'])){
foreach($q as $item){
if(!in_array($item['id'], $data['items'])){
//yada yada yada
}
}
}
}
Sure, it could be quite more effective, but it serves the point.
(edited by smiley.1438)
Well, there are still like 1500+ items which haven’t been discovered again since the last flush of items.json – and a lot of these are not items which have been removed or are seasonal (e.g. recipe items for a lot of ascenced weapons are missing).
To be exact: my local database lists 31216 items and 8233 recipes while items.json lists 29688 and recipes.json 8115.
(edited by smiley.1438)
Yes, please! Or even better: create a stickied (non discussion) FAQ thread where we could qoute or link important information.
Along with these qoutes from Cliff:
caching:
Yes, please cache the results!
The names are guaranteed to be static between game patches/builds, but it’s possible for the list to grow between patches. The Events API, like the Item API, only shows events and maps that have been discovered by players.
So the ‘perfect’ logic would be to cache the results, and only do a lookup after a patch or if you don’t have a cached result for a particular event ID. And you probably don’t really need to do it between patches, as event names will rarely if ever change after being created.
item discovery:
If any player in the world participates in an event, then it is considered discovered.
If any player in the world acquires an item, then it is considered discovered.How quickly an item or event is discovered depends on how well-hidden it is in the world. It’s possible that an event or item might never be discovered.
Edit: To clarify, once something is discovered on any world, it is considered discovered on all worlds.
(edited by smiley.1438)
C’mon, that isn’t too hard to find: http://wiki.guildwars2.com/wiki/API:List_of_wrappers