Gather - XY mixed up? menu

User Tag List

Results 1 to 5 of 5
  1. #1
    SwInY's Avatar Member
    Reputation
    29
    Join Date
    Jul 2009
    Posts
    97
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Gather - XY mixed up?

    Hey guys, been coding for 2 days now on this new project as i got a feeling honorbuddy will be going down with pirox also,

    will be a fully automated mining / herb bot using NO waypoints.
    all you will do is press 'start' and it will generate best way point.
    but able to disable nodes by clicking on them via the maps and what not.
    it will have the lines drawn on the map and all.



    big project coming out soon.

    as you can see by my pic i have gone heaps far in 2 days, now im facing a problem


    it seems X and Y are mixed up,
    from as far as i know

    X is -> sideways
    Y is Down
    Z is Depth

    for some reason in WOW im getting X and Y mixed up? Y is sideways?
    from what i can see, my bot and Honorbuddy share same X Y

    so is wow back to front ?
    could some one give me some insight ?

    Code:
            enum eUnitOffsets
            {
                X = 0x790,
                Y = X + 0x4,
                Z = X + 0x8,
                R = X + 0x10,
                P = X + 0x014,
                Speed = 0x800,
    
                CastingSpellID = 0xA34,
                ChannelingSpellID = 0xA48,
    
                UnitName1 = 0x91C,
                UnitName2 = 0x64,
            }
    
            enum eObjectOffset
            {
                X = 0x110,
                Y = X + 0x4,
                Z = X + 0x8,
                Type = 0x14, // 0x4D
                GUID = 0xC8, // 0xC8  //0x30
    
                ObjectName1 = 0x1CC,
                ObjectName2 = 0xB4,
            }
    My WoWMe.cs
    Code:
            public static float X
            {
                get { return ProcessManager.WoWProcess.ReadFloat((uint)ObjectManager.pPlayerBase + (uint)Addresses.eUnitOffsets.X); }
            }
    
            public static float Y
            {
                get { return ProcessManager.WoWProcess.ReadFloat((uint)ObjectManager.pPlayerBase + (uint)Addresses.eUnitOffsets.Y); }
            }
    
            public static float Z
            {
                get { return ProcessManager.WoWProcess.ReadFloat((uint)ObjectManager.pPlayerBase + (uint)Addresses.eUnitOffsets.Z); }
            }
    Objects
    Code:
            public float X
            {
                get { return ProcessManager.WoWProcess.ReadFloat((uint)base.BaseAddress + (uint)Addresses.eObjectOffset.X); }
            }
    
            public float Y
            {
                get { return ProcessManager.WoWProcess.ReadFloat((uint)base.BaseAddress + (uint)Addresses.eObjectOffset.Y); }
            }
    
            public float Z
            {
                get { return ProcessManager.WoWProcess.ReadFloat((uint)base.BaseAddress + (uint)Addresses.eObjectOffset.Z); }
            }
    Attached Thumbnails Attached Thumbnails Gather - XY mixed up?-sofar-jpg   Gather - XY mixed up?-see-jpg  

    Gather - XY mixed up?
  2. #2
    namreeb's Avatar Legendary

    Reputation
    668
    Join Date
    Sep 2008
    Posts
    1,029
    Thanks G/R
    8/222
    Trade Feedback
    0 (0%)
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    You are correct. In world coordinates, +Y is west, and +X is north. Also, the origin of the map is at the midpoint. Note that this is not the case for ADT coordinates, which are X+ is east and Y+ is south, and the origin is in the northwest corner.

  3. #3
    SwInY's Avatar Member
    Reputation
    29
    Join Date
    Jul 2009
    Posts
    97
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wow, i spent a good half of the day trying to figure out why my code was so wrong even tho everything was right.

  4. #4
    TheNoobie's Avatar Private
    Reputation
    2
    Join Date
    Jul 2011
    Posts
    6
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You will learn this more and more as you move on to different game engines. Seems that about half of the games I've worked on use X as side and the other half use X as up. The same goes for angles. Some games use X as pitch and some games use X as yaw. Not 100% sure why but I think it's because in physics some people are taught X, Y, Z and others are taught Y, X, Z. Doesn't make any sense but it is what it is.

  5. #5
    dowigr's Avatar Corporal
    Reputation
    3
    Join Date
    Nov 2010
    Posts
    15
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What you are seeing here is the difference between a Left-handed Cartesian coordinate system, and a Right-handed one. In a Left handed coordinate system, the X plane is said to be negative to the y axis. In wow, a Left-handed coordinate system is used with X being the Northern direction. You can google the difference between both these coordinate systems. TheNoobie is right, there is a split in games for which is used. It's one of the first things you need to check before coding any way-point navigation.

Similar Threads

  1. Best place for Mithril? or Gathereer profiles?
    By lsybarra in forum World of Warcraft Guides
    Replies: 1
    Last Post: 11-23-2006, 03:58 AM
  2. Do u like MMA(mixed Marshal ART)
    By LightWave in forum Community Chat
    Replies: 3
    Last Post: 09-05-2006, 06:47 AM
  3. Mixed Item Textures
    By Demonkunga in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 08-22-2006, 12:32 AM
  4. Exploit the Gatherer Mod
    By Matt in forum World of Warcraft Guides
    Replies: 5
    Last Post: 04-25-2006, 06:04 AM
All times are GMT -5. The time now is 12:24 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