Page 1 of 1
subscript out of range
Posted: Tue Nov 04, 2014 12:53 pm
by silent_
So uh, I finished my CC10 level, and I was testing it, and when I got to a particular section, I got the "Runtime error 9: Subscript out of range" runtime error. Why is this occurring, and moreover, what the hell is it?
Debugger info:
12,376 out of 20,000 blocks
243 out of 5,000 NPCs
5,580 out of 8,000 BGOs
5 out of 200 warps
Re: subscript out of range
Posted: Tue Nov 04, 2014 12:54 pm
by bossedit8
Guess: Was there anything that a Power Up touches the Lava Tile somewhere? If it is then try to edit that.
Re: subscript out of range
Posted: Tue Nov 04, 2014 12:56 pm
by silent_
bossedit8 wrote:Guess: Was there anything that a Power Up touches the Lava Tile somewhere? If it is then try to edit that.
Well, an ice flower touches lava. Would this make a runtime error occur as well?
Re: subscript out of range
Posted: Tue Nov 04, 2014 1:00 pm
by bossedit8
Yes, this counts on every power ups including Poison Mushrooms that makes an Error occurs if your Level has a lot of going on. Make sure that it will disappear before he touches the Lava or the other way arround. You can also make sure so it has no collision to any tiles by having this in.
Re: subscript out of range
Posted: Tue Nov 04, 2014 1:02 pm
by glitch4
Strange. It happened to me when in my level, where I had over 17000 blocks (cgfxs inside), I got the same error. If the level has less than 17 000 blocks, the error won't appear.
Re: subscript out of range
Posted: Thu Nov 06, 2014 9:42 am
by h2643
GLD4, it's because the real block limit is 16000 > x < 17000 which means it's somewhere between those two numbers. Custom graphics doesn't have anything with that error.