Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

Stack over or underflow: script 80

4 replies · 1,716 views · Started 18 May 2008

Needless to say script 80, the script that controls all of stage 1b, is quite large. I got about 10 MB of this error in the log file. So...Is this possibly a bug, to much redundancy, unneeded variables, calling to functions too frequently? How can I fix this? I'm basically this one little setback away from a demo, and I'd sure love to get it out in a day or two.

Is there maybe a formula that we can use to guesstimate the amount of data we can use in a singular script, or perhaps a little trick for cleaning up space? I could use any suggestions you have. If you're wondering, script 80 is 75kb and 1,092 lines in length. There's not really any nested else statements though, it's pretty much just a mass of raw data.

You sure there's no nested if/thens or anything? I got memory errors when I had too many nested statements, but it went away when I made everything higher level.

Nope. It compiles fine, but then it freezes at runtime. Spewing out endless errors into the log file.

Are you doing things like declaring new integers in your while loop? In other words,

int counter = 0;

instead of

counter = 0; ?

Or you could post the code and we can see