Guild Wars 2 Wiki:Projects/NPC Coordinates/Guide

From Guild Wars 2 Wiki
Jump to navigationJump to search

Guide for NPC Coordinates Project[edit]

Generating coordinates[edit]

Written with Visual Studio and forked from somebody else's, User:Chieftain Alex has shared his coordinate reader:

Copy both files into the same folder and then run "GW2 Coordinate Reader.exe" after having opened GW2. See the talk page for more details.

Dealing with the coordinates[edit]

By default, the copy-pasted coordinates will have the format [12345, 54321]. When entering them into the infobox, you will have to either manually convert them to:

{{NPC infobox
| ...
| coordinates = [12345, 54321]
}}

Or you can use a program to semi-automate the change (mentioned further down)

Map floor[edit]

Listing map levels will need to be done manually by the players. Adding the map-floor value to the coordinates is as simple as adding another value to the first | coordinates argument. That is, if you wish to add that the NPC is on floor 2, the example above would become:

{{NPC infobox
| ...
| coordinates = [12345, 54321, 2]
}}

This argument will need to be given as per the documentation listed in the Template:NPC infobox map. If no value is given for the map-floor value, it will default to 1, that is ground floor/surface. Providing a fourth value will affect which continent is displayed (again per the template documentation).

Semi-automating formatting[edit]

Using Notepad++, I have found that my preferred way of doing this information gathering and transcribing is the following.

  1. Gather multiple NPC coordinates into a text file in the format shown below.
  2. Open the "Replace" window by opening the menu "Search"->"Replace" or Ctrl + H
  3. In the "Find What" box, place the regex: (\[.*\]).
  4. In the "Replace with" box, place the string: | coordinates = \1.
  5. Make sure that the "Search mode" button in the bottom left is set to "Regular expression".
  6. Click "Replace All" in the right side of the window. you should now have a format which can easily be copy-pasted into an infobox.

File format:

NPC name 1
[12345, 54321]

NPC name 2
[55548, 65893]

NPC name n
[11111, 11111]

Resulting text:

NPC name 1
| coordinates = [12345, 54321]

NPC name 2
| coordinates = [55548, 65893]

NPC name n
| coordinates = [11111, 11111]

Historical methods[edit]

  • Note: With the release of the End of Dragons expansion the map was expanded north and west moving the origin of all coordinates. These methods are not known to work with post-End of Dragons coordinates, so they are deprecated and should not be used.
    • GW2Navi, an overlay program.
    • GW2Timer, a webpage.