Showing Posts For Drakma.1549:

9/6 Ehmry Bay/Maguuma/Borlis Pass

in Match-ups

Posted by: Drakma.1549

Drakma.1549

Making an argument based on ranking is stupid. If you haven’t figured out by now, the Glicko2 implementation anet is using is flawed. Rank means nothing.

9/6 Ehmry Bay/Maguuma/Borlis Pass

in Match-ups

Posted by: Drakma.1549

Drakma.1549

Quite honestly you were probably getting splash damage.

API Changes with upcoming WvW changes?

in API Development

Posted by: Drakma.1549

Drakma.1549

So I was wondering if there are any changes to the way the WvW API works with the upcoming changes to League play and the objective changes.

If so, will we be able to get a preview of them before they actually go live so we can fix our applications and wrappers?

Event API gives incorrect results

in API Development

Posted by: Drakma.1549

Drakma.1549

Trading Post API Issues?

in API Development

Posted by: Drakma.1549

Drakma.1549

Well this certainly sucks. I guess it’s time to start testing what the “acceptable” time period is between requests.

Trading Post API Issues?

in API Development

Posted by: Drakma.1549

Drakma.1549

I know that the TP API is not explicitly approved for use; however, is there anybody out there currently using this and just started experiencing issues today?

I can authenticate and pull about 3 to 5 items then suddenly ERROR 500.

Anybody else seeing this?

EU Specific Outage with WvW API

in API Development

Posted by: Drakma.1549

Drakma.1549

Seiishizo brought it to my attention that the WvW information for EU servers has not updated for at least 30 minutes.

It does not appear to be all servers, merely some (Desolation for example has not updated for almost 40 minutes)

Total Disaster Time?

in API Development

Posted by: Drakma.1549

Drakma.1549

Just a reminder

http://gw2stats.net/status/current will tell you the current status of the Anet API

WvW API Downtime?

in API Development

Posted by: Drakma.1549

Drakma.1549

As of this post the WvW APIs have been down for over 2.5 hours. Was this planned and I missed a post or is this something serious?

API Suggestion

in API Development

Posted by: Drakma.1549

Drakma.1549

Until such time happens, I do have the following available on my site (gw2stats.net)

http://gw2stats.net/api/objectives.json

http://gw2stats.net/api/objectives.json?type=match&id=1-1 will give a single match

http://gw2stats.net/api/objectives.json?type=world&id=1010 will give a single world

No “type” argument will give all the objectives across all worlds (this can take up to a second or more to pull)

All API’s on gw2stats.net support CORS and callbacks

You can view examples at http://gw2stats.net/status/api

(edited by Drakma.1549)

Itemdetails: Problem with some Items

in API Development

Posted by: Drakma.1549

Drakma.1549

The two missing items are “bag of coins”. If you haven’t been caching the items list you will miss items that may have been deprecated. There is no item file image available for the missing items so I would assume they have been deprecated.

The no name item also appears to be a deprecated item or a place holder.

Unfortunately there’s no clear way for us to determine that from the API. You just have to infer from historical practices. I am quite sure this is something the API team is looking at and will implement a better solution for deprecated/deleted/placeholder items.

Render service for item icons (404)

in API Development

Posted by: Drakma.1549

Drakma.1549

Converted all if gw2stats.net to the render service. Thank you all so much for this. Now I don’t have to poll the trading post all the time.

API/Tile status monitor

in API Development

Posted by: Drakma.1549

Drakma.1549

Still looking at how I can expand the events.json to check every server…

In the mean time I have added the new servers related to data assets to the API

It now includes:
https://render.guildwars2.com
files.json

BP/SBI/Ebay

in Match-ups

Posted by: Drakma.1549

Drakma.1549

Yes, it’s official. We can start calling them Bragmore Pass. They have surpassed Ego Bay.

Also…. :pagesnipe:

BP/SBI/Ebay

in Match-ups

Posted by: Drakma.1549

Drakma.1549

But I thought BP never zerged?

BP/SBI/Ebay

in Match-ups

Posted by: Drakma.1549

Drakma.1549

I suffered through all 46 minutes of it. All can say is, “wow”

I don’t even hear this much self-fellating on the ehmry forums.

Congratulations on your 46 minutes of “victory” with “even” numbers. You really “owned” us.

Can we start calling you “Bragmore Pass” now?

BP/SBI/Ebay

in Match-ups

Posted by: Drakma.1549

Drakma.1549

What happened to BP’s guild [ZERG]?

Did they zerg off a cliff??? see what I did there?

API Limits?

in API Development

Posted by: Drakma.1549

Drakma.1549

There is currently no limit on calls. Although it is always best to cache your data to reduce stress on their API servers.

It has become silent in here...

in API Development

Posted by: Drakma.1549

Drakma.1549

I don’t think anybody meant anything bad by this. I know my post was in jest.

I think what you’re seeing is a community that is very excited about your product (both the game and the API).

(edited by Drakma.1549)

It has become silent in here...

in API Development

Posted by: Drakma.1549

Drakma.1549

I do hope this isn’t getting thrown to the back burner. We had a flourish of activity and then… nothing…

I’m holding out hope that I’ll come home from work on Monday and there will be 20 updates with new APIs.

7/26 - SBI / CD / EB

in Match-ups

Posted by: Drakma.1549

Drakma.1549

I am an angry old man. Get off my lawn and stopping telling me what to do!

7/26 - SBI / CD / EB

in Match-ups

Posted by: Drakma.1549

Drakma.1549

This thread needs more drama. I shall start.

El Jefe. Your post is racist and it offends me.

Icons, Icons, Icons

in API Development

Posted by: Drakma.1549

Drakma.1549

To add to this, I would love to have the background images that are used in display boxes in game.

Getting Official Rating

in API Development

Posted by: Drakma.1549

Drakma.1549

Getting Official Rating

in API Development

Posted by: Drakma.1549

Drakma.1549

easy enough to put in. gimme 5 more minutes

It has become silent in here...

in API Development

Posted by: Drakma.1549

Drakma.1549

If you’re bored… come chat!

http://gw2stats.net/chat

Getting Official Rating

in API Development

Posted by: Drakma.1549

Drakma.1549

give me a couple minutes, I’ll put up a ratings only json

It has become silent in here...

in API Development

Posted by: Drakma.1549

Drakma.1549

I’d love to see an update from Cliff.

Maybe if we say his name three times…

gw2stats.net Looking for Assistance

in API Development

Posted by: Drakma.1549

Drakma.1549

Quite simply there is a lot to do and I am but one person. Check out the post at http://gw2stats.net/blog/current if you are interested in helping out.

How to correspond match ids to server names?

in API Development

Posted by: Drakma.1549

Drakma.1549

It specifically tells you in the matches.json which world is which.

red_world_id is the world_id of the red opponent
blue_world_id is the blue opponent

Just match those world_ids to world_names.json

And yes, scores are always in the order of Red, Blue, Green

(edited by Drakma.1549)

API/Tile status monitor

in API Development

Posted by: Drakma.1549

Drakma.1549

I’ll see what I can do to expand events to include all servers.

7/19 BP/SOS/EB

in Match-ups

Posted by: Drakma.1549

Drakma.1549

I think quite frankly it’s not that EB has lost guilds, but more so that it is summer time.

Most of us have been playing WvW for 8 months straight. The weather is beautiful, people are on vacation; it’s time for a break.

Sure, losing two guilds hurts numbers-wise, but EB is resilient. We’ll be back up where we were before.

7/12 CD/EB/BP

in Match-ups

Posted by: Drakma.1549

Drakma.1549

You missed the screenshot where they all ran in and looked at the hole in the wall and facepalmed.

Sadly, I think I can safely say I have seen every server ebay was ever matched up against do this as well. This is not strictly confined to just ebay. Hell I’ve laid a ram before when coming from se camp to the tower until somebody said, “Uh. Drak… the walls down”

Tunnel-vision is a helluva drug

[API Suggestion] sPvP API

in API Development

Posted by: Drakma.1549

Drakma.1549

like to see the arena 20 – 20 this is not the case that there is no arena
paid tournaments
opposition guilds, very short of the social component, without mmo less interesting and people will quickly leave the Projects, and was not sure if the game is designed as a single,’d like mmo

what?

gw2stats.net API

in API Development

Posted by: Drakma.1549

Drakma.1549

Fixed a bug where numbers were being cast as strings. I know a couple people are using it already, please adjust accordingly.

gw2stats.net API

in API Development

Posted by: Drakma.1549

Drakma.1549

So, I’ve slowing been moving a lot of my data storage off to another server and moving towards retrieving the data remotely.

Everything seems to be working great so I wanted to release my first installment of my API

http://gw2stats.net/api/matches.json?objectives=true&ratings=true

Is the first API I have released. More information on it can be seen at http://gw2stats.net/status/api

The data contained within the returned json is anywhere from 1 second to 8 seconds old but it is the latest cached data I have.

Let me know what you think. Good, bad, something you’d like to add?

7/12 CD/EB/BP

in Match-ups

Posted by: Drakma.1549

Drakma.1549

If Ebay could stop exploiting their way into Klovan that would be great…

I’m looking at you [Para] and [FTF].

I realize that this may be a difficult concept. But, you have all the information in your post.

I think a more proper request would have been, “Could [Para] and [FTF] of Ehmry Bay please stop exploiting”

[FTF] and [Para] are not all of EBay… just like EBay is not just [FTF] and [Para]

API/Tile status monitor

in API Development

Posted by: Drakma.1549

Drakma.1549

CORS should be enabled.

Callbacks now supported.

I did this on my phone in the car. If something does not work, blame the bumpy road.

[API Suggestion] MD5 Checksum API

in API Development

Posted by: Drakma.1549

Drakma.1549

OK, I think I get it now. You’re basically looking for an API CDN. I, honestly would worry about aging data as it moved across ‘net. Some of the data literally changes multiple times per second. I really don’t know how that would work out.

But, I’ll try to answer your questions in order.

- Yes, by “user” I mean an HTML browser
- Yes, I am planning on releasing a JSON (and possibly CSV) API

As far as only caching what I need, I do that now. There is not a single API that I don’t use currently so I end up caching them all. But as I said previously, I don’t always cache the everything (specifically the lesser used items/recipes).

I’m hesitant to release my code (honestly) only because I am a casual programmer. Back in the day, I was a pretty hard-core Perl, C/C++ programmer, but those days are long gone. I set out to learn PHP and JS with this project so I am quite sure that my code would look horrendous in the eyes of some “real” programmers.

However, I am more than happy to talk about my methodologies and even calculations that I use.

Quite basically, I retrieve what I need as often as I possibly can. With the exception of one call, I always put the daemon program to “sleep” for a short period of time before it just continues on refreshing the data. That one exception is match_details.json. I literally pull that as often as can be pulled for the sheer fact that I maintain a Live Map of WvW objectives.

As far as status calculations are concerned, that’s pretty simple. I already proved that information in the status_codes.json from my site. Viewing http://gw2stats.net/api/status_codes.json should tell you what I do for calculations.

As far as what I do pragmatically, it’s quite simple (This is what I do in PHP):

1) Start a timer
2) Fetch the latest API using curl.
3) Stop timer and calculate difference from Step 1 in millisends: This becomes retrieval time.
3) Using json_decode, I convert the raw json to an array.
4) Using count(), I count the total number of elements in the array (this includes nesting)
5) Ping the specified API domain (return -1 if down)
6) This all get’s thrown into MySQL
7) API is a live pull from the MySQL database

I’m really enjoying this thread. It’s making me think about the way I do some things and sometimes I just like to talk “nerd.”

List of apps/websites using the API

in API Development

Posted by: Drakma.1549

Drakma.1549

I’m requesting an update to the gw2stats.net entry. It does a whole lot more than just live images now.

- WvW stats
- WvW Live Map
- WvW Ranks
- Event Maps
- Items Database
- Trading Post Data (updated hourly)
- GW2 API Status
- Latest Announcements, Build Notes and Youtube content

Some things I am currently working on
- Recipe Database
- Trading Post watchlists (more frequent updates)
- Dragon/Boss Timers
- Open Temples
- Forums
- Guides

If you haven’t seen it lately, just head on over to http://gw2stats.net and check it out. It’s changed a lot in the last couple months.

Starting soon, I’ll be looking for some contributors to the site. Some of the type of things I am looking for are: Market Analysis of the TP, Dungeon Guides, Build Guids, WvW Guides, S/TPvP and crafting constributors. If you are interested, please let me know.

[API Suggestion] MD5 Checksum API

in API Development

Posted by: Drakma.1549

Drakma.1549

A 3rd party site could provide this functionality. Sites like gwstats.net are already constantly checking some of the APIs~, so sites like those could also provide a checksum or modified since.

The problem with gw2stats.net is that it shows the response times with reference from only one particular server. Furthermore, they do not cache and provide API responses back to other clients (only API statuses), so it is somewhat of a wasted bandwidth.

If we have a number of servers across the world that would cache and redistribute API responses that would have been more useful since the more popular responses would tend to be cached. With enough caches, even if the anet origin server goes down, clients can still operate in a limited fashion.

I’ve actually been thinking of adding something like this to gw2stats.net since I implemented the API status tool.

However, this is no small task. For example, I have been caching the data since May 29th (shortly after the API was released) and the amount of data is staggering. So staggering it’s at the point where I’m seriously having to consider moving hosts.

For example, the WvW data alone is 18GB without indexes in the database. Indexes add another 6GB. Now I realise I wouldn’t have to have that sort of retention for a simple checksum API, but the number of records alone that would have to be checked constantly numbers in the millions.

The events.json alone is 422,000 elements. There are over 26,000 items that would need to be checked constantly in the item_details.json call alone. To compare each item to an old version would take approximately 8 hours with the speed of the API, data storage, and latency added in.

That being said, there are some things that can be done pragmatically that should help you out. For instance, you will almost always have to pull some APIs live each time instead of checking to see if they changed. Some of those off the top of my head are match_details.json, events.json, match_details.json and guild_details.json. Some calls even give you a timestamp on when you should check for an update next (matches.json).

In addition to the above, I also have some tricks that help to keep the data up-to-date. For instance, when a user uses my website to view item information, it will first check the API to see if the data has changed. If it has, it updates it before it presents it to the user. This keeps the frequently accessed data refreshed and the seldom or never accessed data the same. Lower bandwidth, less overhead.

I’ll try to wrap this up here as this post has become longer than I expected, but. I will attempt to make a checksum API for less “active” data to see if that is something that will be useful.

Finally, you mentioned that gw2stats.net is only one frame of reference. You are absolutely correct. I would love to be able to provide a service where you can run a script on your side and have it send data to gw2stats.net for a more “worldwide” representation of access to the GW2 API. If there is interest in that, I will be more than happy to provide it.

7/5: DB/TC/EB

in Match-ups

Posted by: Drakma.1549

Drakma.1549

It’s sad that a server that is running on the top of the match up needs to use hacks to kick the underdog.

Good job TC. Specifically EP and CERN. Nice job with those zoom hacks to take Hills and NW Tower on our home bl.

Funny, EP was complaining that EBay was doing the zoom hack.

If we’re talking about the same event. I was the only one on the ac and no matter how hard I tried, I just couldn’t make it reach OVER the wall to hit your ac. Your group, however, did not have that issue.

Uh? we didn’t take any AC with another AC in hills, we only had catapults on inner and rams on outter.

Do you realize we had 5+ necros and we can take any AC near the walls right ? no need for AC, it is faster with necros. L2NECRO :-P

Edit: I just remember we had to put an AC before going to lord rooms, you guys had a ballista just in the way, and that doesn’t require skills to take it down.

Well I was specifically talking about NW tower with the ac over the wall. I didn’t manage to get a screenshot of that, but here have this one:

Attachments:

7/5: DB/TC/EB

in Match-ups

Posted by: Drakma.1549

Drakma.1549

It’s sad that a server that is running on the top of the match up needs to use hacks to kick the underdog.

Good job TC. Specifically EP and CERN. Nice job with those zoom hacks to take Hills and NW Tower on our home bl.

Funny, EP was complaining that EBay was doing the zoom hack.

If we’re talking about the same event. I was the only one on the ac and no matter how hard I tried, I just couldn’t make it reach OVER the wall to hit your ac. Your group, however, did not have that issue.

7/5: DB/TC/EB

in Match-ups

Posted by: Drakma.1549

Drakma.1549

It’s sad that a server that is running on the top of the match up needs to use hacks to kick the underdog.

Good job TC. Specifically EP and CERN. Nice job with those zoom hacks to take Hills and NW Tower on our home bl.

7/5: DB/TC/EB

in Match-ups

Posted by: Drakma.1549

Drakma.1549

I kinda felt bad for EBay then I thought about the massive amount of lootbags they will be getting from DB and TC. Walking lootbags will be everywhere.

My bags were full within the first 15 minutes of the matchup.

WTB 25slot bags and a stack of merchants.

API/Tile status monitor

in API Development

Posted by: Drakma.1549

Drakma.1549

I’m getting an error "Uncaught SyntaxError: Unexpected token : " when calling the stats service. Seems to be caused by a recent change.

Javascript:

$.ajax({
dataType: “jsonp”,
url: “http://gw2stats.net/api/status.json”,
data: null,
success: function (data) {
a4.Base.log(data);
}
})
.fail(function () { alert(“Error getting Guild Wars 2 api status.”) });

I used to be able to call with dataType=“json”, but that stopped working this morning.

FYI: That error could indicate that the callback is not being returned with the json results. Remember that jsonp results are wrapped in a callback, not just raw json.

This is just raw json. I haven’t changed anything since release as far as status.json is concerned. I will, however, dig into this and see if there is something on my end.

API/Tile status monitor

in API Development

Posted by: Drakma.1549

Drakma.1549

Thanks. Talking about *_details.json, I don’t see the status for item_details.json, did you miss that?

Do you plan to release your source code?

Whoops. oversight on my side. Added now.

I could release the source, but I doubt it would be helpful at all tbh. You don’t honestly want my spaghetti code anyway.

(edited by Drakma.1549)

API/Tile status monitor

in API Development

Posted by: Drakma.1549

Drakma.1549

I see that you also call recipe_details.json. What parameters are you calling it with?

currently all of the *_details.json APIs are being called without any parameters. This results in an error being returned.

I will probably add some common parameters for the polling process. Something that should just “be” there all the time regardless.

But, as of right now, it just checks to make sure that the API is returning “something.”

As an added note, this does not do data validity. It just makes sure that it is up and returning data. If I have some spare time, I may add this.

If you have any additions you’d like to make please let me know here and I’ll see what I can do to add it in. I made this in about 30 minutes one night, so I am sure there may be bugs and things I overlooked.

API/Tile status monitor

in API Development

Posted by: Drakma.1549

Drakma.1549

events.json is always on slow retrieve because of its size eh?

Actually, it does go below 3000ms occasionally.

I will, however, be changing the “SLOW RETRIEVE” response to records per millisecond.

I needed a little data first to set the parameters and to tweak it.

API/Tile status monitor

in API Development

Posted by: Drakma.1549

Drakma.1549

Status codes are as follows

“OK”: “No error was received : Completed successfully”
“UNREACHABLE”: “The host was unreachable : host may be down”
“DOWN”: “Host was reachable but API returned error : API may be down”
“PARTIAL”: “Only partial data was received”
“INCREASING PING”:“Ping to the API host has increased 100ms from last update”
“HIGH PING”:“Ping to the API host has reached a minimum of 750ms”
“SLOW RETRIEVE”: “API host and API are up : Data retrieval is over 3 seconds”