Showing Posts For Side.3489:

Wrong WvW Objective Coordinates ?

in API Development

Posted by: Side.3489

Side.3489

Not on topic !

Marked this as a Q/A and it turned to be a discussion…. I don’t seem to be able to remove the Q/A format…. if someone with moderators rights could do this, i’d be grateful

[github | GWvW]

Wrong WvW Objective Coordinates ?

in API Development

Posted by: Side.3489

Side.3489

Huuum, nope, don’t think that was what I looked for ^^’

But….

Got that one !

It’ late and i stumbled a little on the map size….. Silly me.

Thanks for the tip for the continent_rect though

For future reference :
https://github.com/sidewinder94/GWvW_Overlay/blob/cb024272cbe41b3ce703434209f78b158d1d34b5/ArenaNET/Objective.cs#L29

[github | GWvW]

Wrong WvW Objective Coordinates ?

in API Development

Posted by: Side.3489

Side.3489

Np, can understand that :p

Ok so what i did in my first post is good, just change the map_rect with continent_rect ?

[github | GWvW]

Wrong WvW Objective Coordinates ?

in API Development

Posted by: Side.3489

Side.3489

Don’t worry about the JS version i’m working in C# here, the PHP was clear enough to replicate it on my end

But….

What does this code actually do ?

Gives the objective coordinates in the map_rect ?
Where is the origin point of the resulting coordinates ? (top-left ? center ?)

Just to make sure it’s said : I’m not trying to place the objectives in a Continent map, but in a “Borderlands” map

Just so I know how to handle that afterwards

(Still trying to work things out on my end but in the event you’re faster to answer than me to find out…)

[github | GWvW]

(edited by Side.3489)

Wrong WvW Objective Coordinates ?

in API Development

Posted by: Side.3489

Side.3489

Hi,

Got a little trouble placing the objectives on a map.

Should’ve been simple no ?

The map_rect for the desert borderlands is reported to be (i.e. https://api.guildwars2.com/v2/maps/1099) :


[
  [-36864,
   -36864
  ],
  [36864,
   36864
  ]
]
This is roughly saying that the map is a square with 73728 side’s length.
And that the point (0,0) is the map’s center point.

My problem here is that NONE of the wvw Objectives coordinate’s (i.e. https://api.guildwars2.com/v2/wvw/objectives/1099-99) have a negative part in their coordinates. Placing them all in the top-right corner of the map.

Well that’s not a problem, we’ll assume that the map center point is at the top-left corner of the map (thus allowing placing the objectives all over the map using only positive numbers)

New problem eatch component of the objectives coordinates are between 9000-15000

That’s a little hard to play with…. Our map being 73728 units large….. All objectives are grouped tighly.

So did I miss something (didn’t get the Objectives coordinates or the map size from the good place) ? Or is there something wrong with the API ?

Thanks for reading

[github | GWvW]

(edited by Side.3489)

MumbleLink : Specializations

in API Development

Posted by: Side.3489

Side.3489

Well I did find out for the revenant

Thanks for confirming the fact that the specializations were not reported in the MumbleLink API.

[github | GWvW]

MumbleLink : Specializations

in API Development

Posted by: Side.3489

Side.3489

Hi,

Are the specilizations reflected into the MumbleLink API ? If not are there any plans to do it ?

Because the revenant profession was added with the HoT release.

But it does not seem to reflect the fact that a specialization was selected for a given character.

Or maybe i missed something ?

[github | GWvW]

API errors & bugs

in API Development

Posted by: Side.3489

Side.3489

The map details for the new borderlands map are not available through the map OR continent API.

Any Informations on that ?

[github | GWvW]

Desert borderlands maps not in /v2/maps

in API Development

Posted by: Side.3489

Side.3489

To add some intel : they are missing from the continents API too

[github | GWvW]

Can't access map details for the new WvW maps

in API Development

Posted by: Side.3489

Side.3489

Hi,

Just dropping here the fact taht we can’t get any informations on the new WvW maps

Either by trying through the maps API :
https://api.guildwars2.com/v2/maps/<1099,1102,1143>;

Or via the Continents API :
https://api.guildwars2.com/v2/continents/2/floors/1/regions/7/maps

I’ll be honest saying that i’ve only tried the 3 first floors of the continent API.

What I need the most right now is the size of the WvW Maps.

Was the data not published (yet ?) or is it on a different floor on the continents API ?

Thanks

[github | GWvW]

(edited by Side.3489)

Is this application in allowed by the TOS ?

in API Development

Posted by: Side.3489

Side.3489

Hi,

I was planning to enhance one of my application with a localization feature and wanted to know if it was ToS compliant since it is mainly used for WvW.

Th idea is te represent all players of a given faction on a given map.

The location of each player is retrieved from the MumbleLink API.
Each player will be required to enter an API key in the application (account access only) to check their server affiliation.

The server part of my app will check against the GW2 API which server a client belong to and send to every player the positions of the players that are on his map from his server only.

Optionally, a custom “password” could be set for small groups that would want to keep their location secret.

That feature would be optional and completely disabled if an API key is not provided to the client (and the server would not respond to any request not providing a valid API Key).

Would that kind of application be ok to use in accordance to the game and ANet ToS ?

Thanks for your answers

[github | GWvW]

(edited by Side.3489)

Knowing which borderland map has a given id

in API Development

Posted by: Side.3489

Side.3489

My question was always for the map_id

Now i know it is immutable, I’ll get them from the mumble API, since I played with it

[github | GWvW]

(edited by Side.3489)

Knowing which borderland map has a given id

in API Development

Posted by: Side.3489

Side.3489

In a given WvW match, how do we know which borderlands map id is the home map of a given server ?

i.e. :

  • 94 is GreenHome
  • 95 is RedHome
  • 96 is BlueHime

And second question is that association fixed (i.e 94 will ALWAYS be GreenHome)

[github | GWvW]

(edited by Side.3489)

ETA World_Names.json fix?

in API Development

Posted by: Side.3489

Side.3489

Unless i’m mistaken, i’ve only seen objectives and matches suggestions in the thread you linked (i’ll admit i read it really fast).

Btw, i don’t think your’s bad, just for those that want to stick to the ANet format.

In fact it was way simpler for me to change the file URL for the language than to change my deserialization process

[github | GWvW]

(edited by Side.3489)

ETA World_Names.json fix?

in API Development

Posted by: Side.3489

Side.3489

Here is another source for cached data from world_names.
I know there is the above link, but this one’s format is closer to the original API.
(Additionnaly, if there is ever an update to the files, the file’s URL won’t need to be changed to use the latest version)

https://github.com/sidewinder94/GWvW_Overlay_Data

[github | GWvW]