Game Development Community

Input> (0): Unable to find object: ...

by PrvtHudson · in Torque Game Engine · 08/31/2006 (7:27 pm) · 1 replies

Does anyone know why I get a nasty console message when I create an object. The ship appeard allright but I Get this in my console...

input> (0): Unable to find object: '' attempting to call function 'getTransform'

===========================================================================

function launchShip(){
// *****************************************************************
// SPACESHIP
// 1. Spawn the vehicle. Spawn the player 3. Mount the veicle.
// *****************************************************************
%ss = new FlyingVehicle(){
dataBlock = Drone;
client = %this;
};


My datablock looks like this and I have no onAdd handler.

datablock FlyingVehicleData(Drone)
{
spawnOffset = "0 0 2";
emap = true;
category = "Vehicles";
shapeFile = "~/data/shapes/spaceship/ss.dts";
multipassenger = false;
computeCRC = true;
debrisShapeName = "~/data/shapes/vehicles/Drone.dts";
// debris = DroneShapeDebris;
renderWhenDestroyed = false;
mountPose[0] = sitting;
numMountPoints = 1;
isProtectedMountPoint[0] = true;
cameraMaxDist = 0.5;
cameraOffset = 4.5;
cameraLag = 0.0;
cameraRoll = true; // Roll the camera with the vehicle
... etc etc

#1
09/06/2006 (9:14 pm)
This was caused by 3D World Studio ... the messages went away when I ( ready for this ? ) ... restarted it ...