Showing Posts For 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
Np, can understand that :p
Ok so what i did in my first post is good, just change the map_rect with continent_rect ?
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…)
(edited by 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
(edited by 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.
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 ?
The map details for the new borderlands map are not available through the map OR continent API.
Any Informations on that ?
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
(edited by 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
(edited by 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
(edited by 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)
(edited by 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
(edited by 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)