Showing Posts For Moturdrn.2837:

API Creation Page Input Insertion

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

+1 for the ability to pass the key name at least.

We do the same in that we require a specific name for the key and, when looking into reasons why a key couldn’t be added, this is the #1 issue we encounter.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

API errors & bugs

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

Just wondering if there’s an issue with some keys again? Got notice from a member they’d lost group access (provided by the API key.) They looked at their keys page and it was seemingly still there, so I re-added the key on my end. After re-running the check, the same message that it’s an invalid key was returned, and it’s no longer within the keys page.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

New account page, disconnect link

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

Not sure if you’ve done anything, but doesn’t look to be happening any more.

Just created several new keys to test on both the local and remote server, and no additional Current Log-ins are appearing.

Cheers!

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

New account page, disconnect link

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

Pressing disconnect seems to remove access for that key (at least from that IP address) for a few minutes (until the next API cache refresh?)


Tested: Created new key and called the TokenInfo
Array (
       [0] => HTTP/1.1 200 OK
       [1] => Content-Length: 100 
       [2] => Content-Type: application/json; charset=utf-8 
       [3] => Server: Microsoft-IIS/7.5 [4] => Access-Control-Allow-Origin: *
       [5] => X-Content-Type-Options: nosniff
       [6] => Date: Tue, 28 Jul 2015 08:34:43 GMT
       [7] => Connection: close
       [8] => 
	   [9] => {
			"id":"id-goes-here",
			"name":"My Test Key",
			"permissions":["account"]
		} 
	)



Disconnected via https://account.arena.net/security/settings and re-ran the call to TokenInfo
Array ( 
       [0] => HTTP/1.1 403 Forbidden 
	   [1] => Content-Length: 43 
	   [2] => Content-Type: application/json; charset=utf-8 
	   [3] => Server: Microsoft-IIS/7.5 
	   [4] => Access-Control-Allow-Origin: * 
	   [5] => X-Content-Type-Options: nosniff 
	   [6] => Date: Tue, 28 Jul 2015 08:36:12 GMT 
	   [7] => Connection: close 
	   [8] => 
	   [9] => {
			"text":"endpoint requires authentication"
		} 
	)



Called using a different key
Array ( 
       [0] => HTTP/1.1 200 OK 
	   [1] => Content-Length: 100 
	   [2] => Content-Type: application/json; charset=utf-8 
	   [3] => Server: Microsoft-IIS/7.5 
	   [4] => Access-Control-Allow-Origin: * 
	   [5] => X-Content-Type-Options: nosniff 
	   [6] => Date: Tue, 28 Jul 2015 08:37:47 GMT 
	   [7] => Connection: close 
	   [8] => 
	   [9] => {
			"id":"id-goes-here",
			"name":"My Test Key 2",
			"permissions":["account"]
		} 
	)



Tried again using the original key
Array ( 
       [0] => HTTP/1.1 403 Forbidden 
	   [1] => Content-Length: 43 
	   [2] => Content-Type: application/json; charset=utf-8 
	   [3] => Server: Microsoft-IIS/7.5 
	   [4] => Access-Control-Allow-Origin: * 
	   [5] => X-Content-Type-Options: nosniff 
	   [6] => Date: Tue, 28 Jul 2015 08:38:33 GMT 
	   [7] => Connection: close 
	   [8] => 
	   [9] => {
			"text":"endpoint requires authentication"
		} 
	)



A few minutes later using the original key again
Array ( 
       [0] => HTTP/1.1 200 OK 
	   [1] => Content-Length: 100 
	   [2] => Content-Type: application/json; charset=utf-8 
	   [3] => Server: Microsoft-IIS/7.5 
	   [4] => Access-Control-Allow-Origin: * 
	   [5] => X-Content-Type-Options: nosniff 
	   [6] => Date: Tue, 28 Jul 2015 08:39:36 GMT 
	   [7] => Connection: close 
	   [8] => 
	   [9] => {
			"id":"id-goes-here",
			"name":"My Test Key",
			"permissions":["account"]
		} 
	)
	

Edit:
Okay I’ve had the chance to test with another IP address, one local and one remote.

I connected to the API with the remote server, then connected to the API with the local server. The IPs for the remote server appeared in the Current Log-Ins.

I disconnected the remote server via the page, and tested the API on both servers. Neither server could authenticate against the TokenInfo endpoint until the refresh.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

(edited by Moturdrn.2837)

HEADS UP: OAuth2 being replaced next week

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

For those unable to use curl, smiley.1438’s previous api tools can be repurposed for this.

Original request.inc.php: https://github.com/codemasher/gw2api-tools/blob/master/inc/request.inc.php

With modifications to send api key: https://gist.github.com/moturdrn/111b8d08c1ee430d0185

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

Launching /v2/account (w/ Authentication)

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

This is my main concern too. The large majority connected to our Teamspeak are now authenticated through this, which required little effort on the player’s part to do so. TS is announced in map chat, new people join, a couple of clicks later and they get WvW channel access.

From my side I can change things to follow how you want the APIs to work. My concern is take up from the player’s side of things, and having to offload the extra complexity onto them.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

OAuth Application Creation is live!

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

That’s odd, I don’t see the option available on my account page.
Would definitely like to give OAuth2 a shot when I got spare time.
Where do I go about registering my app?

Thanks!

It’s not yet a publicly available link on the sidebar (until you’re on the page) so you need to manually browse to the https://account.guildwars2.com/account/applications for now.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

OAuth Application Creation is live!

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

Is there a delay for your permissions-granted showing up, or is that bugged?

Uhh, what do you mean? Does the token returned from /oauth2/token not work immediately? The token should be fully working when we return it :<

The token works just fine. It doesn’t show up in the account/applications page as an authorized app (no way to revoke it). It’s my own app if that makes a difference.

To add to this, I get the same thing. The GW2 Api Demo app is listed, but not my own despite having given access and using it.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

Online Character Viewer

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

Your opt out is this:

  • Do not authorize API access to your Account/Character to applications; and
  • If you have authorized API access to your Account/Character to applications, revoke that access within whatever security page ANet provide for this.

You don’t provide sites with your username/password combination. Instead what happens is you log in to a page provided by ANet using a special link (which tells ANet what permissions are being requested, and where to return what’s called an access token) which then asks if you want to allow access for this application, and also tells you which permissions you’re giving (i.e. Character, Account, Offline, etc – these are the scopes or permissions that you want the application to have). If you never allow an application to use a particular scope (or revoke access) then the app cannot access that data. After allowing the application access, they get returned an access token to retrieve data (and a refresh token if you allowed the Offline scope, so they can get new access tokens when the old one expires.) When you revoke an application’s permission, the access token will no longer work (and they cannot use the refresh to get another one) and they can no longer access the data.

Each application will have its own App ID, and each application should also have its own access token to use. By giving access to say smiley’s super-duper character viewer application, you’re not giving permission to my character logging application (note: these are just examples.) – you’d need to grant permissions to both if you wanted both apps to work.

Not sure if ANet is intending on a button to revoke all applications at once, maybe this could work for your requirements if they did?

You will know, however, if an app is requesting access to your credentials before you even allow it since you’ll get a page like this: http://i.imgur.com/E9XKVy3.png which actually sits on ANet’s servers.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

(edited by Moturdrn.2837)

Launching /v2/account (w/ Authentication)

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

Thanks Pat, Lawton, and everyone else there working on the APIs!

Looking forward to being able to register applications for use with this, it’ll take some of the headache out of user authentication

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

Authenticated APIs delayed to week of 2/23

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

Thanks for the update, Pat!

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

Colors in WvW

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

Then you might want to revisit your code anyway

Pow Pow, Shots Fired! Man Down!

i lol’d!

https://twitter.com/thomasfuchs/status/445943530788503553

Ain’t that the truth. Went back to look at my old WvW scores code and, despite being commented out with clear indications of what it should be doing, was confused to hell as to why it was getting another result entirely.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

8/2 Underworld vs Arborstone vs Gunnar's Hold

in Match-ups

Posted by: Moturdrn.2837

Moturdrn.2837

when the only 2 guilds from gunnars, left the server.

Care to elaborate on that?

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

Gunnar's Hold Community Forum

in Community Creations

Posted by: Moturdrn.2837

Moturdrn.2837

Gunnars-Hold.eu

Now with an added Arena and currently running 1v1 ladder. Also providing space for GvGs between the guilds of Gunnar’s Hold.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

14/6 - GH vs Dz vs AS

in Match-ups

Posted by: Moturdrn.2837

Moturdrn.2837

New matchup, welcome back Dz!

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

7/6/13: GH-MS-RoS

in Match-ups

Posted by: Moturdrn.2837

Moturdrn.2837

Haha, it’s not opportunism to attack enemies and take their stuff. Equally it’s not opportunistic for RoS/MS to attack us overnight when we have literally nobody playing.

Can’t believe the game has been out nine months and this conversation is still happening.

Also, the idea that you wouldn’t have attacked us if we hadn’t attacked you over the weekend is obvious nonsense :p Nothing is coming back to haunt us, we just had nobody online so lost all our stuff!

Hear, hear! Unfortunately I think it’s a conversation which will probably continue for more months to come, from many different people, and will just go around in circles.
“Oh you did this”, “Yeah, only because you did that”, “But you did this first!” etc.

Nah, I know it’s hard to use irony on the internet, but literally no-one’s so slow they’d miss that he’s joking!

You do have a point. That would be quite slow indeed.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

7/6/13: GH-MS-RoS

in Match-ups

Posted by: Moturdrn.2837

Moturdrn.2837

You’re slacking, Stikko. It took you five mornings for garrison to finally flip :p

Ilesyt talking about opportunism is amusing however.

Due to this fact I declare this matchup null and void.

Shh, he’ll think you’re being serious :p

BTW, I’ve seen 2 GH players in MS bl in past 2 days. So it’s not like GH is actively going after them either. I think the reason why most people choose GH bl over MS, is because GH gives good fights.

Haven’t been on too much since the weekend, however enjoyed the fights over Hills and Lake between our mish-mashed and VcY/RiOT. Probably some of the most fun group battles I’ve had in a while, complete with a wtf did they just come from moment Kudos on that Hills portal.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

(edited by Moturdrn.2837)

7/6/13: GH-MS-RoS

in Match-ups

Posted by: Moturdrn.2837

Moturdrn.2837

OMG YOU GUYS STOP HAVING AN ALLIANCE AGAINST US. YOU NEVER TOUCH EACH OTHERS BL THIS ISNT FAIR

<3

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

Painted Character Portraits

in Community Creations

Posted by: Moturdrn.2837

Moturdrn.2837

Just finished a portrait for Visko!

Thank you very much, Jyl! I’m really happy with how it’s turned out, and a super quick response too

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

Gunnar/Piken/Riverside - 31/5

in Match-ups

Posted by: Moturdrn.2837

Moturdrn.2837

Also we had 2 Fightsagainst the Asura Army. Realy funny , but there where so many uplevled guys in you, getting rally was not so hard ^^

Yeah, quite a few of us don’t normally play Asura toons, or decided to re-roll one of a different class just to take part in the fun

Sorry for all the ankle biting I did record quite a bit of it last night, however I’ve not had a chance to preview and sort the files. Hopefully I’ll get a chance to do that over the weekend and post it up.

Thank you to both RS and PS, I’ve had an enjoyable week of WvW!

Next week, Vizunah and Elona!

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

Gunnar/Piken/Riverside - 31/5

in Match-ups

Posted by: Moturdrn.2837

Moturdrn.2837

Not all Piken players/guilds are whiney little kittenes, If anything I wish the GH and RS servers had more numbers.

A few fights from Tuesday/Wednesday

http://youtu.be/4X9Tn6ULrf8

Oh aye, we know. Good to see you guys still running around over there

I have been trying to find slaught to see if we can get his very large pink Norn kitten back in the field to play with you again, but no such luck

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

[API Suggestion] Guilds

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

Hey, 2 more notes on your code

  • You don’t need the objectToArray function – json_decode() can handle that for you – just add true as second parameter in my gw2apiRequest function
  • Theres no need to provide 2 versions of getColorMatrix and applyColorTransform, just drop the php 5.4+ part. php 5.4+ just supports the shorthand syntax for arrays aside from the regular syntax.

The performance increase was huge after splitting the functions, now we just need to find out how to process the images further, so that we get the same result like ingame. After stumbling across that imagefilter stunt i mentioned above, i think there’s some information missing.

Thanks smiley, I’ve now updated the code to reflect the changes (removing the duplicate getColorMatrix and applyColorTransform functions, and modifying the gw2_api_request function)

I’ve also got a slight variation of the Imagick version running now. I really don’t know Imagick that well and the PHP documentation for it isn’t the best, so I’m not quite sure of the best way to replicate the imagefilter for IMG_FILTER_CONTRAST (Imagick’s contrastImage doesn’t seem to handle it in the same way) and IMG_FILTER_COLORIZE. As a work around I’m currently exporting the Imagick image to a blob, reading this in GD and applying the image filter, and then writing it back out to a blob before it’s read back in by Imagick.

As an example, http://www.gunnars-hold.eu/guild_emblems/emblem.php?guild_name=Veterans%20Of%20Lions%20Arch

It’s taking a bit longer than usual when generating a fresh image as I’m now directly getting the most recent data from the API for both the Guild and colours. That said, I’m now storing previously generated images so serve up if nothing has changed (so your Guild emblem should load quite quickly.)

Edit: The gists for both the Imagick and GD versions have now been updated with local file saving and serving.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

(edited by Moturdrn.2837)

[API Suggestion] Guilds

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

After requests, I’ve updated the PHP scripts to listen for a guild_id or guild_name being passed through the URL.

PHP GD Version: https://gist.github.com/moturdrn/9d03a0cd4967828ac6cc
PHP Imagick Version: https://gist.github.com/moturdrn/d263d9f668dbe9c97718

A download of all the images I’m using, including the question mark for unknown guilds, can be found here.

Still having the issue where the background doesn’t seem correct (when using the Abyss colours), will be trying to look at that again later today after today’s meetings finish. Once the background issue is sorted, my next step will be to store the images as local PNG files, with a name based on the hash of the emblem values. That way rather than re-generating when there are no changes, it can just serve the pre-generated PNG file.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

(edited by Moturdrn.2837)

[API Suggestion] Guilds

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

I’ve made further changes and split the compositeColorShiftRgb function into 2 different ones – getColorMatrix and applyColorTransform.

The matrix that you multiply the bgrVector against will only change on a dye colour change, so only needs to be computed once per colour. Pretty much what Dr. Ishmael suggested.

As a performance comparison see the difference between the old version (https://gist.github.com/moturdrn/9d03a0cd4967828ac6cc/69fd710ab5d88233e4c92cc0eba283a49e57a91b) which took ~7 seconds to generate your emblem, and the latest version (https://gist.github.com/moturdrn/9d03a0cd4967828ac6cc) which took ~2 seconds.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

[API Suggestion] Guilds

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

That went pretty well When I originally started doing the GD stuff (and before it got all technical with this is how you should apply things) I actually used the imagefilter to adjust the brightness and contrast, though it always turned out naff heh.

I tried to replicate what you did with white, and whilst yes it does end up whiter, it also ends up losing its detail

Will have to have a play around tomorrow and see what happens if I tweak some other settings

Edit: Just before I was about to switch off for the night, I remembered that the Imagick version has a check in there for the alpha value of the pixel. Basically anything that’s completely transparent shouldn’t be checked. Just put a similar change into the GD version starting at line 93 (https://gist.github.com/moturdrn/9d03a0cd4967828ac6cc/revisions) so that anything with an alpha value of 127 (GD’s transparent value) isn’t put through the compositeColorShiftRgb function. Should improve performance, however it’ll be a lot more noticeable on the minimalist emblems.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

(edited by Moturdrn.2837)

[API Suggestion] Guilds

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

It takes ~20 seconds from start to finish when I’m viewing it too. When using Imagick it’s more like 6 when still using the loop.

Interestingly enough, you seemingly can use just the RGB from the API when using Imagick as that seems to actually keep the texturing a lot better (also the time is cut down from 6 to 3 seconds.) See the example images below. The first one is Imagick when using the function within the loop. The second is Imagick when just applying the base RGB. There is a slight difference though in the colours themselves.

I’m using the values for the cloth material type. Taken from the API documentation:

Emblems use the ‘cloth’ material value in the color. We do not currently have an API to resolve foreground_id or background_id to more useful information about the images they represent.

Attachments:

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

(edited by Moturdrn.2837)

[API Suggestion] Guilds

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

Not a problem

The only reason I’m actually looping through and doing that is emblems themselves don’t seem to have a single base RGB (or at least the way I have them). If I remove the compositeColorShiftRgb from within the loop and just apply the RGB values as given by Cliff then the result ends up more of a solid colour (unless I’m missing what you’re saying.)

Personally I won’t be calling my script often, only on detected changes of a Guild’s emblem, and only from the server side – it won’t be part of a user facing script

In the example attachments below, the left image is generated when calling compositeColorShiftRgb within the loop, the right when using only the RGB from the API.

As an additional example, I’ve also attached what your Guild’s emblem looks like when you run it through the loop. All 3 examples attached are using the GD library.

Attachments:

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

(edited by Moturdrn.2837)

[API Suggestion] Guilds

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

How are you creating the “2 parts with the base colours added”? I think that’s the step I’m not getting right.

I got the 2 parts manually by using the masks to get an area to cut out to a new image file. I’ve uploaded the zipped file of them here. I would probably have preferred learning how to use Imagick to do it with the masks themselves, but I already had the images and don’t quite have the time at the moment.

I’m more interested, how i get this working without Imagemagick, since it’s not supported on my webspace >.<

I originally coded this using PHP’s GD libraries before porting it to Imagick. If you have access to use GD I have there is a version of the code here: (old pastebin url) using that below.

It’s not as efficient as the Imagick version by any means, although that could possibly be due to how I’ve done it.

Edit: I’ve uploaded both the Imagick and GD versions for PHP to gist. Both of these versions now include code for manipulating the orientation of the emblem and background. Colours may still not be perfect but this is something I’m going to keep looking at.

PHP + Imagick: https://gist.github.com/moturdrn/9d03a0cd4967828ac6cc
PHP + GD: https://gist.github.com/moturdrn/d263d9f668dbe9c97718

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

(edited by Moturdrn.2837)

[API Suggestion] Guilds

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

Well, I’ve got something that almost works for creating emblem images. I’m probably doing something wrong when applying the alpha masks.

In-game emblem:
[img]http://i.imgur.com/2HjBl4j.jpg[/img]

My version:
[img]http://i.imgur.com/EtHfAnR.png[/img]

(those aren’t working in preview, will they work when I save? edit: nnnnnnnope)

Emblem ID: 58 (textures: base color, primary color mask, secondary color mask)

Foreground primary color ID: 617 “Green”
Foreground secondary color ID: 139 “Violet”

My Perl script: @GitHub

The most obvious error is the hard edges between the two color zones, but there’s also some odd shading within the secondary color zone (middle of the octopus’s head). Anyone have any idea how this is supposed to work?

I’m actually not touching the masking myself (partly because the Imagick PHP library isn’t fully documented) and actually have the 2 parts with the base colours added as such:
http://www.gunnars-hold.eu/guild_emblems/emblems/58a.png
http://www.gunnars-hold.eu/guild_emblems/emblems/58b.png

The source code is here

It’s still not perfect, but it’s the closest I’ve got so far.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

(edited by Moturdrn.2837)

[API Suggestion] Guilds

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

I did exactly the same to be honest. It wasn’t until I checked the linked guild’s information that I realised something was up.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

[API Suggestion] Guilds

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

The foreground and background IDs for this match the order on the wiki (http://wiki.guildwars2.com/wiki/Gallery_of_guild_emblems). Do you know if the IDs returned by the API will match these or will there be another order for them?

The numbers I assigned to them for the wiki are simply sequential based on their file ID order within Gw2.dat. I seem to remember that this matched the order that they appear within the in-game emblem designer, so it may very well match up to the in-game IDs (although I wouldn’t count on it).

Turns out that YES, the emblems are displayed at the Emblemer in the order of their internal ID, and since my numbering matched the display order, the numbers on the wiki match the internal IDs.

Unfortunately, when I numbered the backgrounds, I forgot to account for the “blank” background, so the numbers on the wiki are (ID – 1) instead of matching the ID exactly. Still, it’s a systematic difference.

I’ve zipped up the game textures (converted to PNG) with the correct IDs, and you can grab them over here (File->Download or Ctrl+S to download). Use in conjunction with colors.json to build guild emblem wizards!

Edit: had a sync error on my GDrive, link is fixed now

Thanks for that, Dr Ishmael!

I have noticed something else with the background IDs – it seems there is no number 9 within the editor, so everything that’s 9 and upwards is incremented by an additional 1. As an example https://api.guildwars2.com/v1/guild_details.json?guild_name=the%20secret%20society returns a value of 21 for the background ID, which is 20.png within the directory.

I hope you don’t mind, I’ve made the changes to the file names and re-uploaded them here: link.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

(edited by Moturdrn.2837)

[How To] Colors API

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

I’m making use of the PHP examples provided by smiley to change the colour of individual pixels of each image (background, emblem part 1, emblem part 2.)

Some of these seem to be working okay (e.g. Hot Pink) however White and Abyss seem to be somewhat hit or miss.

Code: http://pastebin.com/PiFs0Tje

Using the above code, the example below should have the background coloured Abyss, and the octopus White. However the colour seems quite off. Anyone have any ideas?

Attachments:

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

Gunnar/Piken/Riverside - 31/5

in Match-ups

Posted by: Moturdrn.2837

Moturdrn.2837

Wait a minute. Did you all just pull a great practical joke on us? Devon just posted this and I don’t see GH-P-R on there.

Here’s the raw data version of the new matchup as well as an image of the matchups.

Matchup Green Blue Red
1 Vizunah Square Seafarer’s Rest Elona Reach
2 Baruch Bay Kodash Jade Sea
3 Riverside Abaddon’s Mouth Desolation
4 Piken Square Augury Rock Fort Ranik
5 Underworld Far Shiverpeaks Gandara
6 Gunnar’s Hold Drakkar Lake Miller’s Sound
7 Ruins of Surmia Aurora Glade Blacktide
8 Arborstone Dzagonur Ring of Fire
9 Whiteside Ridge Fissure of Woe Vabbi

We did get a (very brief) match against MS and DL during the whole WvW kerfuffle. I do wonder if the current matches were re-calculated from the results of that rather than falling back on the pre-determined list posted.

Edit: and now they’ve edited the list (20:54 BST) to display

Here is the text version of the new matchups.
Matchup Green Blue Red
1 Vizunah Square Jade Sea Elona Reach
2 Desolation Kodash Seafarer’s Rest
3 Augury Rock Abaddon’s Mouth Baruch Bay
4 Riverside Piken Square Gunnar’s Hold
5 Underworld Ruins of Surmia Fort Ranik
6 Drakkar Lake Miller’s Sound Aurora Glade
7 Arborstone Far Shiverpeaks Gandara
8 Whiteside Ridge Dzagonur Blacktide
9 Ring of Fire Fissure of Woe Vabbi

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

(edited by Moturdrn.2837)

Gunnar/Piken/Riverside - 31/5

in Match-ups

Posted by: Moturdrn.2837

Moturdrn.2837

It’s a shame we don’t have our alliance with Vabbi from the last reset (vs MS vs DL). That would really show you what for!

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

[API Suggestion] Guilds

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

OK, so for the first guild API release, this is what I’m considering:

/v1/guild_details.json?guild_id=xxxx

Would return name, tag, and emblem data.

The emblem would be in the form
“%i, %i, %i, %i, %i, %i”
background ID, foreground ID, flags, color 0, color 1, color 2
flags define things like flip image horizontally or vertically

like “1,62,0,114,114,93”

Thanks for the response, Cliff!

We currently have a page where our guilds can submit their emblem details (part of a get to know which Guild’s banner is flying in WvW initiative) which generates a image like so: http://www.gunnars-hold.eu/emblemtest/index.php?emblem=002&col1=25&col2=7&eflip=0&bk=19&bkcol=5&bkflip=2 (the way the forum links stuff seems to break it, turning the & into & so you’ll need to copy and paste.)

The foreground and background IDs for this match the order on the wiki (http://wiki.guildwars2.com/wiki/Gallery_of_guild_emblems). Do you know if the IDs returned by the API will match these or will there be another order for them?

Additionally in our example the colours are hard coded on a range of 1 to 26. Will there be another API linking colour IDs to hex codes/colour names?

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

(edited by Moturdrn.2837)

[API Suggestion] Guilds

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

I’m much more interested in data that i cant see ingame but im sure that is stored in some database, like the last online feature or gained influence for the guild per user.

might be another API guild_members_details? I’m really noob when it comes to coding and working with this stuff so i leave that to those with knowledge to judge that

The last online information could probably just be stored within the main guild JSON, similar to the WvW objectives.

Example:

[{"guild_id":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX","influence":"12345","members":[{"id":1234,"last_online":1369400859,"rank_id":1},
{"id":1289,"last_online":1369400859,"rank_id":2},
{"id":1412,"last_online""1369400859,"rank_id":2},
{"id":1841,"last_online":1369400859,"rank_id":3}]}]

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

(edited by Moturdrn.2837)

[API Suggestion] Characters

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

Currently set home world? This is something you can already get information about from within the game itself, and would make it much easier for server sites to lock down access in certain areas to players on that server only.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

GH-vs-ROS-vs-DZ

in Match-ups

Posted by: Moturdrn.2837

Moturdrn.2837

Sorry if that made a bad impression on you at the time, but we just made our feelings heard. Apologies if any of it offended or bothered you.

This, although certain players on RoS didn’t exactly do themselves any favours in that thread either in other eyes too.

Personally I don’t mind, the back and forth is part of it. Crashes aside I’ve actually had an enjoyable matchup with quite a few chances at 1v1s this week

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

(edited by Moturdrn.2837)

[API Suggestion] Guilds

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

Being able to get the emblem would be nice too, depending on how it’s stored, and whether it could be converted to a blob that’s returned in the object.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

GH-vs-ROS-vs-DZ

in Match-ups

Posted by: Moturdrn.2837

Moturdrn.2837

funny to see GH not having DC problems as much as both other servers have

We’re having them, we just don’t keep coming on here to mention it. ArenaNet are aware of the issues, and there’s very little constantly harping on about it will do to make that go any quicker (unless you’ve got evidence to suggest the cause of it.)

It’s like a badly written comedy sketch, I’ll see a group go past towards an objective, and 2 minutes later I’ll see the same group go past again after DC’ing and having to run back. We just need the Benny Hill theme and it’s almost there.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

(edited by Moturdrn.2837)

Events & WvW

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

Do you have any plans to release data about contested points in WvW? Or would that cause the balance disruption you are talking about?

My own thoughts are that would probably disrupt the balance. As nice as it would be, being able to see what exactly is happening on a web based map when not logged in, that kind of information would make it very easy to create an AI sentry that alerts Mumble/Shoutboxes/etc when certain points are under attack, without needing someone keeping an eye on them.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

WvW API Question and Requests

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

Actually, the reason why it’ll be useful to get the guild names with the API is that nobody ever replies when you ask who claimed objective X. At least not when it’s somebody that claimed it without activating any buffs, it’ll be nice to find out what guilds are responsible so they can be told why it’s not a good idea

But yeah, eagerly awaiting new additions to the API

Yeah it would be nice. That said I’ve had a few whisper me back so far telling me it’s them, or that it’s such and such a guild. Even had a few guilds go out of their way to claim things so I can get their IDs too

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

WvW API Question and Requests

in API Development

Posted by: Moturdrn.2837

Moturdrn.2837

- In the match_details request, what is the order of the three world in the scores token?
Es. “scores” : [27699,19206,20934], what number is corresponding to what world?

From the examples I’ve seen (looking at our tier where green has the most points, and the tier above where blue has the most) the order is [(red),(blue),(green)].

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

GH-vs-ROS-vs-DZ

in Match-ups

Posted by: Moturdrn.2837

Moturdrn.2837

It’s amusing. RoS have no issues with alliances when it suits them, yet even the slightest hint that one is being used against them and Ilesyt gets his forum warriors out. Nice to know

There is no alliance, but you also can’t expect to keep poking and not expect to hit back.

Had some fun little skirmishes earlier today, including a fight (which I lost!) with a good mesmer from DEX. I was originally after the Dz that was there, but I’m positive I got a much better fight from you

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

GH-vs-ROS-vs-DZ

in Match-ups

Posted by: Moturdrn.2837

Moturdrn.2837

Cheers! We worked long and hard to get the very fine details sorted, though I think they got the worst out of the deal – they’ve got to have Yorric over ever 2nd Monday.

/rolleyes

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

GH-vs-ROS-vs-DZ

in Match-ups

Posted by: Moturdrn.2837

Moturdrn.2837

Sorry to the RoS Necro from DARK. Did start to pull back from the steps at Hills once I realised they had aggro’d, but was too late by then

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

GH V WSR V AS

in WvW

Posted by: Moturdrn.2837

Moturdrn.2837

Respect to the warrior from AS who accidentally glitched through the horribly bugged door at Sunny last night during one of the attacks there – He ran straight up the stairs and jumped out again without hitting anything. Well played my friend!

And Anet – please fix those doors so honest players are not put in the position of accidentally finding themselves on the inside of the tower.

Indeed, and the ranger that it happened to too. I didn’t get your tags, but you know who you are. You have my respect for it

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

10 BOTS At Waypoint keep FSP.

in WvW

Posted by: Moturdrn.2837

Moturdrn.2837

We have a similar thing going on over here too. They’ll appear at the WP in Garrison, jump, disappear, appear in the water at bay, disappear, appear at the WP in Garrison, jump, disappear, appear in the water at bay, disappear, appear at the WP in Garrison, jump, disappear, appear in the water at bay, disappear, appear at the WP in Garrison, jump, disappear, appear in the water at bay, disappear, appear at the WP in Garrison…

Will try that timestamped album idea. Thanks, Crimson.

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

Gunnar's Hold wants U !

in WvW

Posted by: Moturdrn.2837

Moturdrn.2837

now now guys, this thread is about you and you only, and we don’t want to spoil it by bringing up the whole RoS discussion, now do we?

We want only the best for you, and we wish your needs be fulfilled, and you seem to need new transfers, hence the thread. So good luck on the recruitment, I am sincerely hoping you get transfers and have my fingers crossed for you.

With love,
Dijla

<3

Hey Fizz! How’s it going? Saw Leo lurking around on the forums earlier

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum

Ruins of Surmia-Gunnar's Hold-Dzagonur

in WvW

Posted by: Moturdrn.2837

Moturdrn.2837

If they do not make a map purely of water and boats, there is no justice in the world!

Midnight Mayhem [MM] – Gunnar’s Hold
Visko Bludhaven – Level 80 Human Elementalist
Gunnar’s Hold Server Forum