Error: "Root element is missing"

Started by Erdalion, Sat 03/12/2011 14:17:01

Previous topic - Next topic

Erdalion

Hello, every time I try to load the game I'm making I'm greeted with the following message which I can't make quite heads or tails of:



This started appearing after a power outage that occurred while I was saving my game ($#@%!). I don't know if this will be of any help, but to be more specific I had just finished a dialog before I decided to save my game. I should also point out that I can't load the game in the AGS editor at all anymore.

I figure that my file was corrupted due to the loss of power while I was saving it, but I was wondering if there was something I could do about it? I have a backup from like 10 days ago so I can always go back to that one, but obviously I would prefer that I didn't have to. :)

Thank you very much in advance, and yes, this experience has taught me that I should backup my game every time I make progress in it and not whenever I feel like it. :P

Khris

In your game folder, replace "Game.agf" with its backup, "Game.agf.bak".
That should do it.

monkey0506

That typically means that your Game.agf file (which is written in XML and contains quite a bit of your game's data) has become corrupted. You could try deleting the Game.agf file and rename Game.agf.bak to Game.agf and see if that helps.

Otherwise, you could try copying the Game.agf file from your backup copy (though if you added any characters, GUIs, views, scripts, or various other items it might not work properly).

Reverting entirely to your backup copy would likely be a worst case scenario I'd say. If your Game.agf.bak is corrupted, I could help you trying to get your functioning copy of Game.agf (from your backup) working with your latest copy of your other files (though there's no guarantee other files aren't corrupted).

SMF spam blocked by CleanTalk