overflow

Started by LucasFan, Wed 22/10/2003 18:36:47

Previous topic - Next topic

LucasFan



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?

Pumaman

#1
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.

SMF spam blocked by CleanTalk