How to use NPC/Block/Other Packs from here

Share and discuss custom LunaLua code and content packs for SMBX2.
User avatar
Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 7569
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

How to use NPC/Block/Other Packs from here

Postby Enjl » Sat Mar 30, 2019 8:04 am

One type of content you will find in this forum is the NPC pack (or Block pack, or BGO pack, or Effect pack... maybe even a mix! For simplicity I will just refer to NPC packs however).

Using these in your own levels is simple. The contents of such a pack might look like this:
Image
You can extract all the contents of a folder like the one above into your level/episode folder and the corresponding IDs will be automatically applied. In this case, 751 and 752.

All IDs between 751 and 1000 for NPCs, blocks, BGOs and effects are available for per-level or per-episode customisation. So if you would like to use several packs, but there are overlaps in IDs you can do the following:
1. Rename the files of the secondary pack you are importing to fill IDs currently not occupied. Make sure to stay within the 751-1000 range.
Image
2. Open the npc-n.ini file for the NPCs you have renamed, to make sure they use the same image file as their name suggests.
Image

Afterwards, if you have the editor open, hit F8 to refresh and the new content will be available! Depending on the renaming situation you might have to adjust a few tilesets (if the pack creator provides them) or create your own in order to access them in the Tileset Itembox. Simply checking the "Show Custom Only" box and selecting the type of object you want to create a tileset for will help you easily find the things you have imported:
Image

Pack credits:
Not all npcs you'll find here are 100% coded from scratch. Sometimes you may find adaptations of basegame code, or adaptations from other people's code. Crediting these properly can be a bit daunting if sufficient information isn't provided. In the case of a basegame adaptation (e.g. custom mod for Thwimps), credit the modder as well as the original creator, found in Credits.xls of your SMBX2 installation. In the case of a mod of a user-submitted NPC, please find the original author in the original post by the modder. If the modder didn't provide this information, please remind them to do so. Thank you!

And that's it! You can now start using packs you have downloaded here in your levels. Please enjoy!
Last edited by Enjl on Tue Jul 23, 2019 3:22 pm, edited 2 times in total.
ImageImageImageImage
ImageImageImageImageImageImage

User avatar
8lue Storm
Lakitu
Lakitu
Posts: 493
Joined: Thu Jan 18, 2018 9:53 am
Flair: its pronounced bluestorm
Current Project: Many, MANY stuff
Chat Username: 8luestorm

Re: How to use NPC/Block/Other Packs from here

Postby 8lue Storm » Sun May 26, 2019 3:05 pm

Enjl wrote:
Sat Mar 30, 2019 8:04 am
Afterwards, if you have the editor open, hit F5 to refresh and the new content will be available!
A little trivial, but doesn't F5 start the tester instead of reloading the editor?
Image

i never performed a shelljump and it's sad I did a grand total of 4 shelljumps in my life!

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

Re: How to use NPC/Block/Other Packs from here

Postby Enjl » Sun May 26, 2019 3:34 pm

You're right, oops! Fixing.
ImageImageImageImage
ImageImageImageImageImageImage

ArtAddictedArchitect
Goomba
Goomba
Posts: 3
Joined: Fri Aug 09, 2019 11:05 am
Chat Username: ArtAddict

Re: How to use NPC/Block/Other Packs from here

Postby ArtAddictedArchitect » Sat Aug 10, 2019 11:34 pm

okay, but how do you add powerups? i cant find a tutorial anywhere and really confused

User avatar
Core
Grinder
Grinder
Posts: 1021
Joined: Tue Apr 15, 2014 8:29 am

Re: How to use NPC/Block/Other Packs from here

Postby Core » Sun Aug 11, 2019 1:20 am

ArtAddictedArchitect wrote:
Sat Aug 10, 2019 11:34 pm
okay, but how do you add powerups? i cant find a tutorial anywhere and really confused
You can't do that so far. Powerup array list is not extended yet

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

Re: How to use NPC/Block/Other Packs from here

Postby Enjl » Sun Aug 11, 2019 4:35 am

ArtAddictedArchitect wrote:
Sat Aug 10, 2019 11:34 pm
okay, but how do you add powerups? i cant find a tutorial anywhere and really confused
Any library that isn't advertised as a pack is loaded by using require(libraryname), like is used for some documentation on the handbook.
ImageImageImageImage
ImageImageImageImageImageImage

Abrahamsitokun2004
Koopa Troopa
Koopa Troopa
Posts: 23
Joined: Fri Jul 26, 2019 3:41 am
Flair: Play smbx, it's the best, and there will be more!
Current Project: SM: Adventure
Chat Username: Abrahamsitokun

Re: How to use NPC/Block/Other Packs from here

Postby Abrahamsitokun2004 » Sat Sep 07, 2019 7:48 pm

I need help with the super mario 3D world beep block that doesn't clink or change automatically, help

User avatar
Cedur
Blue Yoshi Egg
Blue Yoshi Egg
Posts: 4846
Joined: Tue Jun 28, 2016 10:14 am
Flair: Save climate, cut fridays for whole-week future
Current Project: various playthroughs and tests

Re: How to use NPC/Block/Other Packs from here

Postby Cedur » Sun Sep 08, 2019 9:37 am

Abrahamsitokun2004 wrote:
Sat Sep 07, 2019 7:48 pm
I need help with the super mario 3D world beep block that doesn't clink or change automatically, help

1) do you understand that your concerns can't be helped within just some hours, even if this community were more active and had more scripters? It's just annoying to see a cry for help in every post of yours

[EDIT: forget whatever else I wrote here, thanks Enjl]
Last edited by Cedur on Sun Sep 08, 2019 9:40 am, edited 2 times in total.
Image

Supports: show
Image
Image
Image
Image

Image

Still using the legacy editor? Get SMBX2 and PGE, it will improve your experience significantly. Here's why.

iphtechnologies wrote: NEO super mario world x is a really nice game. This Episode is 2,7 GB large at the moment.That`s crazy!
Please find similar post:
[ads]

If you're not smart enough to plan ahead, then DOOM ON YOU!

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

Re: How to use NPC/Block/Other Packs from here

Postby Enjl » Sun Sep 08, 2019 9:38 am

Cedur wrote:
Sun Sep 08, 2019 9:37 am
2) how would you expect "beep blocks" to work in 2D anyway? Just blocks that appear and disappear in a rhythm? This can be done without any coding (just think of layers and events and e.g. look at the level "9-6 Rhythm Road" from Super Mario Star Expedition)
viewtopic.php?f=101&t=24259
Abrahamsitokun2004 wrote:
Sat Sep 07, 2019 7:48 pm
I need help with the super mario 3D world beep block that doesn't clink or change automatically, help
Follow the instructions in this thread and the beep block thread. The latter points towards an example.lua included in the beep block pack download which details the code you need to put into luna.lua. I can't really help much outside of repeating where the instructions are located, since all the necessary information is already where you would expect it to be: The beep block thread and this forum.
ImageImageImageImage
ImageImageImageImageImageImage

Abrahamsitokun2004
Koopa Troopa
Koopa Troopa
Posts: 23
Joined: Fri Jul 26, 2019 3:41 am
Flair: Play smbx, it's the best, and there will be more!
Current Project: SM: Adventure
Chat Username: Abrahamsitokun

Re: How to use NPC/Block/Other Packs from here

Postby Abrahamsitokun2004 » Mon Sep 09, 2019 10:09 am

Look, nothing yet. Explain to me, I don't understand


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 1 guest