Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Yuri Patrick on Wed 28/12/2011 18:40:30

Title: Log File...
Post by: Yuri Patrick on Wed 28/12/2011 18:40:30
I'm really starting to feel dense. I apparently have a dynamic sprite being created in my room 1, but I didn't know about it being created as I have not done anything with Dynamic Sprites. However, when I run my game, the log file shows up in my game directory and it states that there was a dynamic sprite in room 1 which was not deleted. First off, where's it coming from and second off, how do I prevent the error? :(
Title: Re: Log File...
Post by: Khris on Wed 28/12/2011 18:44:35
Are you using any modules or templates?
Title: Re: Log File...
Post by: Yuri Patrick on Wed 28/12/2011 18:49:15
Modules... Strazer's keyboard movement and and Steve McCrea's Pulldown Menus. That's all. And the dynamic sprite error has corrected itself somehow. Hrm. I don't remember changing anything between this build and last build and yet the warning log is not there at all. Wierd.
Title: Re: Log File...
Post by: Khris on Wed 28/12/2011 19:19:46
Without looking at the code I'm pretty sure it's the Pulldown Menu module.
It's not really an error, more a warning, and it didn't just correct itself. You can pretty much ignore it though.

(Whether the warning is generated or not depends on how you exited the game. Ideally, DynamicSprites are supposed to be deleted after use, but since there's no quit event, a module can't react to the user quitting the game, let alone Alt-X-ing out of it.
A module can however clean up after itself if the DynamicSprites it's using aren't needed the entire time the game is running.)
Title: Re: Log File...
Post by: Yuri Patrick on Wed 28/12/2011 20:27:36
So the dynamic sprite warning is being generated by Alt-F4, then? As I have a proper quit statement for quit in the parse, quit on the menu and ctrl-z uses a proper quit statement.

And... If it is indeed the Alt-F4... It's been a long time since I delved into the scripting for AGS, not since version1 actually, but isn't there a way to catch Alt-F4 and force that to route the a quit statement as well in the script?