Postby Emral » Fri Apr 24, 2020 11:47 am
Please when making such posts actually include the error messages. It's deeply frustrating if people who experience errors don't provide the information that would help other people in figuring out what's wrong. That's why error messages exist in the first place!
After downloading the files, reading the code for several minutes, and trying to figure out a subtle change that made things stop working, I decided to plug it into a level and was greeted with a message that ought to be fairly simple to parse for anyone:
"module 'helpfulCheats' not found"
The library loads helpfulCheats which has been replaced in later versions of SMBX2 with a new library called 'newcheats'. Simply removing all code pertaining to the cheat code would be the fastest way to get it working.
Afterwards you will face warnings for pnpc being loaded. I have a youtube video on how you can fix that, but like how I had to seek for that trivial message that would've taken 2 seconds to write a response for, I will leave seeking out that video to you.
The most sustainable solution would be to port the entire powerup to use anotherpowerup, which would take care of the reserve powerup handling and allow it to integrate better with other custom and non-custom powerups. But that requires more experience.
A simple additional fix would be to change the pairs in line 73 to ipairs. Good performance boost for that. There's more stuff that can be improved, but I won't mention it until someone shows interest in fixing it.