Showing Posts For AdelphiA.9287:

Long load times...

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

Well, everything seems to be running smoothly again now so I’m guessing it was just a blip.

AdelphiA.9287 – The Enigma Guild

Long load times...

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

Is anyone else using Piken Square – EU server and getting long load times when querying event data? Both my apps are freezing for a good 30 seconds before returning any data, but only on events; map and world data are fine.

AdelphiA.9287 – The Enigma Guild

Allow querying for multiple event_id's

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

Due to the way URLs are handled by browsers and servers, the acceptable length of a URL is 2083 characters max (thanks to IE). With that amount of character space, you can get a maximum of 54 events at a time using a comma separated list in the URL at a time.
Most browsers aside from IE will handle up to 64k characters per url, but servers also have limits so it’s usually a good idea to keep them from exceeding 2000 characters total, granting you 52 events at a time.

ex:
https://api.guildwars2.com/v1/events.json?event_ids=6BD7C8B0-2605-4819-9AE6-EF2849098090,
C876757A-EF3E-4FBE-A484-07FF790D9B05,
99254BA6-F5AE-4B07-91F1-61A9E7C51A51,
0464CB9E-1848-4AAA-BA31-4779A959DD71

base URL length = 52 characters from the h to the =
-1 because the last item doesn’t need a comma
each event id and a comma = 37 characters.

Max:
2083-53=2030
2030/37=54.864~

Average:
2000-53=1947
1947/37=52.621~

You are wasting valuable character space by using the “-”. “C876757AEF3E4FBEA48407FF790D9B05” is the same as “C876757A-EF3E-4FBE-A484-07FF790D9B05”, saving you 4 characters per ID. Not much I know, but over 52 ID’s that’s 208 wasted characters.

AdelphiA.9287 – The Enigma Guild

gw2Stats.net

in Community Creations

Posted by: AdelphiA.9287

AdelphiA.9287

OK. Thanks for letting us know.

AdelphiA.9287 – The Enigma Guild

gw2Stats.net

in Community Creations

Posted by: AdelphiA.9287

AdelphiA.9287

To those guys that monitor/update the gw2Stats.net API/site, may I make a suggestion and that is you have two sets of results; one for US and one for Europe because at this moment in time all your data is incorrect for Europe as the API is down, yet again, but your site is saying everything is OK.

Also, is there any reason why Europe has so many issues compared to US servers? That second question is aimed at ANet dev btw, not gw2Stats.

AdelphiA.9287 – The Enigma Guild

[Events API] updates trouble?

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

Yup thanks. May I ask if possible to put a post if you’re going to do something like that then hopefully you won’t get any grumpy posts (from me included).

AdelphiA.9287 – The Enigma Guild

[Events API] updates trouble?

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

I’m having an issue on Piken Square (EU) where nothing has been showing up (new/changed) since about 18:20 UK time.

AdelphiA.9287 – The Enigma Guild

List of apps/websites using the API

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

OK, I’ve now uploaded my latest rendition of gw2EventOly, which is now called “gw2EventOly Suite”.

The suite consists of 4 Windows applications which are:
gw2EventOly version 2 – the event notification overlay
gw2EOLT – a location tracker which uses Heimdall’s Gw2Maps application (included)
gw2EOMP – a music player for those with user playable musical instruments
gw2EOLauncher – a central launcher application to show the state of each application and, yes, where you can launch the applications from

gw2EventOly version 2 is still being developed to add additional features although the majority of it is functional (provided the API remains accurate of course).

To download the suite, please go to http://www.enigma-eu.co.uk/gw2EventOly/ (case sensitive) which is also where I will eventually be pasting support pages for the suite.

AdelphiA.9287 – The Enigma Guild

(edited by AdelphiA.9287)

Chat Link 0x03 Codes

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

So, basically, all the information regarding chat link codes on the Wiki is now obsolete/incorrect? I mean, I can’t get any of these to work either in Guild Chat anymore… http://wiki.guildwars2.com/wiki/Chat_link_format/0x03_codes

Mine weren’t so much “adverts” as “informative” as they were only sent to Guild Chat (well, occasionally sent to local) but it was nice to see PRE-EVENT in yellow and ACTIVE in green but now I guess just plain old chat colour.

AdelphiA.9287 – The Enigma Guild

(edited by AdelphiA.9287)

Chat Link 0x03 Codes

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

Since todays patch (17th Sept), it appears the colour codes no longer work as they did. Has anyone come across an alternate method yet or deciphered how the codes have changed? If not, I guess I’ll have to revert to plain old gold text in guild chat to make my announcements of events.

AdelphiA.9287 – The Enigma Guild

Cities in Map Names API

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

Is there any reason why cities are not returned from map names API? (https://api.guildwars2.com/v1/map_names.json). Surely this means we have to decipher maps API (https://api.guildwars2.com/v1/maps.json) rather than map names in which case, why do we have the map names API… or am I missing something here?

AdelphiA.9287 – The Enigma Guild

Waypoint Codes

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

That’s what I’m doing right now, but it’s far from automated and takes a long time. What I’d like to be able to do is to update (on the fly) when a new waypoint is added or it’s name changed (i.e. Divinity’s Reach “Collapse Waypoint” is now called “Crown Pavilion Waypoint”) rather than having to manually check and compare with the chat link site.

AdelphiA.9287 – The Enigma Guild

Waypoint Codes

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

Is there a way to obtain the actual waypoint codes using the API, like “[&BKQDAAA=]” for “Gladium Waypoint”?

AdelphiA.9287 – The Enigma Guild

Bugged event timers

in Community Creations

Posted by: AdelphiA.9287

AdelphiA.9287

AdelphiA.9287 – The Enigma Guild

[Bug] EU events not updating (e.g. Scarlet)

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

@Stefan Larimore
Could You update us on the progress, please? cute eyes

The API is dodgy for quite some time now, people are starting to go ragenuts as more and more arrive too late for the Bosses and literally see them dying as they are running to do the event.

Or more importantly, they are notified an event is about to start and when they get there absolutely nothing is happening or it finished hours ago.

AdelphiA.9287 – The Enigma Guild

[Bug] EU events not updating (e.g. Scarlet)

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

I’m not sure about others, but until this is fixed I am unable to develop any of my tools which use the API. I am currently in the middle of a major overhaul of my application (gw2EventOly Suite) and because the results I’m getting for event state are so inaccurate, I can’t do any reliable testing. Are you saying we will have to wait until the next patch/update before this is fixed or will it (hopefully) happen much sooner.

Don’t use EU worlds to do your testing, there’s nothing wrong with events on US servers.

Thanks for that idea. That didn’t even enter my mind! Now I can continue……..

AdelphiA.9287 – The Enigma Guild

[Bug] EU events not updating (e.g. Scarlet)

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

I’m not sure about others, but until this is fixed I am unable to develop any of my tools which use the API. I am currently in the middle of a major overhaul of my application (gw2EventOly Suite) and because the results I’m getting for event state are so inaccurate, I can’t do any reliable testing. Are you saying we will have to wait until the next patch/update before this is fixed or will it (hopefully) happen much sooner.

AdelphiA.9287 – The Enigma Guild

(edited by AdelphiA.9287)

Clean up events list ?

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

What I would say is get a decent NAS and run your own host! That then costs nothing except your normal broadband costs.

AdelphiA.9287 – The Enigma Guild

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

OK. It’s working again now. Not sure what was causing it but obviously some API issue was causing the program to crash.

AdelphiA.9287 – The Enigma Guild

Total Disaster Time?

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

But it doesn’t tell you whether the results are accurate which they certainly weren’t.

AdelphiA.9287 – The Enigma Guild

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

As of today (30 August, 2013 @ 20:05 UK time), Gw2Maps no longer works. It crashes every time you try to start the monitoring. The application loads, but about a second after you click “Start” it crashes with an access violation.

AdelphiA.9287 – The Enigma Guild

Total Disaster Time?

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

Quite possibly. Thanks for that although the whole API appears to be down right at this present time.

AdelphiA.9287 – The Enigma Guild

Total Disaster Time?

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

Since the release of the latest patch, the event status for 90% of events has been totally inaccurate! Not sure what’s going on, but right now everywhere is reporting the same thing and all are totally wrong. As an example, the Frozen Maw has been showing as active for the past hour+

AdelphiA.9287 – The Enigma Guild

Serious Game Disconnects

in Bugs: Game, Forum, Website

Posted by: AdelphiA.9287

AdelphiA.9287

OK. This is now getting serious!

I have just received an error 14:4:5:1082:101. Whilst I’m used to getting disconnects from the game I am NOT used to a game disconnecting me FROM MY OWN NAS!

Luckily, at the time I wasn’t in the middle of a transfer of any description but there is obviously some kind of issue where the game is sending some unhandled packet which is causing this issue.

These disconnects have been going on for some time now and it’s about time they were sorted. The unfortunate thing is that there is no bug reporting option in game for network or connectivity issues and thus the only means of making these reports is via these forums which can take a long time to get answered, if they ever do by the people who are qualified to answer.

The disconnects ALWAYS disconnect me from mIRC and, until today, that was the only other application it affected. However, I never get disconnected if I’m not playing the game.

I urge the necessary team to investigate why these disconnects are continuing to happen before the program causes some kind of data loss for some unsuspecting individual.

AdelphiA.9287 – The Enigma Guild

(edited by AdelphiA.9287)

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

I can’t even see myself.

AdelphiA.9287 – The Enigma Guild

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

OK, I have the receiver working but which URL am I supposed to use to see me on the map? Currently I’m using http://gw2.chillerlan.net/examples/gw2location.html but I don’t see anyone when using my key.

AdelphiA.9287 – The Enigma Guild

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

Any news on why receiver isn’t working?

AdelphiA.9287 – The Enigma Guild

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

Hmmm. OK, not sure what’s going on here. Your location receiver no longer works. In Gw2Maps output I see the actual source of the page, rather than the information about the character. I need to check your updated code as mine is giving memory leaks and I need to find out which part is causing it; changes I’ve made or something in the original JSON/JavaScript/PHP.

Also, it appears no one is using IRC. I’ve been on two days without sight or sound of anyone. Are you not using this anymore?

AdelphiA.9287 – The Enigma Guild

API documents to WIKI

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

This seems fair to me and thank you for clearing it up.

AdelphiA.9287 – The Enigma Guild

API documents to WIKI

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

I tried but couldn’t figure out how to as there’s no “respond” facility. Also wanted to make others aware so they didn’t do the same thing.

AdelphiA.9287 – The Enigma Guild

API documents to WIKI

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

Please could you amend the comment under https://forum-en.gw2archive.eu/forum/community/api/API-Documentation/2571100

“Feel free to join the API editor group on the wiki to add your own application or maintain the page above ! You can leave comments about this on the forum thread I lined above or directly get in touch with me via forum private messages. Thanks.”

I understood this to mean we can add our own application to the wiki itself, not the API Application List so I did and it was deleted within 2 minutes!

Please could these things be made a little clearer.

AdelphiA.9287 – The Enigma Guild

<c=@flavor> ???

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

So using the [&xxxAAA=] codes then which is what I currently do.

AdelphiA.9287 – The Enigma Guild

<c=@flavor> ???

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

How does this work “in game” or doesn’t it? I tried using it in chat but all it did was to print the entire text, including the <c=#color></c>

AdelphiA.9287 – The Enigma Guild

In Game Chat Colours

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

I’d already found that link and that’s what I’ve currently been using – I just thought there might be some way of altering those codes to change the text as they obviously extract the code from raw data within either the dat file or direct from the server. Oh well, I guess colourizing text (apart from the item coding method) isn’t currently (and probably never will be) possible.

AdelphiA.9287 – The Enigma Guild

In Game Chat Colours

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

When you are playing the game, you may receive a message stating your inventory is full or you have no mining tool equipped and this will be in RED or if you don’t resume in X seconds in YELLOW.

I know there’s a way to print colour coded text in chat by manipulating the item codes, but is there a way to a: print RED and b: print text without the annoying [ at the beginning.

Any help / tips appreciated.

AdelphiA.9287 – The Enigma Guild

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

The one I used was Heimdall’s – the same version I’m using. Going to set up mIRC…

AdelphiA.9287 – The Enigma Guild

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

I did get him to try running as administrator but to no avail. The folder gw2maps has been created in his appdata folder but the folder is empty. The 2 files it’s supposed to create (well, one if you don’t add character names) aren’t created. I’ll talk further with him tomorrow. Does it possibly make a difference if you don’t add character names??

AdelphiA.9287 – The Enigma Guild

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

Just had a report by a friend who’s tried to use Gw2Maps.exe but it just crashes with Event ID 101 when he clicks “Start”. He is running on Windows 7 x64 (same as me). Are there any other dependencies (apart from the 10 DLL files and platforms folder) required?

AdelphiA.9287 – The Enigma Guild

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

OK, still won’t compile. It now says it can’t open Gw2Maps.rc is missing.

AdelphiA.9287 – The Enigma Guild

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

Cheers. I’ll go grab it

AdelphiA.9287 – The Enigma Guild

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

Hmmm – wouldn’t have anything to do with…

Guilds -missing

would it? Cause everything related to guilds (when I try to build) appears to be broken.

AdelphiA.9287 – The Enigma Guild

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

I think I may have the wrong version of the file then. The only typedefs I have in api_cstructs.h is…


typedef struct json *jPtr;
typedef struct event *eventPtr;
typedef struct map *mapPtr;
typedef struct world *worldPtr;

Have you made a change and not uploaded it? I have using 28412.

AdelphiA.9287 – The Enigma Guild

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

OK. When I try to compile (using VS2012) I’m getting an error stating guildPtr is undefined. Any ideas what I’m doing wrong? I’m simply loading Gw2Maps.vcxproj into VS2012 and compiling. I have made sure the correct path for the includes has been set.

AdelphiA.9287 – The Enigma Guild

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

Sorry to ask yet another question – but where is guildPtr defined (referenced in Console.h)?

AdelphiA.9287 – The Enigma Guild

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

Thx guys. Going to go grab it now…

Seems to be working OK, Going to test it fully after I’ve added a few more “options” (for the server etc.) into my program.

Any chance the CLI can pickup the settings saved when using the GUI mode so if you issue say a simple “gwmaps.exe -start” it loads the saved data and starts? I know I’m asking a lot…

AdelphiA.9287 – The Enigma Guild

(edited by AdelphiA.9287)

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

OK, no worries. That’s what I do currently with my stuff. Same minds…

What is the “track” option for? I don’t seem to be able to get it to do anything. I was hoping it was to make the map follow your character.

I’ve got it all working now with my program; just need to wait for the CLI option on GW2Maps so I can auto-start it. I also forgot to request a “hide window” option too.

AdelphiA.9287 – The Enigma Guild

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

If that could be added back in that would be great. I personally need key, server and auto-start or some other start option; port is not necessary given that the receiver is server/domain based. It doesn’t need to be advertised, just available for those of us that want to use it. One other thing, is it possible to statically link / reference the DLLs just so there only needs to be one file rather than the executable and all the DLLs? FYI, I have started to host my own location server too at http://www.enigma-eu.co.uk/events/gw2api/gw2location/

If you want to run this from a browser you need to use http://www.enigma-eu.co.uk/events/gw2api/gw2location/gw2location.php?k=YOUR_KEY

AdelphiA.9287 – The Enigma Guild

(edited by AdelphiA.9287)

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

Glad I found this (in a round about way). There’s a couple of features you may wish to add (if they aren’t already there). For instance, if the marker is YOU put a circle round it or make it different to the others. Also, as you know, I’m trying to merge this into my project (gw2EventOly) which I hope to fork into yours sometime soon (once I figure out what to do) and it would be nice to implement a CLI mode for those of us who know what to do with it for , but carry on using the GUI mode as the default. It should be simple enough to do (I think). I can help out if needs be, I’m just installing the Qt Framework onto my system and (if I can get it to download) the VS libraries too – they keep failing!

AdelphiA.9287 – The Enigma Guild

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

Thanks guys for this. I’m not sure what “forking” means. I’ve seen it but I don’t understand it. I’ve only just started to use the likes of CodePlex and GitHub so I’m still new to it all. Does Gw2Maps have a CLI mode (like -p whatever_port -k whatever_key -s whatever_server -start) as I’d like to be able to call it from within my application once it’s configured. Also, as I know we shouldn’t be talking “shop” about this here, is there anywhere there is a topic/forum for discussion?

AdelphiA.9287 – The Enigma Guild

Gw2 Location Tracker

in API Development

Posted by: AdelphiA.9287

AdelphiA.9287

OK. I’ve found out why they aren’t working. Lots of files need to be converted and I also need to convert German→English.

AdelphiA.9287 – The Enigma Guild