[NPC Pack] Super Mario Maker Pack, I guess. - v.1.2 Update

Share and discuss custom LunaLua code and content packs for SMBX2.
User avatar
1AmPlayer
Volcano Lotus
Volcano Lotus
Posts: 518
Joined: Sun May 21, 2017 3:36 am
Flair: I'm a hellspawn.
Current Project: SMB: Faraway Islands (Work in Progress Name)
Chat Username: IAmPx
Contact:

[NPC Pack] Super Mario Maker Pack, I guess. - v.1.2 Update

Postby 1AmPlayer » Thu Dec 19, 2019 2:45 am

So, I made a bunch of NPCs from Super Mario Maker recently. This pack includes Icicles from Super Mario Maker 2, carriable Stone blocks from the story mode of Super Mario Maker 2, Burners from Super Mario Maker 1 and 2 with an additional variant for upwards facing Burners and with a whole new Rotating Burner NPC as well, and also "Convenient Firebars", a much more configurable firebar than the vanilla firebar, such as starting angle, firebar's movement direction, and orbit amount for easier ways to create two-way, four-way, or eight-way Firebars, but with a limit of 18 fireballs of length just like in Super Mario Maker 2 (might be changed if people wanted bigger length).

Version v.1.2 Update adds the menacing threat that is the Angry Sun! It spins in the air, then does a dive to attack you. There's also another variant in the form of the Moon, that can be touched by the player to kill all enemies on screen.

SHOWCASE:
Spoiler: show
Image
Image
Image
Image
Image
ImageImage
Download Link (v.1.2)

Download the Prior Versions:
Download Link (v.1.1.1)
Download Link (v.1.1) (Effect Fix Link)
Download Link (v.1.0)

Installation Instructions: Handbook, Enjl's Thread

Custom Properties/NPC Settings available:
Icicles:
  • Type (NPC Settings): Determines what type of Icicles it will be. The types can be "Fragile and Falling", "Persistent and Falling", and "Stick to Ceiling".
  • Respawnable (NPC Settings): Determines if the icicle can respawn or not. Defaults to true.
  • Respawn Timer (Custom Properties as "respawntimer"): The time it takes for the icicle to respawn. Defaults to 1 second.
  • Effect ID (Custom Properties as "effectID"): The effect ID used for the icicles. Defaults to 751.
Convinient Firebar:
  • Length (NPC Settings): The amount of fireballs used for the firebar. Defaults to 6.
  • Starting Angle (NPC Settings): Initial angle of the firebar. Defaults to 0 degrees.
  • Orbit Amount (NPC Settings): Amount of fireball lines orbiting the block. Defaults to 1.
Burners:
  • Fire ID (Custom Properties as "fireID"): NPC ID for the Burner Fire.
  • Fire Direction (Custom Properties as "fireDirection"): Direction for the fire.
  • Cooldown (Custom Properties as "cooldown"): Cooldown for the burner before releasing and after releasing. Defaults to 256.
  • Activate on Walk? (NPC Settings): Exclusive for upwards facing burner, to make the burner be activated when stepped on by the player. Defaults to false.
  • Rotation State (NPC Settings for Rotating Burner): Starting rotation for the Rotating Burner. It can start on 0 degrees, 90 degrees, 180 degrees, and 270 degrees. Defaults to 0.
Burner Fire:
  • Duration (Custom Properties as "duration"): Duration the Burner Fire lasts. Defaults to 256.
Changelogs:
v.1.2: show
  • Added Angry Sun and the Moon.
  • All NPC that uses Extra Settings are now usable without any issues in Beta 4.
v.1.1.1/January 3rd Fix: show
  • Icicle's missing effect files are fixed.
  • Link for v.1.1 now has the effect zip file next to the main download link.
v.1.1: show
  • Firebars and Burners can now be moved via event and Attach to NPCs.
  • Firebars and Burners now no longer falls when there's a block on top.
  • Icicles now grow from the middle.
  • Rotating Burner is added, alongside one new NPC Setting to the Burner family.
  • Burner Fire's duration now can be changed.
Feel free to use it, but a credit is required. Modifications, adaptation, and optimization is allowed as well.
Last edited by 1AmPlayer on Sat Feb 08, 2020 12:14 am, edited 6 times in total.

User avatar
DrMekar
Lakitu
Lakitu
Posts: 471
Joined: Sat Apr 08, 2017 7:16 am
Flair: CUSTOM CHARACTER CREATOR
Current Project: Mario Hereos 2: The Seal of Darkness, Mario Heroes: The First Chapter REMASTERED, Path of Silence
Chat Username: DrMekar
Contact:

Re: [NPC Pack] Super Mario Maker Pack, I guess.

Postby DrMekar » Thu Dec 19, 2019 3:35 am

Wow, this looks really neat. I'll defenitly use something of that. I do have a Question: Can the Firebar be moved via an Event? The Orginal can't and that always bothered me.
My Youtube Channel: https://www.youtube.com/channel/UC-8fzX ... subscriber

My Episodes & Projects:
ImageImage


If you want to support my Projects, put this in your signature. Thanks :)
Spoiler: show

Code: Select all

[url=https://www.supermariobrosx.org/forums/viewtopic.php?f=36&t=25110[/url]
Great Folks who support/ed my projects/in the past:

Suecra
jaf
Suckerman7 GM

Image

User avatar
PROX
Boom Boom
Boom Boom
Posts: 1759
Joined: Sun Jul 06, 2014 8:50 pm
Chat Username: PROX

Re: [NPC Pack] Super Mario Maker Pack, I guess.

Postby PROX » Thu Dec 19, 2019 4:09 am

Yay! It's finally out! I will definitely be putting these to good use! Well.....except for the heavy stone since victory conditions aren't a thing, and there's no real way to force the player to grab it.
Last edited by PROX on Thu Dec 19, 2019 4:52 am, edited 2 times in total.
I believe and I accept Jesus Christ as my Lord and Savior. If you do, put this in your signature.

If it makes sense then it must make dollars

Youtube Channel: ProxyHax O.O

My Project (No logo yet): viewtopic.php?f=90&t=18321&start=20

My Graphics Pack:
Image

World Map Pack: viewtopic.php?f=31&t=20173

User avatar
1AmPlayer
Volcano Lotus
Volcano Lotus
Posts: 518
Joined: Sun May 21, 2017 3:36 am
Flair: I'm a hellspawn.
Current Project: SMB: Faraway Islands (Work in Progress Name)
Chat Username: IAmPx
Contact:

Re: [NPC Pack] Super Mario Maker Pack, I guess.

Postby 1AmPlayer » Thu Dec 19, 2019 4:13 am

DrMekar wrote:
Thu Dec 19, 2019 3:35 am
Wow, this looks really neat. I'll defenitly use something of that. I do have a Question: Can the Firebar be moved via an Event? The Orginal can't and that always bothered me.
Unfortunately, it can't. But I will try to get it to be able to work.

User avatar
LGLMAKING
Mega Mole
Mega Mole
Posts: 285
Joined: Mon Jun 18, 2018 7:28 am
Flair: Luvin' those bosses
Current Project: CTSS, a Novaverse project

Re: [NPC Pack] Super Mario Maker Pack, I guess.

Postby LGLMAKING » Thu Dec 19, 2019 9:09 am

Woop woop, it is finally out! Might use it for my Nocavers level. Glad to have helped you with the burners ;)
Image
Image

User avatar
MarioLover64
Bit
Bit
Posts: 141
Joined: Fri Apr 26, 2019 6:09 pm

Re: [NPC Pack] Super Mario Maker Pack, I guess.

Postby MarioLover64 » Thu Dec 19, 2019 9:42 am

Can burners use line guides like in nsmb2 bowsers castle?

User avatar
1AmPlayer
Volcano Lotus
Volcano Lotus
Posts: 518
Joined: Sun May 21, 2017 3:36 am
Flair: I'm a hellspawn.
Current Project: SMB: Faraway Islands (Work in Progress Name)
Chat Username: IAmPx
Contact:

Re: [NPC Pack] Super Mario Maker Pack, I guess.

Postby 1AmPlayer » Thu Dec 19, 2019 9:51 am

MarioLover64 wrote:
Thu Dec 19, 2019 9:42 am
Can burners use line guides like in nsmb2 bowsers castle?
It can, it's just not normally intended. You can still register it yourself though.

User avatar
Locus
Cheep-Cheep
Cheep-Cheep
Posts: 13
Joined: Sun Mar 17, 2019 12:47 pm
Flair: Dying

Re: [NPC Pack] Super Mario Maker Pack, I guess.

Postby Locus » Thu Dec 19, 2019 11:15 am

https://i.imgur.com/IetYn6t.gif

I discovered a bug that upon jumping the firebar block moves down a bit. Don't know if you were already aware. Just wanted to point this out.

User avatar
Murphmario
Larry Koopa
Larry Koopa
Posts: 2031
Joined: Fri Dec 20, 2013 7:07 pm
Current Project: Project planned; waiting for SMBX2 Beta 4

Re: [NPC Pack] Super Mario Maker Pack, I guess.

Postby Murphmario » Thu Dec 19, 2019 11:29 am

Assuming the firebar comes with the block, would it be possible to add an option to make it not have a block?

Edit: I realized that you can just edit the code of the NPC and make it's graphics invisible to achieve exactly that. So for anyone wanting a convenient firebar without the block, here you go.
Last edited by Murphmario on Fri Dec 20, 2019 3:26 pm, edited 1 time in total.
Now taking graphics requests:
https://docs.google.com/forms/d/1urWpFq ... #responses

My graphics pack:
http://www.supermariobrosx.org/forums/v ... t=1960/url

Really tempted to just make a general graphics thread for all of my graphics instead of just making individual threads for each of them.

User avatar
Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 7801
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: [NPC Pack] Super Mario Maker Pack, I guess.

Postby Enjl » Thu Dec 19, 2019 1:45 pm

Locus wrote:
Thu Dec 19, 2019 11:15 am
https://i.imgur.com/IetYn6t.gif

I discovered a bug that upon jumping the firebar block moves down a bit. Don't know if you were already aware. Just wanted to point this out.
Completely unrelated to jumping. The issue is that all npcs with nogravity still collide with the ceiling. The bump event that occurs will give the npc minimal speedY. To fix it, block collision should be disabled for the NPC.

Also another thing: The icicles grow from the top left corner. Consider offsetting the x coordinate for the draw call so that x + 0.5 * currentwidth = center of the fully spawned icicle
ImageImageImageImage
ImageImageImageImageImageImage

User avatar
Teemster2
Ripper II
Ripper II
Posts: 340
Joined: Sat Jan 18, 2014 11:56 am

Re: [NPC Pack] Super Mario Maker Pack, I guess.

Postby Teemster2 » Thu Dec 19, 2019 11:38 pm

These look amazing. Good job.
I want to say thank you to God for every day he gives me on this planet and for the chance to be in a better place when I die.

User avatar
1AmPlayer
Volcano Lotus
Volcano Lotus
Posts: 518
Joined: Sun May 21, 2017 3:36 am
Flair: I'm a hellspawn.
Current Project: SMB: Faraway Islands (Work in Progress Name)
Chat Username: IAmPx
Contact:

Re: [NPC Pack] Super Mario Maker Pack, I guess.

Postby 1AmPlayer » Fri Dec 20, 2019 1:23 am

Enjl wrote:
Thu Dec 19, 2019 1:45 pm
Locus wrote:
Thu Dec 19, 2019 11:15 am
https://i.imgur.com/IetYn6t.gif

I discovered a bug that upon jumping the firebar block moves down a bit. Don't know if you were already aware. Just wanted to point this out.
Completely unrelated to jumping. The issue is that all npcs with nogravity still collide with the ceiling. The bump event that occurs will give the npc minimal speedY. To fix it, block collision should be disabled for the NPC.

Also another thing: The icicles grow from the top left corner. Consider offsetting the x coordinate for the draw call so that x + 0.5 * currentwidth = center of the fully spawned icicle
Ah. Thanks for noting that. I will also fix the firebar and burner block moving down as well.

Unrelated, but thank you for everyone who have been posting issues with this pack! I will get them fixed as soon as possible and release the fix once it's done.

User avatar
PROX
Boom Boom
Boom Boom
Posts: 1759
Joined: Sun Jul 06, 2014 8:50 pm
Chat Username: PROX

Re: [NPC Pack] Super Mario Maker Pack, I guess.

Postby PROX » Fri Dec 20, 2019 3:21 pm

Do you have any way of forcing the player to grab the heavy stone?
I believe and I accept Jesus Christ as my Lord and Savior. If you do, put this in your signature.

If it makes sense then it must make dollars

Youtube Channel: ProxyHax O.O

My Project (No logo yet): viewtopic.php?f=90&t=18321&start=20

My Graphics Pack:
Image

World Map Pack: viewtopic.php?f=31&t=20173

User avatar
Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 7801
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: [NPC Pack] Super Mario Maker Pack, I guess.

Postby Enjl » Fri Dec 20, 2019 3:35 pm

You can use player.holdingNPC ~= nil and player.holdingNPC.id == ROCK_ID (whatever that is) in onTick to detect when the first player is or is not carrying it.
ImageImageImageImage
ImageImageImageImageImageImage

User avatar
1AmPlayer
Volcano Lotus
Volcano Lotus
Posts: 518
Joined: Sun May 21, 2017 3:36 am
Flair: I'm a hellspawn.
Current Project: SMB: Faraway Islands (Work in Progress Name)
Chat Username: IAmPx
Contact:

Re: [NPC Pack] Super Mario Maker Pack, I guess.

Postby 1AmPlayer » Fri Dec 20, 2019 8:36 pm

Yeah, that code might do it. I don't have any Clear Conditions type of code.

User avatar
MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6170
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Current Project: http://www.supermariobrosx.org/forums/v ... 9&start=10
Chat Username: 鬼人 正邪
Contact:

Re: [NPC Pack] Super Mario Maker Pack, I guess.

Postby MECHDRAGON777 » Fri Dec 20, 2019 10:01 pm

One can also make it so you need to solve a puzzle with said stone. (If they want to use it currently.)

ImageImageImage

Image

User avatar
1AmPlayer
Volcano Lotus
Volcano Lotus
Posts: 518
Joined: Sun May 21, 2017 3:36 am
Flair: I'm a hellspawn.
Current Project: SMB: Faraway Islands (Work in Progress Name)
Chat Username: IAmPx
Contact:

Re: [NPC Pack] Super Mario Maker Pack, I guess.

Postby 1AmPlayer » Sat Dec 21, 2019 10:40 pm

Murphmario wrote:
Thu Dec 19, 2019 11:29 am
Assuming the firebar comes with the block, would it be possible to add an option to make it not have a block?

Edit: I realized that you can just edit the code of the NPC and make it's graphics invisible to achieve exactly that. So for anyone wanting a convenient firebar without the block, here you go.
The collision would still be there though, so setting playerblock and playerblocktop to false helps as well.

Sidenote, a new Update is out! This update fixes issues listed on this thread, and also adding Rotating Burners and also allows customization for Burner Fire, enjoy and keep on creating levels!

User avatar
Murphmario
Larry Koopa
Larry Koopa
Posts: 2031
Joined: Fri Dec 20, 2013 7:07 pm
Current Project: Project planned; waiting for SMBX2 Beta 4

Re: [NPC Pack] Super Mario Maker Pack, I guess. - v.1.1 Update

Postby Murphmario » Sun Dec 22, 2019 3:56 pm

So I'm trying to modify the graphics of the burner fire, and now the game crashed.
Spoiler: show
== Stack Trace ==
0: 660CE246 (MSVBVM60): rtcDoEvents
1: 660E009B (MSVBVM60): rtcErrObj
2: 660E536F (MSVBVM60): _vbaR8Var
3: 00B21793 (smbx): loadNPCConfiguration
4: 00B21183 (smbx): loadNPCConfigurations
5: c:\github_new\lunalua\lunadll\filemanager\loadfile_level.cpp (95): LunaLua_loadLevelFile
6: c:\github_new\lunalua\lunadll\filemanager\smbxfilemanager.cpp (122): SMBXLevelFileBase::ReadFileMem
7: c:\github_new\lunalua\lunadll\misc\testmode.cpp (282): testModeLoadLevelHook
8: c:\github_new\lunalua\lunadll\misc\runtimehookcomponents\runtimehookhooks.cpp (1342): runtimeHookLoadLevel
9: 008C14E5 (smbx): Sub_Main
10: 6600A048 (MSVBVM60): EbLoadRunTime
11: 66007B3E (MSVBVM60): BASIC_CLASS_QueryInterface
12: 66003981 (MSVBVM60): ThunRTMain
13: 660036FA (MSVBVM60): ThunRTMain
14: 66003600 (MSVBVM60): ThunRTMain
15: 0040BDE2 (smbx): start
16: 77A87B74 (ntdll): RtlGetAppContainerNamedObjectPath
17: 77A87B44 (ntdll): RtlGetAppContainerNamedObjectPath
And here's the warning:
Spoiler: show
0t - Warning: Invalid line was passed to config file npc-765.txt: gfxheight=
stack traceback:
scripts/base/configFileReader.lua:75: in function 'parseTxt'
scripts/base/engine/npcconfig_core.lua:327: in function 'loadAllTxt'
scripts/base/game/lunabase.lua:170: in function 'codeFile'
main.lua:469: in function 'loadCodeFile'
main.lua:593: in function <main.lua:519>
[C]: in function '__xpcall'
main.lua:519: in function <main.lua:518>
Edit: I resolved the issue by just copypasting the graphics again.
Last edited by Murphmario on Sun Dec 22, 2019 4:07 pm, edited 1 time in total.
Now taking graphics requests:
https://docs.google.com/forms/d/1urWpFq ... #responses

My graphics pack:
http://www.supermariobrosx.org/forums/v ... t=1960/url

Really tempted to just make a general graphics thread for all of my graphics instead of just making individual threads for each of them.

User avatar
Chilly14
Swooper
Swooper
Posts: 100
Joined: Thu Jul 18, 2019 10:28 pm
Current Project: Lots
Chat Username: Chilly Bean BAM!

Re: [NPC Pack] Super Mario Maker Pack, I guess. - v.1.1 Update

Postby Chilly14 » Sun Dec 22, 2019 4:00 pm

The game spams errors when an icicle hits the ground:
Image
Image
For the love of god, please use an adblocker when using MediaFire to download my stuff.
My stuff:
Spoiler: show
Image
Image
I support:
Spoiler: show
Image

User avatar
Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 7801
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: [NPC Pack] Super Mario Maker Pack, I guess. - v.1.1 Update

Postby Enjl » Sun Dec 22, 2019 5:43 pm

Sounds like it cannot find an effect of the corresponding ID. Did you rename any files?
ImageImageImageImage
ImageImageImageImageImageImage


Return to “LunaLua”

Who is online

Users browsing this forum: chuckster and 2 guests