Game Development Community

Bots

by Joe Melton · in Torque Game Engine · 10/05/2003 (10:11 pm) · 3 replies

I am trying to add bots from the console. I followed Beffy's tutorial, using the latest HEAD.

I added the aiPlayer.cc and aiPlayer.h files to the project and recompiled. When I attempt to add a bot from the console, by entering $myBot01 = aiAddPlayer("Test");
I get an error "Unable to find function aiAddPlayer." I have recompiled two or three times, each time making sure those files have been added to the project.

I searched both of those files for "aiAddPlayer," and the search returned nothing.

What am I doing wrong? Does this still work?

#1
10/05/2003 (11:20 pm)
Nevermind. After searching through some unrelated posts in the forums, I decided to try adding aiClient.cpp and aiClient.h to the project and then compiling. After doing this and running the demo, I am able to add bots. Guess things have been moved, so hopefully someone will update Beffy's first bot tutorial.
#2
10/07/2003 (8:19 pm)
Hello Joe,

You should go to thier site, Beffy (All hail!) already updated the code there. ;)

Alex

edit: corrected site url
#3
10/08/2003 (6:55 pm)
I've been there before, but their site was a bit difficult to navigate. Have they updated in the last few months?

Thanks for pointing that out, though.