Gamebasedata error / IFL question
by Erik Madison · in Torque Game Engine · 03/18/2003 (5:12 pm) · 6 replies
I get this on occasion.
"Object 'box' is not a member of the 'GameBaseData' data block class"
Anyone willing to explain it? RW has a similar error, but this one is from my own tinkerings.
I'm not sure if any additional info is needed, but just in case heres what I got:
datablock StaticShapeData(BoxTest)
{
category = "Other";
shapeFile = "~/data/shapes/other/box.dts";
};
function BoxTest::onAdd(%this,%obj)
{
%obj.playThread(0,"Ambient");
}
Object box is a 3dsmax generated model, and exports correctly. It contains an IFL texture, and a sequence helper named ambient. ifl is checked (nothing else). Keys are set at -1 and 4, and the ifl contains 5 images.
The object, with animated texturing looks great in -show, but in the game I get the above error. I can load it as a simple shape, but then of course the textures don't work.
A related question: Can IFLs be used with milkshape generated models? I prefer to use it for simpler models, as it's not quite so anal about the heirachy of everything :)
"Object 'box' is not a member of the 'GameBaseData' data block class"
Anyone willing to explain it? RW has a similar error, but this one is from my own tinkerings.
I'm not sure if any additional info is needed, but just in case heres what I got:
datablock StaticShapeData(BoxTest)
{
category = "Other";
shapeFile = "~/data/shapes/other/box.dts";
};
function BoxTest::onAdd(%this,%obj)
{
%obj.playThread(0,"Ambient");
}
Object box is a 3dsmax generated model, and exports correctly. It contains an IFL texture, and a sequence helper named ambient. ifl is checked (nothing else). Keys are set at -1 and 4, and the ifl contains 5 images.
The object, with animated texturing looks great in -show, but in the game I get the above error. I can load it as a simple shape, but then of course the textures don't work.
A related question: Can IFLs be used with milkshape generated models? I prefer to use it for simpler models, as it's not quite so anal about the heirachy of everything :)
About the author
#2
I just changed it to shapebasedata(), and the above errors/concerns/questions still stand.
03/18/2003 (5:22 pm)
Hmm, I thought I read different while attempting to research this myself. I just changed it to shapebasedata(), and the above errors/concerns/questions still stand.
#3
An ifl file is just a text file with a bunch if images listed in it that make up a 2d animation. Not sure what your asking exactly.
03/18/2003 (5:32 pm)
Hmm, ok you are right.. sort of. According to the code static shapes shouldn't have animation threads. But after looking through various sources it seems they do anyway.. heh. An ifl file is just a text file with a bunch if images listed in it that make up a 2d animation. Not sure what your asking exactly.
#4
2. Can I use ifl with milkshape, as well as max?
03/18/2003 (8:14 pm)
1. Object is not a member... If I fix this error, I'm sure the item will appear and work. I'd prefer to know what the error means, but I'll settle for just how to fix it.2. Can I use ifl with milkshape, as well as max?
#5
Also I was just wondering but why are you keys set from -1 to 4? If you have 5 images I would think your keys would be set from 0 to 4. Might make a difference. I am not sure.
Also you might wanna check your IFL and make sure its set up right. If you used the MAX utility I would think it would be.
One more thing make sure when you export you turn off collapse transform.
Hope that helps
Matt
03/20/2003 (11:24 pm)
I don't think you can use IFL's with milkshape. I am not 100% positive but the dump file from a MAX export adds the animation with an IFL tag and if milkshape doesn't then I don't think the engine would know you have an IFL. Also I was just wondering but why are you keys set from -1 to 4? If you have 5 images I would think your keys would be set from 0 to 4. Might make a difference. I am not sure.
Also you might wanna check your IFL and make sure its set up right. If you used the MAX utility I would think it would be.
One more thing make sure when you export you turn off collapse transform.
Hope that helps
Matt
#6
You can use IFL Animation with Milkshape. Just take a look at Chris Robertson's Milkshape Plus Exporter.
This exporter can export IFL Animation (btw. can export the model for IFL Animation), also the exporter comes with a good example of how to setup the model
Here is the Resource
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5894
[Edit] Ups, sorry just saw after my post that's an old post. Sorry again, have to go to bed ;-)[/edit]
02/19/2005 (2:10 pm)
@Erik,You can use IFL Animation with Milkshape. Just take a look at Chris Robertson's Milkshape Plus Exporter.
This exporter can export IFL Animation (btw. can export the model for IFL Animation), also the exporter comes with a good example of how to setup the model
Here is the Resource
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5894
[Edit] Ups, sorry just saw after my post that's an old post. Sorry again, have to go to bed ;-)[/edit]
Torque 3D Owner Robert Blanchet Jr.