Error when launching AGS

Started by Baguettator, Fri 11/09/2020 08:35:38

Previous topic - Next topic

Baguettator

Hi everybody,

I was working on AGS this morning, I closed it, and when I tried to launch it again, an error occured, and AGS doesn't launch.

I think my game has been effectively saved, and no damage in it. It is at the beginning when AGS is launching that the error occurs.

The beginning of the message :

System.Configuration.ConfigurationErrorsException: Echec de l'initialisation du système de configuration ---> System.Configuration.ConfigurationErrorsException '.', valeur hexadecimale 0x00 est un caractère non valide. Ligne 9, position 1.
(C:\\Users\Guillaume\AppData\Local\AGS\AGSeditor.exe_StrongName_mqpdv5kqypl2dezfmjnjxse4zvfvse2h\3.5.0.24\user.config line 9) ---> System.Xml.XmlException '.',valeur hexadecimale 0x00 est un caractère non valide, Ligne 9, position1.

Then it is a lot of stuff I can't write, maybe I could insert an image in a post to show you, but I don't know how to do it ?

Any idea what happenned ? Is it possible to repair ? Or a safe reinstall should be the solution ?

Khris

Delete the file, and AGS will recreate it. Some user settings will be lost, but the editor should work again.

Baguettator

Thanks Khris, but when I delete the file (I cut it and paste it on the destop by precaution), and I launch AGS, I try to load my game, but AGS doesn't work (it says : "Element racine manquant").

I tried on the same version of AGS installed on another computer, same result...

Anyway other solution ? Or explication ?

Baguettator

I am so afraid... It seems that my game can't be launch again, and I don't know why... Maybe a bug occurs just before I close AGS (I remember something appears strangely, like I saved the game, and the window showing the script disappeared... Don't know why, but I saved and then, just can't launch the game...

The only thing I can do for the moment, is to create a new game, create exactly the same number of rooms and the same scripts with the same name, then quit the game, copy and overwrite the "fake" scripts of the new game by the scripts of my original game. This way I can get again all the code I wrote. I have tested for the Global Script, it works : when I overwrite the blank Global script of the new game by the Global Script of the original game, and I open then the new game, the global script has all the code I wrote before.

The only problem is for the Sprites... I have to reimport all of them manually, and reassign the correct number for each script that involve sprite's number.

And for all the others stuff : characters, views... Maybe I have to recreate all of that...

If the error is in the user.config file, is it possible to modify this file and correct the error ?

I hope sooooooo much... :)

Crimson Wizard

Is it still same error after you deleted user.config file?

Also in any case it's best to do regular backups, or use source control software if you know how to use one.

Baguettator

It seems to be the same error.

I think I come from a computer bug, informatic incredibly so magiiiic... It does something you don't know how, but it is a bug... :)

Well, I made a copy of my previous backup, renamed it, opened it and I replaced the files corresponding to scripts.

With that, I got the scripts as I lastly used, and I just had to re-add the new sprites and rework a bit on the GUI and functions to get it as i was before the error.

So, dear users of AGS : YES, make backup often ! Because, I wanted to do a back up, "just after a little time of work", but before this little time of work ended, the error occurs... :)

Thanks for you all !

SMF spam blocked by CleanTalk