Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: LucasFan on Wed 22/10/2003 18:36:47

Title: overflow
Post by: LucasFan on Wed 22/10/2003 18:36:47
(http://people.freenet.de/lucasfangames/error.gif)

I did add some new string declarations and received this error. It only happens when I try to start the game - I can save it without any error-messages. What does that error message means?
Title: Re:overflow
Post by: Pumaman on Wed 22/10/2003 20:34:46
Scripts are allocated a 2 KB stack for local variables. Since strings take up 200 bytes each, if you allocate 10 strings in a function you'll get this error. The easy workaround is to make a couple of strings global variables rather than local to the function.

However, I appreciate that the 2 KB limit is a bit small, so I'll see about increasing it for the next version.
On the other hand, I don't think this problem has come up before.