An error, which I recieved after hitting an invisible 1-up block.

Need help with any SMBX game-related issues? Ask your questions here.
User avatar
MegaDood
Birdo
Birdo
Posts: 1494
Joined: Wed Nov 01, 2017 2:43 am

An error, which I recieved after hitting an invisible 1-up block.

Postby MegaDood » Mon May 25, 2020 9:37 am

== Crash Summary ==
LunaLua Version: LUNALUA 9ea2886
Exception Code: 0xc000008f (VB Error)
VB6 Error Code: 9 (Subscript out of range)

== Stack Trace ==
0: 660CE246 (MSVBVM60): rtcDoEvents
1: 008CA385 (smbx): levelLoop
2: 008C224A (smbx): Sub_Main
3: 6600A048 (MSVBVM60): EbLoadRunTime
4: 66007B3E (MSVBVM60): BASIC_CLASS_QueryInterface
5: 66003981 (MSVBVM60): ThunRTMain
6: 660036FA (MSVBVM60): ThunRTMain
7: 66003600 (MSVBVM60): ThunRTMain
8: 0040BDE2 (smbx): start
9: 77077C24 (ntdll): RtlGetAppContainerNamedObjectPath
10: 77077BF4 (ntdll): RtlGetAppContainerNamedObjectPath


I received this error while I was testing a level. I was playing through without issue. I hit an invisible "1-up" block which immediately triggered the error.
Does anyone know what it is or what to do to fix it
My Project:
Image
I don't really have a signature but here's what I support:


Image
Image
Image

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8738
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: An error, which I recieved after hitting an invisible 1-up block.

Postby Enjl » Mon May 25, 2020 9:49 am

Can you post (a link to) the level, so others can try to replicate the error?
Ideas are useless if you can't make them real.
Image

User avatar
MegaDood
Birdo
Birdo
Posts: 1494
Joined: Wed Nov 01, 2017 2:43 am

Re: An error, which I recieved after hitting an invisible 1-up block.

Postby MegaDood » Mon May 25, 2020 9:45 pm

https://drive.google.com/file/d/1EyPt5- ... sp=sharing
After some testing, I found it seems to happen with SMB3 1-up mushrooms, invisible or not.
It would be easier to simply re-sprite another mushroom, but I want to see why this error is happening and how to sort it out.
Thanks for any help.
Last edited by MegaDood on Tue May 26, 2020 1:57 am, edited 1 time in total.
My Project:
Image
I don't really have a signature but here's what I support:


Image
Image
Image

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8738
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: An error, which I recieved after hitting an invisible 1-up block.

Postby Enjl » Tue May 26, 2020 12:20 am

I was going to download it, but it's apparently in your bin and thus cannot be downloaded.
I checked some invisible blocks with smb3 mushrooms in other levels in the meantime, and those all seem to work fine.
Ideas are useless if you can't make them real.
Image

User avatar
MegaDood
Birdo
Birdo
Posts: 1494
Joined: Wed Nov 01, 2017 2:43 am

Re: An error, which I recieved after hitting an invisible 1-up block.

Postby MegaDood » Tue May 26, 2020 1:59 am

Enjl wrote:
Tue May 26, 2020 12:20 am
I was going to download it, but it's apparently in your bin and thus cannot be downloaded.
I checked some invisible blocks with smb3 mushrooms in other levels in the meantime, and those all seem to work fine.
Oops, my apologies, I accidentally binned it after I uploaded it.
It should work better now, you can just use the same link as before.
My Project:
Image
I don't really have a signature but here's what I support:


Image
Image
Image

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8738
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: An error, which I recieved after hitting an invisible 1-up block.

Postby Enjl » Tue May 26, 2020 3:00 am

After looking it over, we found that your level exceeds the block limit by quite a margin. The block limit in SMBX2 is 20000. You should make sure that you're comfortably below it at all times. You can use tricks like
- using a sizable for the fill of a tileset
- no longer tiling sections that are never visible by the camera
- using large BGOs or blocks instead of small ones for the fill

Keep in mind that bumping a block creates a new block, moving the unbumped one to the "destroyed blocks" layer. That's why I said "comfortably". In the current scenario, having 19998 blocks in the level will avoid the crash... for as long as you don't also bump a second block in the level.
Ideas are useless if you can't make them real.
Image

User avatar
MegaDood
Birdo
Birdo
Posts: 1494
Joined: Wed Nov 01, 2017 2:43 am

Re: An error, which I recieved after hitting an invisible 1-up block.

Postby MegaDood » Tue May 26, 2020 3:53 am

Enjl wrote:
Tue May 26, 2020 3:00 am
After looking it over, we found that your level exceeds the block limit by quite a margin. The block limit in SMBX2 is 20000. You should make sure that you're comfortably below it at all times. You can use tricks like
- using a sizable for the fill of a tileset
- no longer tiling sections that are never visible by the camera
- using large BGOs or blocks instead of small ones for the fill

Keep in mind that bumping a block creates a new block, moving the unbumped one to the "destroyed blocks" layer. That's why I said "comfortably". In the current scenario, having 19998 blocks in the level will avoid the crash... for as long as you don't also bump a second block in the level.
Thank you for your help Enjl, I will remember your advice.
My Project:
Image
I don't really have a signature but here's what I support:


Image
Image
Image

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8738
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: An error, which I recieved after hitting an invisible 1-up block.

Postby Enjl » Tue May 26, 2020 3:56 am

Large bulk of effort came from Rednaxela. I mainly just relayed the information back and forth ;)
We are adding some warning messages to make the limits clearer in future versions.
Ideas are useless if you can't make them real.
Image


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 9 guests