subscript out of range

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

silent_
Birdo
Birdo
Posts: 2151
Joined: Fri Dec 20, 2013 3:34 pm

subscript out of range

Postby silent_ » Tue Nov 04, 2014 12:53 pm

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

bossedit8
Banned
Posts: 6838
Joined: Fri Dec 20, 2013 12:35 pm
Contact:

Re: subscript out of range

Postby bossedit8 » Tue Nov 04, 2014 12:54 pm

Guess: Was there anything that a Power Up touches the Lava Tile somewhere? If it is then try to edit that.

silent_
Birdo
Birdo
Posts: 2151
Joined: Fri Dec 20, 2013 3:34 pm

Re: subscript out of range

Postby silent_ » Tue Nov 04, 2014 12:56 pm

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?

bossedit8
Banned
Posts: 6838
Joined: Fri Dec 20, 2013 12:35 pm
Contact:

Re: subscript out of range

Postby bossedit8 » Tue Nov 04, 2014 1:00 pm

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.

Code: Select all

noblockcollision=1
nogravity=1

glitch4
Banned
Posts: 2577
Joined: Tue Dec 31, 2013 3:43 pm

Re: subscript out of range

Postby glitch4 » Tue Nov 04, 2014 1:02 pm

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.

h2643
Reznor
Reznor
Posts: 2890
Joined: Sat Dec 21, 2013 7:23 am
Contact:

Re: subscript out of range

Postby h2643 » Thu Nov 06, 2014 9:42 am

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.


Return to “Help and Support”

Who is online

Users browsing this forum: Ahrefs [Bot], Amazon [Bot], Semrush [Bot] and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari