Log File...

Started by Yuri Patrick, Wed 28/12/2011 18:40:30

Previous topic - Next topic

Yuri Patrick

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? :(

Khris

Are you using any modules or templates?

Yuri Patrick

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.

Khris

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.)

Yuri Patrick

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?

SMF spam blocked by CleanTalk