New bot pathfinding!

Please use this forum to ask all your MoHAA Bots questions / discussions

Moderator: Moderators

jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

New bot pathfinding!

Post 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
Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

cool. you did that with plain mohaa scripting?
Des16
Corporal
Posts: 25
Joined: Thu Apr 24, 2003 2:30 pm

Post by Des16 »

Does that mean we might see bots on stock maps by any chance?
User avatar
HappyChappy_7000
Warrant Officer
Posts: 146
Joined: Thu Jul 10, 2003 1:14 pm
Location: Australia
Contact:

Post by HappyChappy_7000 »

cOOl
When will the BETA test come out :?:
What? You know who I am?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yes to Alcoholic and Des16 :D

I don't know yet to HappyChappy :?
Image
Des16
Corporal
Posts: 25
Joined: Thu Apr 24, 2003 2:30 pm

Post by Des16 »

cool, can't wait 8-)
C06alt
Private
Posts: 6
Joined: Sun Jul 06, 2003 1:22 pm

Post by C06alt »

Great work so far jv_map. I know you can do this :)
Stockmaps would certinly put jv_bot on the map. :shock:
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post 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...........
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
LT.BARNES
Major
Posts: 288
Joined: Mon Dec 30, 2002 4:37 pm
Location: london

Post 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
...prepare for your finest hour...
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

JV... you lovely man.
:D
Admin .MAP Forums
Image
Head above heels.
brendank310
Corporal
Posts: 27
Joined: Mon Apr 07, 2003 11:02 am
Contact:

Post 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.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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 :)
Image
LT.BARNES
Major
Posts: 288
Joined: Mon Dec 30, 2002 4:37 pm
Location: london

Post 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
...prepare for your finest hour...
Jb
Corporal
Posts: 33
Joined: Wed Jul 23, 2003 7:29 pm
Location: Cowpoke, Tx
Contact:

Post by Jb »

Stockmaps would certinly put jv_bot on the map.
He already is on the map. :wink:
LT.BARNES
Major
Posts: 288
Joined: Mon Dec 30, 2002 4:37 pm
Location: london

Post by LT.BARNES »

well it will put him TOP of every map
...prepare for your finest hour...
Post Reply