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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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/