[Source] PPather pathfinder in your own programs menu

User Tag List

Results 1 to 7 of 7
  1. #1
    barthen's Avatar Contributor Authenticator enabled
    Reputation
    84
    Join Date
    Apr 2007
    Posts
    111
    Thanks G/R
    4/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Source] PPather pathfinder in your own programs

    How to use the PPather pathfinder in your own programs
    by barthen


    First of all, this is a partial rip of the PPather source code (it's released under the lesser GPL license, so it's fine to do it).
    So 99.99% of the credits go to the PPather team.

    This post is useful for those people tryng to code a bot and looking for a pathfinder.

    When creating your own bot you have to deal with the problem of "How do I get from point A to point B?". This sample code shows you how you can achive that goal without reinventing the wheel.

    You can use the pathfinder included in PPather and watch it load geometry data from the mpqs and calculate the path for you.


    Downloads

    Screenshot of the path calculated in the sample program (from orc noob village to Razor Hill):




    Updated for PPather1.0.4dBETA3.3
    Download the example source code from: http://www.megaupload.com/?d=QDSPECP7

    Limitations & flaws


    • The pather only calculates paths within the same maps (ie. no paths from Kalimdor to Eastern Kingdoms)
    • It's slow
    • If you get a "too long search, aborting" error, you may have to tweak the timeout in the PathGraph.cs file:


    Code:
                        System.TimeSpan ts = System.DateTime.Now.Subtract(pre);
                        if (ts.Seconds > 60)
                        {
                            Log("too long search, aborting");
                            break;
                        }
    it originally was 15 seconds in the PPather source, I changed it to 60 seconds (feel free to modify it to suit your needs).

    Hope you like it!
    Last edited by barthen; 11-29-2008 at 07:47 AM.

    [Source] PPather pathfinder in your own programs
  2. #2
    metalqiang's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's a good source.

  3. #3
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Really nice i will take a look at it when i get home

  4. #4
    barthen's Avatar Contributor Authenticator enabled
    Reputation
    84
    Join Date
    Apr 2007
    Posts
    111
    Thanks G/R
    4/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Updated for PPather1.0.4dBETA3.3

  5. #5
    ~Jagris's Avatar Contributor
    Reputation
    154
    Join Date
    Apr 2007
    Posts
    1,479
    Thanks G/R
    2/2
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I love you so much!!!!!!


  6. #6
    luciferc's Avatar Contributor
    Reputation
    90
    Join Date
    Jul 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    very good +Rep for Contrib

  7. #7
    Corthezz's Avatar Elite User Authenticator enabled
    Reputation
    386
    Join Date
    Nov 2011
    Posts
    326
    Thanks G/R
    184/98
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could someone reupload the source please?
    Thanks in advancve

Similar Threads

  1. How to make your own Ppather script revamped
    By ~Jagris in forum WoW Bot Maps And Profiles
    Replies: 9
    Last Post: 02-21-2009, 01:57 PM
  2. [RELEASE] How to compile your own funserver and Patch the source code
    By pepsi1x1 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 12-26-2007, 06:24 PM
  3. PROGRAM: Make your own NOAFK programs
    By Tromball in forum World of Warcraft General
    Replies: 0
    Last Post: 12-25-2006, 05:10 PM
  4. Kill your own factions NPC's
    By Matt in forum World of Warcraft Exploits
    Replies: 9
    Last Post: 08-18-2006, 04:05 PM
All times are GMT -5. The time now is 07:59 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search