Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Nexic on Wed 23/02/2005 09:09:40

Title: Screenshot saving - problems with tutorial
Post by: Nexic on Wed 23/02/2005 09:09:40
I've been following a tutorial by someone on the boards. It was part of the AGS Ezine, the tutorial can be found here (http://www.twin-design.com/agsezine/9/tutorial.cfm).

However after following the tutorial to the letter, and copying an pasting all the code I cannot get it to work. I keep gettings an error with DeleteSprite, in the function sgs_close() (DeleteSprite: Attempted to delete static sprite that was not loaded by script). The only thing I changed was the sprite number to be used as a blank save slot. The sprite is certainly in the project, and the number is correct.

Has anyone else followed this tutorial and got passed this problem? Does anyone have any idea how I could fix this?

I did email the author of the tutorial but I haven't yet had a reply and I'm kind of in a hurry to get this sorted.
Title: Re: Screenshot saving - problems with tutorial
Post by: SSH on Wed 23/02/2005 10:11:02
Sorry that I haven't got back to you yet, but I'm desperately trying to finish my MAGS game by the end of Friday. I'll see if I can have a look at the tutorial code, as I've modified my own version of that stuff a lot since then.
Title: Re: Screenshot saving - problems with tutorial
Post by: Nexic on Sat 26/02/2005 16:19:53
Actually, you tutorial works fine. The problem was I hadn't turned on the option to save screenshots!

Perhaps you should mention it as the start of the tutorial?
Title: Re: Screenshot saving - problems with tutorial
Post by: Sam. on Sat 26/02/2005 17:56:47
he does, it happened to me, but i forgot to do it! just reread it carefully! i made the exact same mistake.
Title: Re: Screenshot saving - problems with tutorial
Post by: SSH on Sat 26/02/2005 19:05:57
Maybe I can add something that will check for this, and also handle savegames without screenshots better...

but glad you got it sorted and that my tutorial is ok