Cape Powerup doesn't work

Post here for help and support regarding LunaLua and SMBX2's libraries and features.

Moderator: Userbase Moderators

SPEEDIE
Flurry
Flurry
Posts: 180
Joined: Sat Nov 03, 2018 6:22 pm
Flair: u fucking wot
Pronouns: he/him
Contact:

Cape Powerup doesn't work

Postby SPEEDIE » Fri Apr 24, 2020 11:25 am

Is there any way to make the Cape Feather powerup by Tempest to work in beta 4?
It worked in Beta 3 but in PAL it stopped working and doesn't work now either.

viewtopic.php?t=21271

When I try to pick it up, it shows the gfx for it but it never picks up, it's like a bgo.

(edit: tells me that helpfulcheats isn't found)

Image

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9865
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Cape Powerup doesn't work

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.


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari