[NPC/Block] Extension Pack (2.1)

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 607
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: [NPC/Block] Extension Pack (2.1)

Postby mariobrigade2018 » Thu May 09, 2024 2:56 pm

ComparatorClock wrote:
Thu May 09, 2024 1:43 pm
ComparatorClock wrote:
Thu May 09, 2024 1:28 pm
mariobrigade2018 wrote:
Tue May 07, 2024 6:15 pm


How is it broken? It works fine for me. Did you also copy the lua file for npc-263 (the ice cube)?
oh **** I was missing a lua file? gtg
update: everything works now, thx!
Yea, Core forgot to mention that in her post when she introduced the ice bro and Venus Ice Trap. Glad to see it working now!

RotisserieSalad
Spiny
Spiny
Posts: 27
Joined: Tue Feb 06, 2024 3:57 pm
Flair: the terrible tormentor of twinks /j
Pronouns: he/him or they/them
Contact:

Re: [NPC/Block] Extension Pack (2.1)

Postby RotisserieSalad » Fri May 24, 2024 8:42 am

dragonfan96 wrote:
Wed May 08, 2024 12:25 am
RotisserieSalad wrote:
Tue May 07, 2024 7:43 pm
hey this is really cool but does anybody know how to change the time limit on the frog switch?
Open up the lua file for the frog switch, should be line 26 where it's apart of a table where it says "time = 180"
180 would equal 3:00 however you can change this to whatever you like, every 60 is 1:00(1 minute) for the timer

I recommend Notepad++ or Visual Studio Code for reading Lua script files, if you are unable to open them, or make modifying the file easier
thank you!

KJPopcorn
Bit
Bit
Posts: 69
Joined: Wed Mar 20, 2024 8:14 pm
Pronouns: He/Him

Re: [NPC/Block] Extension Pack (2.1)

Postby KJPopcorn » Sun May 26, 2024 11:58 pm

ComparatorClock wrote:
Thu May 09, 2024 1:43 pm
mariobrigade2018 wrote:
Tue May 07, 2024 6:15 pm
ComparatorClock wrote:
Tue May 07, 2024 1:30 pm
Hey, just an FYI, but the ice ball for the ice bros (aka NPC 832) is broken and needs to be fixed for beta 5.
How is it broken? It works fine for me. Did you also copy the lua file for npc-263 (the ice cube)?
oh **** I was missing a lua file? gtg

Added in 15 minutes 31 seconds:
ComparatorClock wrote:
Thu May 09, 2024 1:28 pm
mariobrigade2018 wrote:
Tue May 07, 2024 6:15 pm


How is it broken? It works fine for me. Did you also copy the lua file for npc-263 (the ice cube)?
oh **** I was missing a lua file? gtg
update: everything works now, thx!
When I copy the 263 lua file, it doesn't work. I don't get it. =(

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 607
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: [NPC/Block] Extension Pack (2.1)

Postby mariobrigade2018 » Mon May 27, 2024 3:29 am

KJPopcorn wrote:
Sun May 26, 2024 11:58 pm
When I copy the 263 lua file, it doesn't work. I don't get it. =(
Where are you putting it?

KJPopcorn
Bit
Bit
Posts: 69
Joined: Wed Mar 20, 2024 8:14 pm
Pronouns: He/Him

Re: [NPC/Block] Extension Pack (2.1)

Postby KJPopcorn » Mon May 27, 2024 12:06 pm

mariobrigade2018 wrote:
Mon May 27, 2024 3:29 am
KJPopcorn wrote:
Sun May 26, 2024 11:58 pm
When I copy the 263 lua file, it doesn't work. I don't get it. =(
Where are you putting it?
In the ice bro lua code.

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 607
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: [NPC/Block] Extension Pack (2.1)

Postby mariobrigade2018 » Mon May 27, 2024 12:11 pm

KJPopcorn wrote:
Mon May 27, 2024 12:06 pm
mariobrigade2018 wrote:
Mon May 27, 2024 3:29 am
KJPopcorn wrote:
Sun May 26, 2024 11:58 pm
When I copy the 263 lua file, it doesn't work. I don't get it. =(
Where are you putting it?
In the ice bro lua code.
That's the problem. It will only work if it's in the npc-263 lua file, like this:

Image

(ignore the CGFX there, it's irrelevant)

KJPopcorn
Bit
Bit
Posts: 69
Joined: Wed Mar 20, 2024 8:14 pm
Pronouns: He/Him

Re: [NPC/Block] Extension Pack (2.1)

Postby KJPopcorn » Mon May 27, 2024 1:46 pm

Ok. So I copied the npc-833 lua code into the npc-263 code. And this is what happened:
Image
I'm losing hope. :(

P.s., I had the Ice Bro. reskinned for SMB1

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 607
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: [NPC/Block] Extension Pack (2.1)

Postby mariobrigade2018 » Mon May 27, 2024 5:45 pm

KJPopcorn wrote:
Mon May 27, 2024 1:46 pm
Ok. So I copied the npc-833 lua code into the npc-263 code. And this is what happened:
Image
I'm losing hope. :(

P.s., I had the Ice Bro. reskinned for SMB1
NO! DON’T DO THAT! *sighs deeply* you copy the actual file for npc-263 (NOT THE CODE. THE ACTUAL FILE.) into your level/episode folder. If someone could post a gif of what I’m talking about, that would be greatly appreciated.

KJPopcorn
Bit
Bit
Posts: 69
Joined: Wed Mar 20, 2024 8:14 pm
Pronouns: He/Him

Re: [NPC/Block] Extension Pack (2.1)

Postby KJPopcorn » Mon May 27, 2024 6:18 pm

Image
Ok. Everything works now. Just got a little confused there. Heh heh heh. If only I could get it to sit still, though.

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 607
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: [NPC/Block] Extension Pack (2.1)

Postby mariobrigade2018 » Mon May 27, 2024 7:51 pm

KJPopcorn wrote:
Mon May 27, 2024 6:18 pm
Image
Ok. Everything works now. Just got a little confused there. Heh heh heh. If only I could get it to sit still, though.
And that’s unfortunately out of the scope for (almost) everyone. Maybe Core can add a alt version for it if you yell at her enough.

TLtimelord
Red Yoshi Egg
Red Yoshi Egg
Posts: 2699
Joined: Sat Dec 21, 2013 5:16 pm
Flair: Info under raps

Re: [NPC/Block] Extension Pack (2.1)

Postby TLtimelord » Mon May 27, 2024 11:13 pm

KJPopcorn wrote:
Mon May 27, 2024 6:18 pm
Image
Ok. Everything works now. Just got a little confused there. Heh heh heh. If only I could get it to sit still, though.
setting it to "don't move" should do just fine. Otherwise, speed=0

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 607
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: [NPC/Block] Extension Pack (2.1)

Postby mariobrigade2018 » Mon May 27, 2024 11:30 pm

TLtimelord wrote:
Mon May 27, 2024 11:13 pm
KJPopcorn wrote:
Mon May 27, 2024 6:18 pm
Image
Ok. Everything works now. Just got a little confused there. Heh heh heh. If only I could get it to sit still, though.
setting it to "don't move" should do just fine. Otherwise, speed=0
He means the enemy ice cube acting like the NSMB series (or 38a).

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 607
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: [NPC/Block] Extension Pack (2.1)

Postby mariobrigade2018 » Tue Jun 18, 2024 5:40 pm

Sednaiur wrote:
Sat Dec 31, 2022 5:19 am
The conveyor belt-platform works fine but animates way too slow. My suggestion is to set the framespeed to 2 and line 26 to

Code: Select all

local time = math.floor(lunatime.tick() / (config.framespeed)) * (speed)
This way it animates exactly as fast as it moves the player/NPCs on top of it.
Where is the conveyor belt-platform?

Added in 52 seconds:
KateBulka wrote:
Sun Aug 15, 2021 9:15 am
Ping

Alagirez
Mouser
Mouser
Posts: 3579
Joined: Tue Dec 02, 2014 2:28 am
Flair: Legalize Awooo!
Pronouns: He/Him/That wolf
Contact:

Re: [NPC/Block] Extension Pack (2.1)

Postby Alagirez » Wed Jun 19, 2024 4:51 am

You better contact her on discord instead of pinging her here.

Dor_78
Spiny
Spiny
Posts: 26
Joined: Wed Mar 30, 2022 2:08 pm

Re: [NPC/Block] Extension Pack (2.1)

Postby Dor_78 » Wed Jun 19, 2024 11:45 am

Hello! I have a question. How the "shoot" from the boss npc works?

Anthonity
Shy Guy
Shy Guy
Posts: 9
Joined: Tue Feb 08, 2022 12:26 pm
Flair: You know what they say, all toasters toast toast!
Pronouns: he/him
Contact:

Re: [NPC/Block] Extension Pack (2.1)

Postby Anthonity » Sat Jun 29, 2024 3:08 pm

Apparently you can eat the red ring and the coins when you're on a yoshi. It's a easy fix but I'm just telling you

FutureNyanCat
Eerie
Eerie
Posts: 764
Joined: Fri Dec 20, 2013 8:39 pm
Flair: Species: Felis robotus
Pronouns: He/Him
Contact:

Re: [NPC/Block] Extension Pack (2.1)

Postby FutureNyanCat » Sun Jun 30, 2024 9:43 am

Anthonity wrote:
Sat Jun 29, 2024 3:08 pm
Apparently you can eat the red ring and the coins when you're on a yoshi. It's a easy fix but I'm just telling you
We outta Red Coin Rings... exclaimed Yoshi as he has a ring-shaped neck.

On a serious note, I feel that's a pretty minor fix which the user can do easily lol, would be as simple as setting "noyoshi" to true or 1. I'd genuinely find it funnier if you allow Yoshi to eat red coin rings tho lol.

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 607
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: [NPC/Block] Extension Pack (2.1)

Postby mariobrigade2018 » Sun Jun 30, 2024 10:53 pm

Anthonity wrote:
Sat Jun 29, 2024 3:08 pm
Apparently you can eat the red ring and the coins when you're on a yoshi. It's a easy fix but I'm just telling you
Bro why are you making a mountain of a molehill, just set noyoshi=true and move on with your day.

MegaDood
Torpedo Ted
Torpedo Ted
Posts: 1797
Joined: Wed Nov 01, 2017 2:43 am

Re: [NPC/Block] Extension Pack (2.1)

Postby MegaDood » Mon Jul 01, 2024 8:50 am

mariobrigade2018 wrote:
Sun Jun 30, 2024 10:53 pm
Bro why are you making a mountain of a molehill, just set noyoshi=true and move on with your day.
No need to be like that, they were just reporting a bug

UlticraftMTT
Fighter Fly
Fighter Fly
Posts: 43
Joined: Tue Jul 09, 2019 3:43 am
Pronouns: he/him

Re: [NPC/Block] Extension Pack (2.1)

Postby UlticraftMTT » Mon Aug 26, 2024 2:37 am

Alfur wrote:
Sun May 07, 2023 11:59 am
Alfur wrote:
Sat May 06, 2023 8:16 pm
I'm having issues with the WL4 Switch NPC.
After warping from one section to another, the music goes away. It doesn't come back. This issue has been very frustrating, and finding a fix for it would be great.
I have found the issue. Adding custom music to sections cuts off the escape music. And it's not like the section music plays, no, ALL music is gone. It's completely silent.
I'm not sure if anyone else has this issue, but it is very annoying.
I was having this issue too, but the best option IMO if you're using custom music is to put a music.ini file into your episode/level's folder, go in it, and change the path and file name of a vanilla song to that of your custom music. I'm using custom music in 2 separate sections in one of my levels with the Frog Switch as a main gimmick of the level using this tactic. I do wish there was a simpler fix for it though.


Return to “LunaLua”

Who is online

Users browsing this forum: Amazon [Bot] and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari