Converting between in-game and memory read coordsinates? menu

User Tag List

Results 1 to 7 of 7
  1. #1
    Malmis's Avatar Member
    Reputation
    1
    Join Date
    Aug 2009
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Converting between in-game and memory read coordsinates?

    Does anyone know how to convert X and Y positions that are reported by for example the "GetPlayerMapPosition("player")" function into the ones returned by reading the WoW process' memory?
    I'm not really good at the math stuff, but what I've found out so far is that for example 22.38,46.14 and 24.05,50.07 in-game are the coordinates for -1241,-1672 and -1335,-1733 in memory (As reported by WoWrobot). Calculating the length between gives a distance of ~4.27 in-game and ~112.05 in memory. So some kind of formula should do it... I'm sure it already exists, but I can't find it.
    Could anyone help me?

    Converting between in-game and memory read coordsinates?
  2. #2
    audible83's Avatar Member
    Reputation
    4
    Join Date
    Jun 2008
    Posts
    48
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    shortly, you cant do it properly.

    Look at how questhelper ( i think its questhelper ) have done it. They are defining the outer xy of each zone and just calculating that way.

    Tbh i dont see the value of calculating it. You can use one of the wowradars that are available + having full access to lua implies that you know how to read xyz so then it would be no problem.

    Good luck however

    if you write what you are using it for, then maybe i could point you at a spesific direction

  3. #3
    Malmis's Avatar Member
    Reputation
    1
    Join Date
    Aug 2009
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, the idea was to use Gathermate and then Routes to create a path for the most efficient way of farming nodes.
    I can find the in-game X and Y in the SavedVariables folder, but I have no idea how to easily convert it to for example a .psc or Pather .xml file, with the "correct" coordinates.

  4. #4
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by audible83 View Post
    shortly, you cant do it properly.

    Look at how questhelper ( i think its questhelper ) have done it. They are defining the outer xy of each zone and just calculating that way.

    Tbh i dont see the value of calculating it. You can use one of the wowradars that are available + having full access to lua implies that you know how to read xyz so then it would be no problem.

    Good luck however

    if you write what you are using it for, then maybe i could point you at a spesific direction
    Bzzzzt wrong.

    It's actually fairly easy to do.

    The DBCs give you an area 'bounds'. The in game map coords (53.25, 25.6 for example) are translated from the area bounds. (0,0 being the corner of the area) IIRC; there's 0-100 on both the X and Y axis. So some simple math can easily translate it for you.

  5. #5
    Malmis's Avatar Member
    Reputation
    1
    Join Date
    Aug 2009
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post
    Bzzzzt wrong.

    It's actually fairly easy to do.

    The DBCs give you an area 'bounds'. The in game map coords (53.25, 25.6 for example) are translated from the area bounds. (0,0 being the corner of the area) IIRC; there's 0-100 on both the X and Y axis. So some simple math can easily translate it for you.
    But areas differ in size, so how can it always be 0-100? Is it necessary to calculate the difference for each different zone?

  6. #6
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Malmis View Post
    But areas differ in size, so how can it always be 0-100? Is it necessary to calculate the difference for each different zone?
    Yes, and the math is trivial.

  7. #7
    Malmis's Avatar Member
    Reputation
    1
    Join Date
    Aug 2009
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post
    Yes, and the math is trivial.
    Okay, thanks.

Similar Threads

  1. Questiong about warden and memory reading
    By awp2004 in forum Diablo 3 Bots Questions & Requests
    Replies: 4
    Last Post: 08-15-2012, 07:03 PM
  2. About cheat engine and memory read
    By ziknos in forum Diablo 3 Memory Editing
    Replies: 2
    Last Post: 06-02-2012, 06:38 AM
  3. Difference between EU Game Card and US Game Card?
    By Akkilles in forum World of Warcraft General
    Replies: 7
    Last Post: 09-21-2009, 10:20 AM
  4. [Info] What is the difference between CharDB, LogonDB and WorldDB? Read it here!
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 02-10-2008, 06:28 AM
  5. [AutoIT3] WoW Cordinator (X,Y,MapID and rotation memory reading)
    By Vladinator in forum World of Warcraft Bots and Programs
    Replies: 22
    Last Post: 05-15-2007, 03:26 AM
All times are GMT -5. The time now is 02:37 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