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
I went ahead and wrote the following code to explore what exactly "WriteDefaults" does:
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 ..
I'm on Windows XP, using T2D development.
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.
About the author
Employee Michael Perry
ZombieShortbus