Advanced 3D Game Prog: Chapter 8 AIT Prob
by Josh Mannebach · in Torque Game Engine · 04/29/2007 (11:02 am) · 2 replies
Hi,
Im having a problem with the books chapter 8 AIT scripts. The problem is when i try to talk with the AI I get the error
getSubStr(...): error, starting position and desired length must be >= 0: (0, -1)
I have fixed the endless loop bug as seen on a previous thread, but I can't figure out if I need to change parameters for one of the getSubStr() calls to get this to work. I coded it from the book, and am using TGE 1.5.
Any help on this would be much appreciated. Thanks!
Im having a problem with the books chapter 8 AIT scripts. The problem is when i try to talk with the AI I get the error
getSubStr(...): error, starting position and desired length must be >= 0: (0, -1)
I have fixed the endless loop bug as seen on a previous thread, but I can't figure out if I need to change parameters for one of the getSubStr() calls to get this to work. I coded it from the book, and am using TGE 1.5.
Any help on this would be much appreciated. Thanks!
#2
But sounds like you're off to a good start.
04/20/2010 (12:44 pm)
I just went through that book last term - you will likely find alot of differences between the book and the latest build of TGE. (1.5.2) But sounds like you're off to a good start.
Mollie Harms
$pref::AIT::DataPath = "starter.fps/data/AIT";
instead of
$pref::AIT::DataPath = "demo/data/AIT";