Game Development Community

TAML "WriteDefaults" field fatal error

by Amjad Yahya · in Torque 2D Beginner · 06/22/2013 (9:18 am) · 2 replies

I was exploring TAML capabilities and ran across "WriteDefaults" field and "setWriteDefaults" method, in the wiki it says that this field is used to define
Quote:Whether to write static fields that are at their default or not
.

I went ahead and wrote the following code to explore what exactly "WriteDefaults" does:
%taml = new Taml();
%taml.WriteDefaults=true;
%taml.write( %object, "stuff.taml" );

Ran the program and got this fatal error: fatal error simObject.cc @ 935 -> field value cannot be NULL.

setWriteDefaults() also generates the same error.

However ..
%taml.WriteDefaults=false;
does not generate any errors.

I'm on Windows XP, using T2D development.

#1
06/24/2013 (5:07 am)
Interesting. Can you submit this as an issue on the GitHub repository? This will allow someone to properly investigate it and post solutions through the git system.
#2
06/24/2013 (9:31 am)
Sure Mitch, will do.