Page 1 of 5

New bot pathfinding!

Posted: Sat Jul 19, 2003 7:28 pm
by jv_map
Yay I'm so excited this works (a bit) :D

I read some programming tutorials about AI pathfinding, the A* algorithm in particular. I decided to try to script something like that for my bots and even works! I also made some kind of bot compiler which automatically generates 'pathnodes' for the bots (e.g. in stock maps) and can dump this via qconsole.log to a .nav file (a script actually that can be read by the pathfinding script) or a prefab.

Example pathfinding results in mohdm6 (Stalingrad):
Image
Image

Posted: Sat Jul 19, 2003 8:21 pm
by Alcoholic
cool. you did that with plain mohaa scripting?

Posted: Sat Jul 19, 2003 9:23 pm
by Des16
Does that mean we might see bots on stock maps by any chance?

Posted: Sun Jul 20, 2003 1:50 am
by HappyChappy_7000
cOOl
When will the BETA test come out :?:

Posted: Sun Jul 20, 2003 6:01 am
by jv_map
Yes to Alcoholic and Des16 :D

I don't know yet to HappyChappy :?

Posted: Sun Jul 20, 2003 7:19 am
by Des16
cool, can't wait 8-)

Posted: Sun Jul 20, 2003 6:08 pm
by C06alt
Great work so far jv_map. I know you can do this :)
Stockmaps would certinly put jv_bot on the map. :shock:

Posted: Tue Jul 22, 2003 1:12 am
by small_sumo
Dood well done. the guy who made realbot for cs did it that way as well. Maybe you could track him down and bump heads.

Thanks again jv...........

Posted: Tue Jul 22, 2003 8:17 pm
by LT.BARNES
WOW!

man jv map u always surprise!!

i mean I WOULD SOOOOOOOOO LOVE BOTS in the real mp levels!!!!!!

how sweet would that be!!!!

i mean the things i think would ROX!!! are....

1) able to see bots scores in the score board.
2) bots in official mp levels!!

and lastly

3) in round based and objective. when u die u watch the rest in your team

would love to watch the bots on ur side, like press ENTER to change who u watch and so on.

i think u said u done both 1) and 2) wat i mean by that is u are working on them both and hope to be out soon

dunno about 3) is it poss

Posted: Wed Jul 23, 2003 12:47 pm
by Bjarne BZR
JV... you lovely man.
:D

Posted: Fri Jul 25, 2003 1:02 am
by brendank310
i was reading in the fakk2 documents that there is a command to generate pathnodes. or so it seemed like it. i will look at it later and

Code: Select all

AI/Routing

==========

        ai_createnodes - when set to 1, path nodes will be generated when loading a map.
thats taken from the fakk2 documents, so it may work. but knowing ea, the probably took it out. worth a shot anyway. i would try it but i screwed my console up :-(. and no its not with the advanced setting thing. i just hexed too much.

Posted: Fri Jul 25, 2003 6:24 am
by jv_map
Hmm I think that sets whether the pathnode layout is updated when you load a map. Might actually be useful for adding pathnodes to stock maps using a .pth file :)

Posted: Fri Jul 25, 2003 10:47 am
by LT.BARNES
jv_map.

you always surprise me :)

how long will this take do u think?

soz i don't speak for my self when i say "bots in official mp levels in mohaa is what i would love to see."

hee hee :)

gr8 job and i CAN'T wait

Posted: Sun Jul 27, 2003 11:59 pm
by Jb
Stockmaps would certinly put jv_bot on the map.
He already is on the map. :wink:

Posted: Mon Jul 28, 2003 9:04 pm
by LT.BARNES
well it will put him TOP of every map