System.Xml.XmlException: Root element is missing (SOLVED)

Started by Digital Mosaic Games, Mon 04/01/2010 10:45:48

Previous topic - Next topic

Digital Mosaic Games

Hello,

I could ever resolve this damned error when I maked a backup copy of the game and deleted the "Game.agf-file" but now it doesnt work :'( I don´t know why.

I´ve spent so much time in this game and now I can´t edit it. :'(
Can somebody help me please ???

Pumaman

Did you get any errors when you tried to save the game prior to that happening? Or did your computer crash or turn off?

Which version of AGS are you using?

Have you had this problem before? Have you tried renamign the Game.agf.bak file to Game.agf?

Digital Mosaic Games

#2
QuoteWhich version of AGS are you using?
I´m using AGS 3.1.
QuoteDid you get any errors when you tried to save the game prior to that happening? Or did your computer crash or turn off?
I didn´t get any errors when I saved my game. There comes only a window which says that I should make a backup copy. But I think thats usually.
My computer haven´t ever turned off or crashed when I was ags-ing.
QuoteHave you had this problem before?
Yes I did get these errors before some times but before I could ever resolve the error
when I maked a backup copy and deleted the Game.agf file. In this time it didn´t worked. I have made a backup copy ever and ever and deletet the Game.agf file. Maybe there could be the problem.
QuoteHave you tried renamign the Game.agf.bak file to Game.agf?
In my game folder theres only a Game.agf and a Game.bak file. There isn´t a
"Game.agf.bak" which I can rename.

Pumaman

Is the game on your hard drive, and not on a USB stick or anything like that?

Has anyone else had problems like this?

Digital Mosaic Games

I have still only my backup copies which don´t work :(

Pumaman

Is the game on your hard drive, and not on a USB stick or anything like that?

Digital Mosaic Games

No, I have only my backup copies :(

monkey0506

Quote from: Pumaman on Sat 09/01/2010 17:27:04Is the game on your hard drive, and not on a USB stick or anything like that?
Quote from: Pumaman on Mon 11/01/2010 22:29:48Is the game on your hard drive, and not on a USB stick or anything like that?

Well seeing as CJ asked it twice (verbatim I might add) and you still haven't given a clear and direct answer...

I'm guessing that your backup copies are on a USB stick, floppy, ZIP disk, CD, DVD, or some other type of portable media that doesn't really classify as a HDD (hard drive).

When you are attempting to run these backup copies are you running them from the portable media directly or are you copying them to your hard drive first and running them from there?

Digital Mosaic Games

No I have my backup copies only on my hard drive :(

Pumaman

Let me rephrase the question ... with the original copy of the game that became corrupt, when it became corrupt was it on your hard drive, or were you editing it directly on a USB stick?

I ask because we have seen problems in the past where people have been editing a game on a USB stick and it hasn't saved the data properly, and has left them with corrupt files.

Digital Mosaic Games

It became corrupt on my hard drive.

Ryan Timothy B

#11
I also just had this issue, word for word as his posted screenshot (minus the German) :P.

My video card crashed while I was testing my game, sometimes windows is able to get the video card to work again, sometimes not.  I've mentioned the problem already in the Tech thread.

But yeah, I did the renaming of Game.agf.bak to Game.agf, and it still gives the same error.

Starting to wish I didn't buy a laptop with an nVidia graphics card (it's a good thing I backed it up a week or so ago--it definitely would be nicer if AGS had a backup feature though).

Edit: Just happened again!! Dang Didly Darn Dang-it! :P

Digital Mosaic Games

I´m SOOOOOOOOOOOOOOO HAPPY!!!! ;D
I´ve resolved this damned error :)´
In my backup copy I deleted the "Game.agf.user", deleted "Game.agf"(with blue cup icon) and renamed my "Game.agf.bak" to "Game.agf" and that it works!!!

Ryan Timothy B

Ahh..

CJ didn't mention anything about the Game.agf.user, I also removed that and suddenly the dead games came back to life.
Too bad I've already created a new game each time the old one died, :( haha.

SSH

If this is solved, can we change the topic title to include [SOLVED], please?

Also, might be worth addign a wiki page. Not that anyone reads it... :)
12

Gilbert

This is more of a serious error regarding the software itself though (i.e. not specific personal mistakes on scripting and such). I'd rather wait for CJ to reply and say whether this is a valid solution to the problem(and why) before confirming.

Pumaman

Ah yes, well spotted, in this case it looks like the Game.agf.user file was the file that was actually corrupt. This just stores some preferences and can be safely deleted without losing any game data.

Still, the file shouldn't become corrupted in the first place, please let me know if this happens again.

SMF spam blocked by CleanTalk