Three questions

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

Moderator: Userbase Moderators

KnownStranger
Blooper
Blooper
Posts: 155
Joined: Fri Jun 18, 2021 4:36 pm

Three questions

Postby KnownStranger » Tue Feb 01, 2022 5:58 pm

1. Legacy SMBX episodes are compatible with SMBX2b4?
2. How add I light to certain NPCs with lua?
3. What should type I in the luna.lua file for use a new powerup? (I have downloaded anotherpowerup.lua and a custom powerup)

Marioman2007
2025 Egg Hunter
2025 Egg Hunter
Posts: 547
Joined: Tue Aug 25, 2020 3:19 am
Flair: Dr. Bones
Pronouns: He/Him

Re: Three questions

Postby Marioman2007 » Wed Feb 02, 2022 8:00 am

Weirdgoomba4932 wrote:
Tue Feb 01, 2022 5:58 pm
1. Legacy SMBX episodes are compatible with SMBX2b4?
2. How add I light to certain NPCs with lua?
3. What should type I in the luna.lua file for use a new powerup? (I have downloaded anotherpowerup.lua and a custom powerup)
1. Yes, 1.3.0.1 or lower versions' episodes are compatible with Beta 4+

2. You could set their light related configs in npc-n.txt
https://docs.codehaus.moe/#/features/light-config

3. Sorry, I have no idea on that, but you should first try to experiment around with the example powerup

KnownStranger
Blooper
Blooper
Posts: 155
Joined: Fri Jun 18, 2021 4:36 pm

Re: Three questions

Postby KnownStranger » Wed Feb 02, 2022 2:37 pm

marioman2007 wrote:
Wed Feb 02, 2022 8:00 am
Weirdgoomba4932 wrote:
Tue Feb 01, 2022 5:58 pm
1. Legacy SMBX episodes are compatible with SMBX2b4?
2. How add I light to certain NPCs with lua?
3. What should type I in the luna.lua file for use a new powerup? (I have downloaded anotherpowerup.lua and a custom powerup)
1. Yes, 1.3.0.1 or lower versions' episodes are compatible with Beta 4+

2. You could set their light related configs in npc-n.txt
https://docs.codehaus.moe/#/features/light-config

3. Sorry, I have no idea on that, but you should first try to experiment around with the example powerup
Thanks for the help :)

KnownStranger
Blooper
Blooper
Posts: 155
Joined: Fri Jun 18, 2021 4:36 pm

Re: Three questions

Postby KnownStranger » Mon Feb 07, 2022 6:42 pm

marioman2007 wrote:3. Sorry, I have no idea on that, but you should first try to experiment around with the example powerup
I have played that demo level from anotherpowerup.lua and it works perfectly.
But when I play my custom level (Its folder have the "anotherpowerup" files and the "cape feather" files) always appears a message of "Item 851 could not be registered"

I wrote this in the luna.lua file

Code: Select all

local ap = require("anotherpowerup")

ap.registerItemTier(851, true)
ap.registerPowerup("ap_cape")

Marioman2007
2025 Egg Hunter
2025 Egg Hunter
Posts: 547
Joined: Tue Aug 25, 2020 3:19 am
Flair: Dr. Bones
Pronouns: He/Him

Re: Three questions

Postby Marioman2007 » Mon Feb 07, 2022 10:02 pm

Weirdgoomba4932 wrote:
Mon Feb 07, 2022 6:42 pm
marioman2007 wrote:3. Sorry, I have no idea on that, but you should first try to experiment around with the example powerup
I have played that demo level from anotherpowerup.lua and it works perfectly.
But when I play my custom level (Its folder have the "anotherpowerup" files and the "cape feather" files) always appears a message of "Item 851 could not be registered"

I wrote this in the luna.lua file

Code: Select all

local ap = require("anotherpowerup")

ap.registerItemTier(851, true)
ap.registerPowerup("ap_cape")
you don't need to put anything in luna.lua file for the cape feather, just follow the instructions to use the cape feather and you are good to go

KnownStranger
Blooper
Blooper
Posts: 155
Joined: Fri Jun 18, 2021 4:36 pm

Re: Three questions

Postby KnownStranger » Tue Feb 08, 2022 3:27 pm

marioman2007 wrote:
Mon Feb 07, 2022 10:02 pm
Weirdgoomba4932 wrote:
Mon Feb 07, 2022 6:42 pm
marioman2007 wrote:3. Sorry, I have no idea on that, but you should first try to experiment around with the example powerup
I have played that demo level from anotherpowerup.lua and it works perfectly.
But when I play my custom level (Its folder have the "anotherpowerup" files and the "cape feather" files) always appears a message of "Item 851 could not be registered"

I wrote this in the luna.lua file

Code: Select all

local ap = require("anotherpowerup")

ap.registerItemTier(851, true)
ap.registerPowerup("ap_cape")
you don't need to put anything in luna.lua file for the cape feather, just follow the instructions to use the cape feather and you are good to go
I have erased that code and now the powerup works well. Thank you!


Return to “Help and Support”

Who is online

Users browsing this forum: Barkrowler [Bot], Semrush [Bot] and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari