Help with AIWheeledVehicle2
by Quentin Headen · in Torque Game Engine · 02/16/2008 (11:50 pm) · 7 replies
Hello everyone! I have Torque 1.4, and I wanted to make an Ai car follow a set path. I found this resource:
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8836
It was made by Brian McGavin, and I remember using this code before. I keep trying to add the source files and recompiling Torque. Torque recompiles fine, but when I run my game and try to add a new AiWheeledVehicle2 object, it says there is no such type of datablock. Please help me with this because I need this code badly.
Thanks :)
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8836
It was made by Brian McGavin, and I remember using this code before. I keep trying to add the source files and recompiling Torque. Torque recompiles fine, but when I run my game and try to add a new AiWheeledVehicle2 object, it says there is no such type of datablock. Please help me with this because I need this code badly.
Thanks :)
About the author
Just your average programmer who tries to finish the projects he starts. :) I am currently focused on creating games with Torque engines. My website is http://phaseshiftsoftware.com
#2
I don't know what the problem is. Please help!
02/18/2008 (3:51 am)
Okay, here is the exact error: " (0): Unable to instantiate non-conobject class AiWheeledVehicle2."I don't know what the problem is. Please help!
#3
02/18/2008 (4:43 pm)
That could be a few different things. Try searching for "unable to instantiate" and you'll see some possiblities.
#4
02/18/2008 (5:38 pm)
I seem to be trying everything. I add the .cc and .h files to the project, and I recompile Torque, but nothing seems to be working. I keep getting that same error.
#5
Didja search the forums for the error message?
Edit: The problem is certainly on the script side of life. I notice that you renamed it to AiWheeledVehicle2. Why?
02/18/2008 (6:32 pm)
The only thing I know for sure is that it DOES matter what order you put things in the *.cs file. Basically, any function or datablock that gets called, make sure it's in the file before the place where you make the call or reference.Didja search the forums for the error message?
Edit: The problem is certainly on the script side of life. I notice that you renamed it to AiWheeledVehicle2. Why?
#6
02/19/2008 (5:16 am)
Well, I came to find out that it wasn't the script problem at all. When I recompiled Torque in C++, I was recompiling under the Debug configuration. This was building the torqeDemo_DEBUG.exe. I had to switch it to the Release configuration, and under that config, it built the regular torqueDemo.exe. Thanks for your help anyway.
#7
02/19/2008 (5:18 am)
And btw, I named the datablock AiWheeledVehicle2, because in this resource, Brian McGavin made a new type of Ai car that can follow a path just like a player.
Torque Owner Lee Latham
Default Studio Name
What does it say...exactly?