Community

AGI Programming => Mega Tokyo AGI Archive => Topic started by: Kon-Tiki on March 09, 2004, 10:44:27 AM

Title: Script buffer size
Post by: Kon-Tiki on March 09, 2004, 10:44:27 AM
What the heck does this mean o_O I get this error
Quote
Script buffer overflow.
Maximum size = 50
Press ESC to quit.

I'm using Nagi, if that helps...
Title: Re:Script buffer size
Post by: Allen on March 09, 2004, 10:57:18 AM
I'm surprised that you've been in AGI this long and have never had that message :D
Title: Re:Script buffer size
Post by: robingravel on March 09, 2004, 05:21:19 PM
I got this message as well when I put many add.to.pic commands
in my games.

Just set up the maximum size higher. 150 should be ok.


Robin Gravel

 
Title: Re:Script buffer size
Post by: Rich on March 09, 2004, 05:45:32 PM
I occasionally do a sort of full screen animation where I cycle through different pics all in the same logic, and after about twenty or thirty cycles of that, I get the same error too. It's just one of the limitations of AGI, and it has to be worked around. You can't do too many add.to.pic commands or change the pic in the same logic or it will crash like this. Tis life.
Title: Re:Script buffer size
Post by: Joel on March 09, 2004, 08:19:32 PM
There have been numerous topics on this subject. I don't feel like looking for them myself. There are ways around it, however, depending on what you're trying to do.

I think you can disable the script buffer temporarily or you can pop the last script buffer item out of the script buffer -- you have to be careful doing it, though, because the script buffer is used for saving games and restoring them to the state they were in. Make sure you're only keeping non-essential information out of the script buffer.
Title: Re:Script buffer size
Post by: Joel on March 09, 2004, 08:26:25 PM
also, nick wrote a tutorial about this topic:

http://www.ids.org.au/~nsonneve/script/sc.html
Title: Re:Script buffer size
Post by: Rich on March 09, 2004, 10:19:56 PM
Oh wow! It's a good thing I read that! I just made a huge improvement to my game. Thanks, Nick and Joel.