• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • X,Y Co-ords

    Discussion in 'Archives' started by niggle, May 30, 2010.

    1. niggle

      niggle New Member

      Joined:
      May 13, 2010
      Messages:
      31
      Likes Received:
      0
      Trophy Points:
      0
      I've made a quick little python program to convert the xml from Epatrol (which happens to be used for omega-bot) to work with HB, although I've noticed the X,y co-ords are reversed. eg x=y y=x

      So I moved around on HB getting my position from moving on what I would call the X axis and it seems to alter the Y position...any ideas why it appears to be the wrong way around?
       
    2. npittas

      npittas New Member

      Joined:
      Mar 20, 2010
      Messages:
      58
      Likes Received:
      0
      Trophy Points:
      0
      well as far as I know from different 3D Packages (Max, Maya Houdini, XSI) XY and Z are World Dependend Coordinates.
      So in those packages you can alter the way it interpretes the world.
      With those 3D packages, X is for Horizontal, Y for Vertical and Z for Depth, and thats how the design team makes the game. Thats also correct in Architectural Drawing.
      Now for a game engine (like the one in wow) as you look at your map, X and Y can be reversed because your game map could be reversed.
      Or the creator's Map had reverse coordinates.
      In any occasion reversing X and Y should not pose a problem unless there is some problem in the translation of Epatrols Map. Have you tested the other way around?
      Try and mark a spot in HB and put those XY cords to ePatrol. Will it take you to the correct place? If yes then you're ok. If not, try some more hotspots and see if a pattern emerges. Is the offset stable, like 10units? Does it progress the farther away you go from the starting hotspot?
      I hope I helped
       
    3. niggle

      niggle New Member

      Joined:
      May 13, 2010
      Messages:
      31
      Likes Received:
      0
      Trophy Points:
      0
      Thanks for the information.

      There's no problem reversing them and swapping them around does in fact work. It just seemed curious to me that they appeared to be reversed.

      I've successfully written my python script to translate Epatrol xml files to work with HB but with it being written in python it's audience would be limited to those with python and the correct libraries installed. Perhaps I should learn some vc++ or something and write it in that :)
       
    4. DarkBen

      DarkBen New Member

      Joined:
      Jan 15, 2010
      Messages:
      299
      Likes Received:
      12
      Trophy Points:
      0
      Hi niggle, if i got it correct you got the X,y coordinates from any map and converted to a coordinate for HB?

      if you did that plz pm me with the formula. :)
       
    5. niggle

      niggle New Member

      Joined:
      May 13, 2010
      Messages:
      31
      Likes Received:
      0
      Trophy Points:
      0
      No fraid not, however this might help, http://vforums.mmoglider.com/showthread.php?t=53017&highlight=epatrol

      I've found it very usefull in getting co-ords, as well as the Z co-ords.. just make sure you swap the x,y to get it to work in HB. Also if you goto the FTP site in that link you can find the latest version of it.

      The python script I've created only takes the saved xml from that epatrol and saves it in a format HB can understand.
       
    6. niggle

      niggle New Member

      Joined:
      May 13, 2010
      Messages:
      31
      Likes Received:
      0
      Trophy Points:
      0
      I see what you're after now ;) That would be a very good thing. You could translate the wowhead database with that and get the position of every node in the game :)
       
    7. DarkBen

      DarkBen New Member

      Joined:
      Jan 15, 2010
      Messages:
      299
      Likes Received:
      12
      Trophy Points:
      0
      Exactly!

      :D

      And guess what? i already found how. :D now it?s only a matter of how fast can i have a functional coding. :)

      Problem will be with Z Coord. but i believe i can work that out. i can grab a valid Z from a MESH. :D
       
      Last edited: Jun 4, 2010
    8. znuffie

      znuffie Banned

      Joined:
      Feb 23, 2010
      Messages:
      864
      Likes Received:
      30
      Trophy Points:
      28
      Hey, I don't have access to that thread, apparently. I'd like to get my hands on that content, how can I? :)
       
    9. DarkBen

      DarkBen New Member

      Joined:
      Jan 15, 2010
      Messages:
      299
      Likes Received:
      12
      Trophy Points:
      0
      register to that forum i believe, i didnt had access either, but that because i already found how.
       
    10. znuffie

      znuffie Banned

      Joined:
      Feb 23, 2010
      Messages:
      864
      Likes Received:
      30
      Trophy Points:
      28
      Oh? Care to share the formula?

      I'd love to mine wowhead for that data :)

      Apparently I can't view that thread that niggle linked.
       
    11. DarkBen

      DarkBen New Member

      Joined:
      Jan 15, 2010
      Messages:
      299
      Likes Received:
      12
      Trophy Points:
      0
      Problem is not the formula, is how you bond everything together.
       
    12. niggle

      niggle New Member

      Joined:
      May 13, 2010
      Messages:
      31
      Likes Received:
      0
      Trophy Points:
      0
      Z co-ords would be trival to do, if you parse the data to an xml file that EPatrol can understand it'll work it all out for you.
       
    13. znuffie

      znuffie Banned

      Joined:
      Feb 23, 2010
      Messages:
      864
      Likes Received:
      30
      Trophy Points:
      28
      Hmmm, I see, so what is absolute 0,0 on each continent? then you stick everything together starting from that point, based on the size of all areas?
       
    14. MaiN

      MaiN Moderator Staff Member Moderator Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      1,017
      Likes Received:
      35
      Trophy Points:
      48
      WoW uses a crazy coordinate system.

      [​IMG]

      You can find the height of the mesh at any X and Y point by using Navigator.FindMeshHeight.
       
      Last edited: Jun 6, 2010
    15. DarkBen

      DarkBen New Member

      Joined:
      Jan 15, 2010
      Messages:
      299
      Likes Received:
      12
      Trophy Points:
      0
      Cool.

      Now all i need is to open and MPQ File to grab the ZoneData, and get the ZoneSize X,Y and the ZoneOffset then with that info i can tel you an NPC @ 43, 90 is @ HB Coord X,y.

      I already found a UP to Date DB within Cartographer lua Files, it has all offsets, continents and even Found a routing routine in questhelper, which i plan to use to give the shortest path to an objective. (By flying, by walking, etc). :)
       
    16. pilesos

      pilesos New Member

      Joined:
      Oct 18, 2010
      Messages:
      24
      Likes Received:
      0
      Trophy Points:
      1
      Just wounder is there an way to convert WowHead coordinates to HonorBuddy coordinates and if its possible -then how? Simple formula or I have to know every Zone offset to world coord?
       
    17. crack00r

      crack00r Member

      Joined:
      Jan 15, 2010
      Messages:
      697
      Likes Received:
      1
      Trophy Points:
      18
      no, wowhead is area cords, wow use world cords
       
    18. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      Yes, see ClickToGo plugin for the formula
       
    19. DissBeeChris

      DissBeeChris New Member

      Joined:
      Jan 15, 2010
      Messages:
      34
      Likes Received:
      0
      Trophy Points:
      0
      its easy to do, I coded a plugin that converted the coordinates a couple of days after hb2 came out
       
    20. Kickazz006

      Kickazz006 Well-Known Member Moderator

      Joined:
      Jan 15, 2010
      Messages:
      20,567
      Likes Received:
      302
      Trophy Points:
      83
      i've been wanting a program (or addon) that you can see "my position" while HB2 is being "fixed" when cata comes out so that I can make grinding profiles as I grind / quest up
       

    Share This Page