Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: remixor on Tue 06/05/2003 03:01:12

Title: "Too many events posted" error
Post by: remixor on Tue 06/05/2003 03:01:12
Hi, all.  I ran into an error while testing my game, and the error message said to contact Chris Jones, so here's what happened.  I created a region that my character can walk over.  In the interaction editor, I set the "Player walks onto region" interaction to "Game - Display a message", and it then displays several messages.  However, when play the game, as soon as the character touches the hotspot, it crashes and I get an error saying "Internal error: Too many events posted"  The only other thing I have in the room right now is an interaction for "Player first enters screen" which also displays some messages.  Any ideas?


EDIT: on second thought, maybe this should have gone in the beginner's tech forum...
Title: Re:"Too many events posted" error
Post by: Andail on Tue 06/05/2003 10:36:05
When you have a script executed as the player walks on a hotspot, you will need to quickly disable that trigger, or the script will run over and over again. This could lead to the game crash, I suppose.

One solution is to make a local int and use it to disable the function the second time.


Title: Re:"Too many events posted" error
Post by: remixor on Tue 06/05/2003 11:57:18
Ah, I see.  I somewhat suspected that was the problem; the only reason I wasn't certain was because the interaction editor says "play steps onto" the region, not "player is standing on" the region, which led me to believe it only applied to that first instant.  Thanks for your help  :)
Title: Re:"Too many events posted" error
Post by: Pumaman on Tue 06/05/2003 21:41:48
You're right, "walks onto region" does only happen the once.

Can I just check that you are using the latest beta 4, because earlier betas did have problems with regions.