Game authors and players, please read this thread!

Author Topic: Root element missing? [problem resurfaced]  (Read 1110 times)  Share 

Sirpunchula

  • No talent, no problem.
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with story design
    •  
Root element missing? [problem resurfaced]
« on: 18 Oct 2009, 17:45 »
Last night i saved and closed my game with no problems, only to discover this when i tried to load it back up today:

Quote
An error occured whilst trying to load your game. The error was:

Root element is missing.

Error details:[code]System.Xml.XmlException: Root element is missing.
 at System.Xml.XmlTextReaderImpl.Throw(Exception e)
 at System.Xml.XmlTextReaderImpl.ThrowWitho utLineInfo(String res)
 at System.Xml.XmlTextReaderImpl.ParseDocum entContent()
 at System.Xml.XmlTextReaderImpl.Read()
 at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserve Whitespace
 at System.Xml.XmlDocument.Load(XmlReader reader)
 at System.Xml.XmlDocument.Load(String Filename)
 at AGS.Editor.AGSEditor.LoadUserDataFile(String fileName)
 at AGS.Editor.AGSEditor.LoadUserGameFile(String fileName)
 at AGS.Editor.Tasks.LoadGameFromDisk(String gameToLoad, Boolean interactive)
 at Ags.Editor.InteractiveTaskLoadGameFromD isk(String gameToLoad)[/code]

I'm don't know what this means, is there anyone who knows what I can do to fix this?
« Last Edit: 20 Oct 2009, 22:24 by Sirpunchula »
Pardon my deadpan.

Pumaman

  • Creator of AGS
  • Administrator
  • Mittens TRAITOR
  • I sense danger.
    • Lifetime Achievement Award Winner
    •  
Re: Root element missing?
« Reply #1 on: 18 Oct 2009, 17:58 »
Make a backup copy of the game folder, then delete the Game.agf.user file and try again.

Sirpunchula

  • No talent, no problem.
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with story design
    •  
Re: Root element missing?
« Reply #2 on: 18 Oct 2009, 18:06 »
Thanks, that fixed the problem.
« Last Edit: 20 Oct 2009, 22:24 by Sirpunchula »
Pardon my deadpan.

Sirpunchula

  • No talent, no problem.
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with story design
    •  
Re: Root element missing? [problem resurfaced]
« Reply #3 on: 20 Oct 2009, 22:25 »
 Now the backup copy has the same Root element problem with the same message as above, but now deleting the "Game.agf.user" file doesn't solve the problem. Is there any other way I can fix this and keep the problem from resurfacing?
Pardon my deadpan.

Pumaman

  • Creator of AGS
  • Administrator
  • Mittens TRAITOR
  • I sense danger.
    • Lifetime Achievement Award Winner
    •  
Re: Root element missing? [problem resurfaced]
« Reply #4 on: 21 Oct 2009, 21:23 »
Why are you trying to use the backup copy if the main copy is working?

This problem should not surface at all, let alone re-surface. Are you sure that the latest error you're getting is identical to the first one? Have you been using the "Send Error Report" button?

The error indicates that the game files haven't been saved properly. This should never happen, so I'm not sure why it's happening to you. Is the game on your hard drive, and not on a USB stick or anything like that?

Sirpunchula

  • No talent, no problem.
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with story design
    •  
Re: Root element missing? [problem resurfaced]
« Reply #5 on: 21 Oct 2009, 22:39 »
Why are you trying to use the backup copy if the main copy is working?

This problem should not surface at all, let alone re-surface. Are you sure that the latest error you're getting is identical to the first one? Have you been using the "Send Error Report" button?

The error indicates that the game files haven't been saved properly. This should never happen, so I'm not sure why it's happening to you. Is the game on your hard drive, and not on a USB stick or anything like that?


-  My main copy isn't working; It had the same error as my backup does now.
-  I've compared the current error to the previous one up above; They're exactly the same, with the only exception being that deleting the "game.agf.user" file no longer solves the problem.
-  I didn't know there was a send error report button, where is it located?
-  And yes, I'm saving all of my files onto a hard drive.
Pardon my deadpan.

Pumaman

  • Creator of AGS
  • Administrator
  • Mittens TRAITOR
  • I sense danger.
    • Lifetime Achievement Award Winner
    •  
Re: Root element missing? [problem resurfaced]
« Reply #6 on: 22 Oct 2009, 21:30 »
Which version of AGS are you using?

Sirpunchula

  • No talent, no problem.
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with story design
    •  
Re: Root element missing? [problem resurfaced]
« Reply #7 on: 24 Oct 2009, 00:24 »
Version 3.1.2, service pack 1
Pardon my deadpan.

Pumaman

  • Creator of AGS
  • Administrator
  • Mittens TRAITOR
  • I sense danger.
    • Lifetime Achievement Award Winner
    •  
Re: Root element missing? [problem resurfaced]
« Reply #8 on: 25 Oct 2009, 12:10 »
Strange, I'm not sure why you would be getting a problem like this, it seems to indicate that the game files haven't been saved properly ... but if you didn't get any problems saving it then I don't understand why this would happen.

Has anyone else experienced any problems like this?

NEON-GAMES

    • I can help with AGS tutoring
    •  
    • I can help with animation
    •  
    • I can help with characters
    •  
    • I can help with play testing
    •  
    • I can help with scripting
    •  
Re: Root element missing? [problem resurfaced]
« Reply #9 on: 21 Nov 2009, 19:22 »

Pumaman

  • Creator of AGS
  • Administrator
  • Mittens TRAITOR
  • I sense danger.
    • Lifetime Achievement Award Winner
    •  
Re: Root element missing? [problem resurfaced]
« Reply #10 on: 23 Nov 2009, 22:57 »
Did you get any errors saving the game the last time before that? Are you saving it to your hard drive rather than a USB stick or anything like that?

Re: Root element missing? [problem resurfaced]
« Reply #11 on: 07 Apr 2012, 01:10 »
I'm having the exact same problem. I'm saving on a hard drive, and deleting the Game.agf.user file doesn't help. Did anyone ever find a solution to this?