Somehow my PC didn't want to log off so I restarted it manually.
Now my AGS project can't start up anymore.
ERROR MESSAGE:
---------------------------
Adventure Game Studio
---------------------------
An error occurred whilst trying to load your game. The error was:
Root element is missing.
If you cannot resolve the error, please post on the AGS Technical Forum for assistance.
Error details: System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at AGS.Editor.AGSEditor.LoadGameFile(String fileName)
at AGS.Editor.Tasks.LoadGameFromDisk(String gameToLoad, Boolean interactive)
at AGS.Editor.InteractiveTasks.LoadGameFromDisk(String gameToLoad)
---------------------------
OK
---------------------------
I deleted the "Game.agf.user", deleted "Game.agf" and renamed my "Game.agf.bak" to "Game.agf" and it still doesn't work...
HELP! :'(
The from "Game.agf.bak" to "Game.agf" renamed file also only exists of an extremely large string containing "NULNULNULNUL". (way more then 4 of course)
Seems to be corrupted too :'(
I would suggest restoring from one of the frequent backups you were of course making.
Quote from: Dataflashsabot on Sun 14/08/2011 15:27:26
To bad you deleted your backup 2 day's ago...
I did, stupid me... I was going to make a new one today, which I was able to do due to a system crash...
I've had this sort of thing before.
Quote from Khris:
In your game folder is a file called "Game.agf.bak". Rename it to "Game.agf", overwriting the existing one in the process. That should fix it.
(In case the files are named "Game" and "Game.agf", open the folder settings and turn off the option that hides known extensions.)
Barefoot: as you can read in the bottom of the first post, that's of course the first thing I tried.
Seemed that my .bak file was also damaged/corrupted already....
That's why I posted here, to see if there is another workaround I do not know of (yet).
I'm afraid there isn't....
Started a new game, copy-pasted all the rooms and the global script files.
Now I'm reimporting all the rooms.
After that the most painful job is left: recreate all the gui's and their specs... :'(
Then my original project is back up.
*now backing up daily*
Sorry Arj0n, life's a bitch....
I had the same problem with a game a while back...
I now do a backup copy every time i make changes..
Good luck
:=
barefoot
Sorry about your system crashing on you Arj0n, but regarding those corrupted AGF files..do they by chance happen to have the "GUIs" node in-tact, or has it been obliterated too? It's probably gone, but if it is there then it contains all of the necessary information for your GUIs, so it would actually be quite simple to replace them if you had that.
Thanx Monkey.
The AGF file is completely destroyed. The worst part of this happening is the GUI's and their info...
I was wondering and going to ask here where they and their info is kept and looking at your post it looks like my answer is there. The destroyed file...darn.
Still good to knowm so thanx again for the accurate info :)