Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Matti on Mon 01/11/2010 20:12:55

Title: invalid script name [SOLVED]
Post by: Matti on Mon 01/11/2010 20:12:55
I opened one of my games the first time after quite a few months and got this error message:

Quote from: Adventure Game Studio
An error occurred whilst trying to load your game. The error was:

Invalid script name; name must only include letters, numbers and underscores: EXPLO_groß

If you cannot resolve the error, please post on the AGS Technical Forum for assistance.

I don't recall changing anything the last time I had the game open.. so maybe the newest AGS version has a problem with "ß"? The problem is that I can't open it anymore..
Title: Re: invalid script name
Post by: Wyz on Mon 01/11/2010 21:24:29
Maybe your explosion is too big :D

No really, I remember a while back someone had the same problem, CJ removes extended ascii support in the file names for some reason. I don't know if there is a fix, be you could try to rename the file.
Title: Re: invalid script name
Post by: Matti on Mon 01/11/2010 21:32:26
Quote from: Wyz on Mon 01/11/2010 21:24:29
Maybe your explosion is too big :D

Haha, maybe  ;D

Quote
I don't know if there is a fix, be you could try to rename the file.

There is no file with that name and I don't know where I used that name. As I said I can't open the game anymore and thus can't change any name..
Title: Re: invalid script name
Post by: tzachs on Mon 01/11/2010 22:14:11
There are probably easier solutions, but here's one thing you can try:
1. Backup your game.
2. Download the source code of the editor, go to Utilities.cs, comment line 82, compile & run it.
3. The game will hopefully load fine, rename the bad script and save.
4. Now open it with the official version.
Title: Re: invalid script name
Post by: Matti on Mon 01/11/2010 23:14:46
Thanks, I'll try that out.
Title: Re: invalid script name
Post by: FSi++ on Tue 02/11/2010 09:49:46
Or you can just batch replace EXPLO_groß with EXPLO_gross in the XML file. With any text editor that could handle it. Better do your backups before though.
Title: Re: invalid script name (SOLVED)
Post by: Matti on Tue 02/11/2010 11:20:04
Many thanks, FSi, it works like a charm! I was a bit lost using the visual c thingy anyway..