Game Development Community

Unable to find parent object script error

by Rob Segal · in Torque Game Engine · 02/12/2006 (12:12 am) · 2 replies

Got the following block found from a tutorial declared in a script file...

datablock PlayerData(GenericBotShape: PlayerShape)
{
shapeFile = "~/data/shapes/generic.dts"';
category = "bot";
aiPlayer = true;
};

However when I call exec on this script through the console I get the script "Unable to find parent object PlayerData for PlayerShape". I am trying to understand why I would be getting this error but my current level knowledge of Torque knowledge cannot provide me with an answer. Any thoughts on this?

#1
02/12/2006 (3:40 am)
Are you sure that PlayerShape is defined BEFORE you execute those codes?
#2
02/12/2006 (11:20 am)
You know I can't say that I am sure. How might I check? From what I can gather Player.cs is executed before the script I am calling. When I startup the starter.fps demo and check the log it says player.cs was loaded. I would think that is all that is necessary for my declaration to work?