Debris
by Howard Dortch · in Torque Game Engine · 09/10/2005 (7:18 am) · 8 replies
How can I create debris that is not attached to anything?
I have been trying various new object types but all fail so what can I use to create the debris object ?
%obj = new WHAT_DO_I_PUT_HERE() {
position = %pos;
rotation = "0 0 1 0";
scale = "1 1 1";
dataBlock = "FireDebris";
};
I have been trying various new object types but all fail so what can I use to create the debris object ?
%obj = new WHAT_DO_I_PUT_HERE() {
position = %pos;
rotation = "0 0 1 0";
scale = "1 1 1";
dataBlock = "FireDebris";
};
#2
datablock DebrisData(FireDebris)
{
shapeFile = "~/data/shapes/weapons/explosions/debris.dts";
etc..............
};
%obj = new Debris() {
position = "20 20 140";
rotation = "0 0 1 0";
scale = "1 1 1";
dataBlock = "FireDebris";
};
and the result is %obj = 0 and this console log entry:
Register object failed for object (null) of class Debris.
09/11/2005 (7:24 pm)
Yeah I'd like to think that too. Here is what it looks like.datablock DebrisData(FireDebris)
{
shapeFile = "~/data/shapes/weapons/explosions/debris.dts";
etc..............
};
%obj = new Debris() {
position = "20 20 140";
rotation = "0 0 1 0";
scale = "1 1 1";
dataBlock = "FireDebris";
};
and the result is %obj = 0 and this console log entry:
Register object failed for object (null) of class Debris.
#3
Have you tried single stepping through the onAdd for Debris when it gets called to see why it is failing?
09/12/2005 (2:44 am)
Did the FireDebris register properly?Have you tried single stepping through the onAdd for Debris when it gets called to see why it is failing?
#4
09/12/2005 (9:02 am)
NetConnection* conn = NetConnection::getServerConnection(); returns 0 and exits
#5
09/12/2005 (5:50 pm)
Are you connected to a server when you do this?
#6
09/12/2005 (5:54 pm)
As the host, same computer same program. The rest of the game runs fine just wont create a Debris. You think MSVC breakpoint would disconnect the net connection ?
#7
I want to create a standalone debris object, but when I create it, an error message in console said : "Register object failed for object (null) of class Debris."
What should I do to fix this problem ?
Thanks
09/20/2006 (1:30 am)
I'm having the same problem.I want to create a standalone debris object, but when I create it, an error message in console said : "Register object failed for object (null) of class Debris."
What should I do to fix this problem ?
Thanks
#8
05/05/2008 (11:56 am)
I am having the exact same problem with debris as Suryandiputra. Has anyone found out a fix for this yet?
Associate Kyle Carter