PPather and fences - did it ever work? menu

User Tag List

Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 51
  1. #16
    Ugge's Avatar Member
    Reputation
    6
    Join Date
    Aug 2008
    Posts
    15
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    okay, M2s might not even be misrotated. Ryan said they were and it made alot of sense due to the way pather acts.

    PPather and fences - did it ever work?
  2. #17
    darrensmith0125's Avatar Member
    Reputation
    18
    Join Date
    Apr 2009
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Pather only checks whether it can stand at each place it steps to (while planning a route and executing it). If between the last step and the current one there is an obstacle it doesn't see it. A fence is slim so its likely that it is not stepping on it. If it gets stuck (when it runs into it) it will blacklist that step.

    e.g. below are two obstacles in a path, one is large 'a house' and would be stepped on, the other the fence is between two steps (running perpendicular to the path). Each step is shown as an 'x'.


    x x [house x x ] x


    x x x x [Fence] x x x
    Last edited by darrensmith0125; 06-01-2009 at 07:32 AM.

  3. #18
    Hawker's Avatar Active Member
    Reputation
    55
    Join Date
    Jan 2009
    Posts
    214
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by darrensmith0125 View Post
    Pather only checks whether it can stand at each place it steps to. If between the last step and the current one there is an obstacle it doesn't see it. A fence is slim so its likely that it is not stepping on it. If it gets stuck (when it runs into it) it will blacklist that step.

    e.g. below are two obstacles in a path, one is large 'a house' and would be stepped on, the only the fence is between two steps (running perpendicular to the path). Each step is shown as an 'x'.


    x x [house x x ] x


    x x x x [Fence] x x x
    Very interesting.

    I don't understand the code that implements the A* algorithm probably as I don't understand the underlying data. Are road tiles visible to the code as it stands now? And if so, could I add a weighting system?

  4. #19
    testout's Avatar Member
    Reputation
    7
    Join Date
    May 2008
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My pather learns about new obsticles:

    http://www.mmowned.com/forums/wow-me...ng-worlds.html

    Although it doesnt really need to now as I precalculate 99% of them

  5. #20
    Hawker's Avatar Active Member
    Reputation
    55
    Join Date
    Jan 2009
    Posts
    214
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by testout View Post
    My pather learns about new obsticles:

    http://www.mmowned.com/forums/wow-me...ng-worlds.html

    Although it doesnt really need to now as I precalculate 99% of them
    Very nice. That has to be a whole new codebase?

  6. #21
    testout's Avatar Member
    Reputation
    7
    Join Date
    May 2008
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes. It is based on a 2d Map - so it can have difficulty in 3d enviroments like undercity - the process of mining the data from the adt/wmo/m2 files takes a few minutes, and produces the 2d map seen in the video.

    A* is the applied to find paths. When the path is blocked the map is updated and a new route planned.

    MPQ access and ADT/M2/WMO parsing written in C#. No need for storm.

  7. #22
    Hawker's Avatar Active Member
    Reputation
    55
    Join Date
    Jan 2009
    Posts
    214
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by testout View Post
    Yes. It is based on a 2d Map - so it can have difficulty in 3d enviroments like undercity - the process of mining the data from the adt/wmo/m2 files takes a few minutes, and produces the 2d map seen in the video.

    A* is the applied to find paths. When the path is blocked the map is updated and a new route planned.

    MPQ access and ADT/M2/WMO parsing written in C#. No need for storm.
    In your opinion, can the existing ppather be tweaked to score road tiles higher than fence tiles?

  8. #23
    blamani's Avatar Active Member
    Reputation
    19
    Join Date
    Jul 2008
    Posts
    80
    Thanks G/R
    1/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i think it would be great to enhance it into the third dimension, and i think the reason for ppather was to get rid of waypoints, so it should path correctly through towns as well.

  9. #24
    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 H4wker View Post
    In your opinion, can the existing ppather be tweaked to score road tiles higher than fence tiles?
    Yes, but you'll need to add the extra code to determine the tile's texture, and store it somewhere. For my nav dumper, I use something similar to the following;

    Code:
        struct NavRegion
        {
            public Vector3D[] Vertices;
            // Determined from the tiles texture.
            public bool IsRoadOrPath;
            public bool IsWater;
            public bool IsLava;
    
            public int BaseScore
            {
                get
                {
                    int ret = 10;
                    if (IsLava)
                        ret -= 5;
                    if (IsWater)
                        ret -= 2;
                    if (IsRoadOrPath)
                        ret += 5;
                    return ret;
                }
            }
        }
    Obviously, I only dump 1 ADT file at a time, or I run into some wicked memory issues.

  10. #25
    Hawker's Avatar Active Member
    Reputation
    55
    Join Date
    Jan 2009
    Posts
    214
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've made a dummy glider base to run ppather 1.04d. So far the main thing I am noticing it that the Glider API is all based on strings instead of the wowhead entryId. Assuming I get the thing to work at all, I'll use click to move, dostring and injected interact instead of the fussy keys of the Glider API. Then I'll move it to comparing numbers to improve performance. In the exceedingly unlikely event I get that far, I'll post back asking for help with mapping.

    ppather is open source, my base is all on black magic so this will be something anyone can use.

    Thanks all.

  11. #26
    testout's Avatar Member
    Reputation
    7
    Join Date
    May 2008
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think the ppather sources are ugly... just my 2 cents.

  12. #27
    darrensmith0125's Avatar Member
    Reputation
    18
    Join Date
    Apr 2009
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by risyer View Post
    Pather doesn't load most of the M2 models post 3.0.9 since blizzard fixed the ADTs and corrected the file names. In 3.0.9 they where all ending with .mdx. Now most of the ADTs are fixed and the model file names have the correct .m2 ending.

    change:
    Code:
    // change .mdx to .m2
    string file=path.Substring(0, path.Length-4)+".m2";
    to (also import System.IO):
    Code:
    // Change .mdx to .m2 if needed
    string file = path;
    if (Path.GetExtension(path).Equals(".mdx"))
    {
      file = Path.ChangeExtension(path, ".m2");
    }
    I have no idea if it's +90 or -90. In my code base it's -90. Can someone confirm +90 is correct?
    If your pather version does not include this fix then the trees and various other models are invisible to pather. To illustrate this see the image below which is what pather sees before and after the fix at the Tauren starter area "Camp Narache".

    Last edited by darrensmith0125; 06-02-2009 at 04:24 PM.

  13. #28
    Hawker's Avatar Active Member
    Reputation
    55
    Join Date
    Jan 2009
    Posts
    214
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by testout View Post
    I think the ppather sources are ugly... just my 2 cents.
    PPather 1.04d was used by 10s of 1000s for almost 9 months. Software with that degree of usage will rarely be pretty.

    I've got it compiling and moving with my base now. Tomorrow I'll add dostring to replace the GInterface stuff.

    Originally Posted by darrensmith0125 View Post
    If your pather version does not include this fix then the trees and various other models are invisible to pather. To illustrate this see the image below which is what pather sees before and after the fix at the Tauren starter area "Camp Narache".

    As far as I know, there is no public version of PPather with that fix. I'm planning to tinker with the code base to make it use wowhead/entryid and player GUID instead of strings for all its radar. I've kept the pather code separate and unchanged until now but I'll definitely make the improved code code available when I have it working.

  14. #29
    ynoorb's Avatar Member
    Reputation
    11
    Join Date
    May 2009
    Posts
    51
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've found I had to be REALLY patient with pather when it came to fence's around the place. Some it would habdle fine, others it just plain didnt. Still love the way it works over all, after using it I just couldnt go back to waypoint botting

  15. #30
    blamani's Avatar Active Member
    Reputation
    19
    Join Date
    Jul 2008
    Posts
    80
    Thanks G/R
    1/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    H4wker , not everyone wants to use injection, so you should leave the choice to the user which "method" they want to have in their program , if you make the changed pather available to the public.

Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. [Release] Easiest and dumbest Warden bypass ever (Work on Kronoslol)
    By NotJuJuBoSc in forum WoW EMU Programs
    Replies: 3
    Last Post: 12-09-2016, 09:43 AM
  2. Yahtzee - Best and Funniest Game Reviewer Ever
    By Verye in forum Community Chat
    Replies: 2
    Last Post: 02-16-2008, 10:56 PM
  3. how to make new MPQ's with mac and how to make it work?
    By jaspervdg in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 02-06-2008, 01:50 PM
  4. Replies: 27
    Last Post: 08-13-2007, 07:03 AM
All times are GMT -5. The time now is 12:15 AM. 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