view a game save
by David Horn · in Torque X 2D · 06/17/2010 (9:51 am) · 2 replies
I think this might be more of an XNA question, but I figured I'd ask anyway...
I'm currently getting an error in my XML game save on the XBOX(works fine on windows).
I need to be able to see the XML that the XBOX is generating. How do I do this?
I tried the following:
But my problem is that when I debug it on the XBOX, I get the error:
'system.io.file' does not contain a definition for 'readalltext'
It works fine on Windows - stream2 gives me the XML in text format. But It seems like the ReadAllText function isn't available on the xbox?
How can I view my XML in my game save on the XBOX in order to see where it it breaking?
Thanks!
I'm currently getting an error in my XML game save on the XBOX(works fine on windows).
I need to be able to see the XML that the XBOX is generating. How do I do this?
I tried the following:
string stream2 = File.ReadAllText("savegame.sav");But my problem is that when I debug it on the XBOX, I get the error:
'system.io.file' does not contain a definition for 'readalltext'
It works fine on Windows - stream2 gives me the XML in text format. But It seems like the ReadAllText function isn't available on the xbox?
How can I view my XML in my game save on the XBOX in order to see where it it breaking?
Thanks!
About the author
#2
06/18/2010 (6:53 am)
I can do that, but what would I output? I need to dump the contents of the savegame.sav to a string right? How do I do that? The ReadAllText doesn't seem to work on the Xbox.
Torque 3D Owner Henry Shilling
Smokin Skull