Convert coordinates from memory to ingame coordinates? menu

User Tag List

Results 1 to 11 of 11
  1. #1
    radarlove's Avatar Contributor
    Reputation
    158
    Join Date
    Jun 2012
    Posts
    205
    Thanks G/R
    2/11
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Convert coordinates from memory to ingame coordinates?

    Hi,

    My tool currently reads X/Y coordinates from memory which are very different from the X/Y coordinates in-game.

    Is there any algorithm to be used to convert the memory coordinates to client coordinates?

    (Btw; already tried search function, didn't come up with very useful stuff)

    thx in advance,
    RL

    Convert coordinates from memory to ingame coordinates?
  2. #2
    ZidaneT's Avatar Corporal
    Reputation
    6
    Join Date
    Jan 2012
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it's been a while since I coded anything for wow, but iirc the in-memory co-ordinates are continental (i.e. for the whole continent), the add-on displayed co-ordinates are zone co-ordinates (i.e. for the zone you are in)

    as far as I recall, you can just take the offset from continent to zone and subtract it to localise for the zone.

  3. #3
    radarlove's Avatar Contributor
    Reputation
    158
    Join Date
    Jun 2012
    Posts
    205
    Thanks G/R
    2/11
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ZidaneT View Post
    it's been a while since I coded anything for wow, but iirc the in-memory co-ordinates are continental (i.e. for the whole continent), the add-on displayed co-ordinates are zone co-ordinates (i.e. for the zone you are in)

    as far as I recall, you can just take the offset from continent to zone and subtract it to localise for the zone.
    What exactly do you mean by "take the offset from continent to zone"?

  4. #4
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Each zone has a bounding box defined in the WorldMapArea DBC iirc.

    Know that, you can calculate the relative ([0, 1] x [0, 1]) position in the zone.
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  5. #5
    radarlove's Avatar Contributor
    Reputation
    158
    Join Date
    Jun 2012
    Posts
    205
    Thanks G/R
    2/11
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, so linear extrapolation should do the trick.
    I'll go check on the "WorldMapArea DBC", what exactly is a DBC? . Can this actually be read out of memory or are these static boxes per zone?
    And, if someone happens to have some lines of code, I would greatly appreciate it (thx).

    thx for replies/effort,
    RL
    Last edited by radarlove; 10-18-2012 at 05:50 AM.

  6. #6
    radarlove's Avatar Contributor
    Reputation
    158
    Join Date
    Jun 2012
    Posts
    205
    Thanks G/R
    2/11
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    An additional question: can anyone advise me a good MPQ reader? Cause I understand that is needed to read the DBC's?

  7. #7
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can either extract the DBC's from the MPQ's or read them from memory, Apoc has posted a way to do the latter several months ago.

    Take a look at API GetCorpseMapPosition - WoWWiki - Your guide to the World of Warcraft
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  8. #8
    radarlove's Avatar Contributor
    Reputation
    158
    Join Date
    Jun 2012
    Posts
    205
    Thanks G/R
    2/11
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Robske View Post
    You can either extract the DBC's from the MPQ's or read them from memory, Apoc has posted a way to do the latter several months ago.

    Take a look at API GetCorpseMapPosition - WoWWiki - Your guide to the World of Warcraft
    thx for the info!

    Any MPQ Reader you would recommend? I just googled MPQ Archives - Downloads (MPQ Archives)... that a good one?

  9. #9
    giggling's Avatar Member
    Reputation
    1
    Join Date
    Jul 2010
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by radarlove View Post
    An additional question: can anyone advise me a good MPQ reader? Cause I understand that is needed to read the DBC's?
    I use Ladik's MPQ Editor, and I've had no problems opening/extracting files from WoW MPQs (available from Google).
    You'll also need a DBC editor. I use Bitforge's DBC Editor, but I don't remember where or when I got it and Google isn't being very helpful. You'll have to search and try out different DBC editors until you find one you like.

  10. #10
    radarlove's Avatar Contributor
    Reputation
    158
    Join Date
    Jun 2012
    Posts
    205
    Thanks G/R
    2/11
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by giggling View Post
    I use Ladik's MPQ Editor, and I've had no problems opening/extracting files from WoW MPQs (available from Google).
    You'll also need a DBC editor. I use Bitforge's DBC Editor, but I don't remember where or when I got it and Google isn't being very helpful. You'll have to search and try out different DBC editors until you find one you like.
    Thx for this info. Just one additional question: Which file do I need to access for the WorldMapArea.dbc?

  11. #11
    giggling's Avatar Member
    Reputation
    1
    Join Date
    Jul 2010
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by radarlove View Post
    Which file do I need to access for the WorldMapArea.dbc?
    On 3.3.5a it is in Data/enUS/Patch-enUS-3.MPQ

    Other than that you'll have to search for it

    You also might find http://www.pxr.dk/wowdev/wiki/index....rldMapArea.dbc useful. Or perhaps horribly out of date....

Similar Threads

  1. Cruising the spell cache from memory
    By amadmonk in forum WoW Memory Editing
    Replies: 5
    Last Post: 12-08-2009, 08:38 PM
  2. Pulling Entities from memory
    By suicidity in forum MMO Exploits|Hacks
    Replies: 20
    Last Post: 01-29-2009, 11:40 AM
  3. [Guide][VB.NET] Read a string from memory
    By Gothian in forum Programming
    Replies: 14
    Last Post: 08-18-2008, 04:39 PM
  4. [Guide][VB.NET] Reading a String From Memory
    By Gothian in forum WoW Memory Editing
    Replies: 14
    Last Post: 01-18-2008, 12:08 PM
All times are GMT -5. The time now is 12:07 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search