Postby Kevsoft » Fri Apr 24, 2015 9:36 am
So what I mean with "Mushbug" is the bug where Powerups hit a Lava-Block and SMBX sometimes crashes. (Subscript out of range (Error 9))
And yes: IT IS FINALLY FIXED.
It will be released as a part of the next LunaLua update.
But you guys will question now: "How could this happen? And why only sometimes?"
There where a lot of myths about it. Some say it is because of too many NPCs, others think it is because of too many Effects in the level.
Here is the actual error:
The SMBX code mismatched the block-index with the npc-index in a small code segment. The code checks for npc settings with a block index, though it shouldn't do it, as it is a block-index. When checking the npc settings for an element in the array it uses the block-index. So if you have a block with the index 6104 you're reaching the maximum of the NPC-Array. (I hope it is understandable).
So in other words:
If you have less than 5000 blocks in your level, you won't encounter that bug.
So Rednaxela and me investigated that error and patched some code and now it is working ;D.