AI problems?
by Denis Linardic · in Torque Game Engine · 12/26/2003 (6:24 am) · 4 replies
Hi. I recently purchased Torque and even you all know that but I have to say it anyway "It's a great engine" :)
Well I tried to implement some AI to the enemy player but withot result, that orc just running around (pretty fast).
If any of you have any idea how to solve this (I am ULTRA N00B with little C++ knowledge) then please help.
P.S. Sorry for my english but it's not my native language.
Well I tried to implement some AI to the enemy player but withot result, that orc just running around (pretty fast).
If any of you have any idea how to solve this (I am ULTRA N00B with little C++ knowledge) then please help.
P.S. Sorry for my english but it's not my native language.
About the author
#2
I been working on AIManager::think(); but have yet to see where this function is called and how this whole think thing works.
Right now I have it so that the AI spawns on path1 and from there he just walks around. I tried using echos to find what he does when but no such luck.
My AIManager::think just more or less sees if anyone is in a 25 unit distance of the aiplayer if it is then the player Should aimAt that player. Problem is when i try to put a AIPlayer::wait(x) it doesnt work either. Idealy once i get this working I want to use the unmount code for vehicles and modify it so that he ai can make their own path. But first i must start small.
If you know whats wrong please help me also :-)
12/26/2003 (9:02 am)
Aye metooI been working on AIManager::think(); but have yet to see where this function is called and how this whole think thing works.
Right now I have it so that the AI spawns on path1 and from there he just walks around. I tried using echos to find what he does when but no such luck.
My AIManager::think just more or less sees if anyone is in a 25 unit distance of the aiplayer if it is then the player Should aimAt that player. Problem is when i try to put a AIPlayer::wait(x) it doesnt work either. Idealy once i get this working I want to use the unmount code for vehicles and modify it so that he ai can make their own path. But first i must start small.
If you know whats wrong please help me also :-)
#3
I included in aiplayer.cs in starter.fps/server/init.cs
exec("./scripts/aiplayer.cs");
I deleted the old init.cs.dso and now the game won't load.
CONSOLE.LOG say this:
Loading compiled script starter.fps/server/scripts/game.cs.
Compiling starter.fps/server/scripts/aiPlayer.cs...
Loading compiled script starter.fps/server/scripts/aiPlayer.cs.
*END OF CONSOLE.LOG*
I did this on WIN XP and I got that "beautiful" send error report window.
Any thoughts on this one ?
12/26/2003 (12:36 pm)
Ok. I repeated the process and:I included in aiplayer.cs in starter.fps/server/init.cs
exec("./scripts/aiplayer.cs");
I deleted the old init.cs.dso and now the game won't load.
CONSOLE.LOG say this:
Loading compiled script starter.fps/server/scripts/game.cs.
Compiling starter.fps/server/scripts/aiPlayer.cs...
Loading compiled script starter.fps/server/scripts/aiPlayer.cs.
*END OF CONSOLE.LOG*
I did this on WIN XP and I got that "beautiful" send error report window.
Any thoughts on this one ?
#4
I have it crashing also, i changed my directory structure, so i think theres soemthing inside the cs that refers to another file, it has to be ion the same folder with, or multiple files.
12/26/2003 (5:50 pm)
Denis, it should be in game.cs in the /server/scripts/ directoryI have it crashing also, i changed my directory structure, so i think theres soemthing inside the cs that refers to another file, it has to be ion the same folder with, or multiple files.
Torque Owner Denis Linardic
I've tried baffy's way (i hope i spelled right) - Krok disaper
tried other thing $mybot01=add... - nothing happend (errors in the console)
tried that with 1.1.2 and HEAD but it just dont work :)