coordinate system menu

User Tag List

Results 1 to 6 of 6
  1. #1
    Sillyboy72's Avatar Member
    Reputation
    13
    Join Date
    Jan 2009
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    coordinate system

    Sorry, lame question, but...

    How do I convert from wow's internal coordinate system to what we typically see in game?

    (9507.7,-6806.8, 17.4) that I see internally vs (47.2, 45.6) that players typically see.

    coordinate system
  2. #2
    suicidity's Avatar Contributor
    Reputation
    207
    Join Date
    Oct 2006
    Posts
    1,439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    float mapSize = ((64*16) * ((150.0f/36.0f)*); // 34133.333
    float tileSize = 150.0f / 36.0f * 8 * 16; // 533.333

    float absCoordX = (mapSize / 2) - WoW.Player.X + tileSize;
    float absCoordY = (mapSize / 2) - WoW.Player.Y + tileSize;

    int tileX = (int)(absCoordX / tileSize) - 1;
    int tileY = (int)(absCoordY / tileSize) - 1;

    EDIT:

    The coords you posted would be -> 14.17, 44.76
    Last edited by suicidity; 01-18-2009 at 02:41 PM.


  3. #3
    Sillyboy72's Avatar Member
    Reputation
    13
    Join Date
    Jan 2009
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by suicidity View Post
    float mapSize = ((64*16) * ((150.0f/36.0f)*);
    float tileSize = 150.0f / 36.0f * 8 * 16;

    float absCoordX = (mapSize / 2) - WoW.Player.X + tileSize;
    float absCoordY = (mapSize / 2) - WoW.Player.Y + tileSize;

    int tileX = (int)(absCoordX / tileSize) - 1;
    int tileY = (int)(absCoordY / tileSize) - 1;

    EDIT:

    The coords you posted would be -> 14.17, 44.76
    So..., indeed the 14.17, 44.76 is what's poppin' out, but I expected something around 47.2, 46.7!?

  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 Sillyboy72 View Post
    So..., indeed the 14.17, 44.76 is what's poppin' out, but I expected something around 47.2, 46.7!?
    Depends on the mod you use for the coords. Some have them screwy.

  5. #5
    Sillyboy72's Avatar Member
    Reputation
    13
    Join Date
    Jan 2009
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post
    Depends on the mod you use for the coords. Some have them screwy.
    Don't think its mod related. the lua function GetPlayerMapPosition seems to give its values in 0.0-1.0 ... so basically a % of the current zone. Not really sure what the positions I am pulling out of memory represent, but I will dig around some more

  6. #6
    dehe's Avatar Member
    Reputation
    1
    Join Date
    Mar 2012
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Sillyboy72 View Post
    Don't think its mod related. the lua function GetPlayerMapPosition seems to give its values in 0.0-1.0 ... so basically a % of the current zone. Not really sure what the positions I am pulling out of memory represent, but I will dig around some more
    GetPlayerMapPosition has to be multiplyed by 100.

    float mapSize = ((64*16) * ((150.0f/36.0f)*); // 34133.333
    float tileSize = 150.0f / 36.0f * 8 * 16; // 533.333

    float absCoordX = (mapSize / 2) - WoW.Player.X + tileSize;
    float absCoordY = (mapSize / 2) - WoW.Player.Y + tileSize;

    int tileX = (int)(absCoordX / tileSize) - 1;
    int tileY = (int)(absCoordY / tileSize) - 1;

    EDIT:

    The coords you posted would be -> 14.17, 44.76
    But the formula is wrong for Y(map) value. in goldshire, you start at 48/42 in map coordinates, but world coordinates are -8915.00;-131.00;90.00
    Edit:
    the formula gives out the correct X value, but th Y value it gives out is about -5300.00.


    can someone plz tell me the correct formula for calulating the y value?
    Last edited by dehe; 06-29-2012 at 09:29 AM.

Similar Threads

  1. Transforming transport/boat's coordinate system
    By Tanaris4 in forum WoW Memory Editing
    Replies: 14
    Last Post: 02-05-2011, 02:46 PM
  2. Question about Coordinates
    By dela in forum WoW ME Questions and Requests
    Replies: 8
    Last Post: 08-26-2006, 04:52 AM
  3. New to the honor system? Guide here
    By Amedis in forum World of Warcraft Guides
    Replies: 0
    Last Post: 06-16-2006, 09:21 AM
  4. The Honour System Explained
    By Cush in forum World of Warcraft Guides
    Replies: 2
    Last Post: 05-27-2006, 06:50 PM
  5. Replies: 0
    Last Post: 03-24-2006, 01:43 AM
All times are GMT -5. The time now is 11:13 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