Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Chrille on Thu 19/08/2010 20:58:43

Title: Corrupt .ash file, kept game from loading
Post by: Chrille on Thu 19/08/2010 20:58:43
I was just doing some scripting when all of a sudden AGS crashed and warned me that the game files might be corrupt. I was quite shocked because even though I did a backup just a few days ago there was still quite alot of work done in that time.

After the game crashed I tried loading my game again and got an error message in swedish that translates to something like:
"Index was outside the matrix boundaries" (+ several lines of code displayed that were probably executed when the program crashed)

AGS crashed as I was editing some lines in one of the script .ash files, so I opened it up in notepad and simply removed the line I was typing as the crashed. The game loaded fine after that and everything seems to work as it should. Seems like no big deal.

I'm still quite worried though. Is it possible something might have been corrupted and if so, could that data still be corrupted?


Edit: This happened again, not long afterwards, the script looked about the same and the crash occured at roughly the same line. I moved things around a bit and it hasn't crashed again. Perhaps this is a bug that can tracked and fixed? I still have the 'broken' files if you want them, CJ.
Title: Re: Corrupt .ash file, kept game from loading
Post by: monkey0506 on Fri 20/08/2010 09:13:00
Just to clarify when the error is cropping up..is this happening when you're building the EXE, simply saving the game, or what?
Title: Re: Corrupt .ash file, kept game from loading
Post by: Chrille on Fri 20/08/2010 11:55:15
Neither, it happens when I'm editing the script file. Might have been hitting tab or pasting something into it.