• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Legacy GM xml missing..

N

NeonBits

Guest
I've imported a script, which GM recognized; but not when launching; scripts/ scr_abc notfound or something like that. It is in the resource tree but the game couldn't launch and the compiler returned this. I couldn't do a thing. Then I deleted the script, which had only "sprite_index = abc" and just edited the other codes to include it. The compiler crashed and things seem ok after relaunching. I'm unable to add the symbols contained in the error message. Right now I try to change one animation as before but without success; I was wondering if it could be a side effect. But, of course, it can be me.
"Xml: root element missing" What does this message mean?
Code:
unhandled exception : System.Xml.XmlException: root element missing
     à System.Xml.XmlTextReaderImpl.Throw(Exception e)
   à System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   à System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   à System.Xml.XmlDocument.Load(XmlReader reader)
   à System.Xml.XmlDocument.Load(String filename)
   à ..(String )
   à ..(String , Boolean , Boolean , Int32 , String , String , String[] )
   à GMAssetCompiler.WADSaver`1.(KeyValuePair`2 )
   à ...(Object )
   à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   à System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
   à System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
 
Last edited by a moderator:
N

NeonBits

Guest
Then I deleted the script, which had only "sprite_index = abc" and just edited the other codes to include it.
I think it's the reason why I've placed this simple "sprite_ index" in a script; I could not make an animation happen so I did it through the script; it's my code or there's something there. I don't remember this xml error. Again, if someone can explain what it means, it will be appreciated.
 
Last edited by a moderator:
N

NeonBits

Guest
unhandled exception.
root element missing.
I've translated those two; just in case it's the reason why no explanations was given.
 
Top