Error on StarterGame2d build
by John Duke · in Torque X 2D · 08/02/2008 (9:56 pm) · 4 replies
When I attempt to build the StarterGame2D project, I get this error:
TorqueXMLDeserializer._SetFieldOrProperty - Unable to parse format string true for type System.Boolean.
Thanks in advance for any help you can provide;
John D
TorqueXMLDeserializer._SetFieldOrProperty - Unable to parse format string true for type System.Boolean.
Thanks in advance for any help you can provide;
John D
#2
If I choose "Build", I get a "Build Successful" message.
If I choose "Rebuild All" I get the error.
If I try to run the scene in TXB, I get the error.
This is the full error that appears in the popup box:
TorqueXMLDeserializer._SetFieldOrProperty - Unable to parse format string true for type System.Boolean.
at Assert,Fatal(Boolean condition, String message)
at TorqueXmlDeserializer._Error(String message)
at TorqueXmlDeserializer._Error(String format, Object[] args)
at TorqueXmlDeserializer._SetFieldOrProperty(IFieldOrProperty fieldOrProperty, XmlNode element, Object& o)at at TorqueXmlDeserializer._Recurse(XmlNode element, Object o, Typeinfo ti)
at TorqueXmlDeserializer._Process(String levelFile, Object target)
at TorqueEngineSettings.Load(String filename)
at TorqueEngineComponent.LoadSettings(String settingsFile)
at TorqueGame.SetupEngineComponent()
at TorqueGame,,ctor()
at Game..ctor()
at Game.Main() C:\Dcouments and Settings\User1\My Documents\Visual Studio 2005\Projects\StarterGame1\StarterGame1\Game\Game.cs(41)
08/03/2008 (2:09 pm)
If I create the StarterGame1 from scratch in Express and make NO changes:If I choose "Build", I get a "Build Successful" message.
If I choose "Rebuild All" I get the error.
If I try to run the scene in TXB, I get the error.
This is the full error that appears in the popup box:
TorqueXMLDeserializer._SetFieldOrProperty - Unable to parse format string true for type System.Boolean.
at Assert,Fatal(Boolean condition, String message)
at TorqueXmlDeserializer._Error(String message)
at TorqueXmlDeserializer._Error(String format, Object[] args)
at TorqueXmlDeserializer._SetFieldOrProperty(IFieldOrProperty fieldOrProperty, XmlNode element, Object& o)at at TorqueXmlDeserializer._Recurse(XmlNode element, Object o, Typeinfo ti)
at TorqueXmlDeserializer._Process(String levelFile, Object target)
at TorqueEngineSettings.Load(String filename)
at TorqueEngineComponent.LoadSettings(String settingsFile)
at TorqueGame.SetupEngineComponent()
at TorqueGame,,ctor()
at Game..ctor()
at Game.Main() C:\Dcouments and Settings\User1\My Documents\Visual Studio 2005\Projects\StarterGame1\StarterGame1\Game\Game.cs(41)
#3
From the error messages you posted, it is clear that the error is occurring in the SceneLoader while trying to parse your levelData.txscene. Specifically, it is trying to parse a boolean field. But I don't understand why it is failing since "true" is a correct value.
I'm stumped. Sorry. Hopefully someone else will have some insights.
08/03/2008 (2:51 pm)
Hmmm. I was not able to reproduce this error following the steps you listed.From the error messages you posted, it is clear that the error is occurring in the SceneLoader while trying to parse your levelData.txscene. Specifically, it is trying to parse a boolean field. But I don't understand why it is failing since "true" is a correct value.
I'm stumped. Sorry. Hopefully someone else will have some insights.
#4
I had an older versions of Express and XNA builder.
Downloading and installing these two files solved the problem.
Microsoft Visual Studio 2005 Express Edititions Service Pack 1
http://www.microsoft.com/downloads/details.aspx?familyid=7B0B0339-613A-46E6-AB4D-080D4D4A8C4E&displaylang=en
Microsoft XNA Game Studio Express 1.0 Refresh
http://www.microsoft.com/downloads/details.aspx?FamilyId=12ADCD12-7A7B-4413-A0AF-FF87242A78DE&displaylang=en
Hope this helps someone with the same trouble in the future!
08/04/2008 (7:52 pm)
Problem Solved.I had an older versions of Express and XNA builder.
Downloading and installing these two files solved the problem.
Microsoft Visual Studio 2005 Express Edititions Service Pack 1
http://www.microsoft.com/downloads/details.aspx?familyid=7B0B0339-613A-46E6-AB4D-080D4D4A8C4E&displaylang=en
Microsoft XNA Game Studio Express 1.0 Refresh
http://www.microsoft.com/downloads/details.aspx?FamilyId=12ADCD12-7A7B-4413-A0AF-FF87242A78DE&displaylang=en
Hope this helps someone with the same trouble in the future!
Torque Owner Scott Goodwin
I can reproduce a similar error by changing "true" in the levelData.txscene file to "True" and then running. I get:
TorqueXMLDeserializer._SetFieldOrProperty - Unable to parse format string True for type System.Boolean.
However, I don't get the error with "true".
Are you getting the error with an unmodified StarterGame2D or did you change anything?