Guild Wars 2 Map Viewer

About Monkey 2 Forums Monkey 2 Projects Guild Wars 2 Map Viewer

This topic contains 2 replies, has 2 voices, and was last updated by  Hezkore 2 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7267

    Hezkore
    Participant

    Guild Wars 2 is a MMORPG, and it offers a “Tile service“.
    Basically it’s got this API you can use to view the in-game map, it sorta works like Google Maps.
    I’ve made this viewer/demo for the map that I’d like to share with everyone:
    https://dl.dropboxusercontent.com/u/2842751/GW2Map.zip
    (Credit where credit is due)

    It comes with the full source code (needs some work) and pre-built for Windows if you just want to try it out.
    I use Wget to download the map pieces, so I guess it’s Windows only for now.

    Click and drag to move the map around.
    Zoom with the mouse-wheel.
    You can also change which Guild Wars 2 continent to view by pressing 1 or 2.

    #7275

    degac
    Participant

    Wow!
    Incredible work.
    It’s quite fast in downloading/rendering the ‘map’.

    ps: many thanks for the source code!

    #7276

    Hezkore
    Participant

    Thanks! 🙂
    I’m so glad you think the download speed is fine.
    I made the same thing in BlitzMax using the cURL module and it’s a bit faster.
    But that might just be cause I don’t write the files to disk first.

    By default it allows for a maximum of 8 simultaneous downloads, you can change this by changing MAX_DLS.
    It also uses the 4 DNS servers Guild Wars 2 provides, I’m not sure that actually does anything though heh.
    You can change that with MAX_DNS, but don’t go any higher than 4 since there’s no 5th DNS server for the tile service.

    This example is a bit wasteful when it comes to actually rendering the map since it renders every zoom step ontop of each other.
    So even if you’re at zoom level 4, it will render zoom 0, 1, 2, 3.
    I do this because otherwise when you zoomed in there would be no images at all to display at that zoom level.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.