Menu

Bot pathfinding

2001-06-17
2001-06-19
  • Antonin Hildebrand

    I added basic support for A* pathfinding.
    To add bot type in console:
    cb <botname>
    chase <botname>
    bc <botname> go <x> <y>

    bc means "bot command", go means to find path to [x,y] postion in map (in map tiles).

    I used my library, there is lot of unused code for our project, but I know it and I will clean it up. Bot's runs quite well.

    Also I added more functions to bot API:
    bot_init
    bot_command ... callback function for typed bot command from console
    bot_done

    Also added one example cvar called "ai_level"
    cvars could be used for global AI settings.

    Local AI "runtime" data for each bot store in player class !!!
    Find there section "AI". There is currently player->pe (path engine)
    and some more variables for pathfinding.

    experiment, any questions about pathfinding should go here to this forum

    bye
    woid

     
    • Nick Loadholtes

      Nick Loadholtes - 2001-06-19

      I checked out the latest code from CVS and tried to build the code, but I keep getting an error about "pathlib/pathlib.h not found" I looked through the CVS, but I can't find this directory or the file. Has it been put into CVS, or did I overlook something?

      -Nick

       
      • Antonin Hildebrand

        Now sources should be there, they are located in pw2/scr/pathlib.

        Do you have enabled option to update/create directories ?

        http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pw2/pw2/src/pathlib/

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.