[1.01 Bug (and earlier versions)] - SaveShape Crashes
by J.C. Smith · in Torque 3D Professional · 10/23/2009 (1:24 pm) · 5 replies
I was trying to use the TSShapeConstructor command SaveShape to save a modified version of my DTS file rather than modifying every instance of it to add in the changes (and because the move out of SimDatablock doesn't play nice with other code in our client) but it appears that the saveshape is bugged. It crashes saving the .dts file and the resulting dts file is 0k as a result.
The code I'm using looks like this:
The autobillboard generation works fine if I comment out the saveShape, but the saveShape crashes me every time. I tried this in 1.0 and beta 5 also, and same results.
The code I'm using looks like this:
//--- OBJECT WRITE BEGIN ---
function Spruce2Dts0::onLoad(%this)
{
%this.addAutoBillboard(2, 4, 2, 0, 64, true, 10);
%this.saveShape("./spruce2new.dts");
}
singleton TSShapeConstructor(Spruce2Dts0)
{
baseShape = "art/shapes/trees/nveg/jc-spruce2.dts";
upAxis = "DEFAULT";
unit = "-1";
lodType = "DetectDTS";
singleDetailSize = "2";
ignoreNodeScale = "0";
adjustCenter = "0";
adjustFloor = "0";
forceUpdateMaterials = "0";
canSaveDynamicFields = "1";
};
//--- OBJECT WRITE END ---The autobillboard generation works fine if I comment out the saveShape, but the saveShape crashes me every time. I tried this in 1.0 and beta 5 also, and same results.
#2
Are you able to send me the file that demonstrates the problem?
11/11/2009 (6:25 pm)
I haven't been able to reproduce this crash on T3D trunk with any of the over 160 collada models I have available. It's possible the bug has already been fixed, or that there is something particular about your model that causes saveShape to crash (which is very strange, since the same functionality is used to store the cached DTS file!).Are you able to send me the file that demonstrates the problem?
#3
11/11/2009 (6:36 pm)
Hello, Chris. Sorry I didn't see that you had responded before, must have missed it. I'll email it over for you today.
#4
06/15/2010 (7:54 pm)
Logged: TQA-395
#5
08/02/2010 (5:20 pm)
Fixed in 1.1 Beta 2
Associate Chris Robertson