Page 1 of 1

How to use NPC/Block/Other Packs from here

Posted: Sat Mar 30, 2019 8:04 am
by Enjl
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!

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

Posted: Sun May 26, 2019 3:05 pm
by 8lue Storm
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?

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

Posted: Sun May 26, 2019 3:34 pm
by Enjl
You're right, oops! Fixing.

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

Posted: Sat Aug 10, 2019 11:34 pm
by ArtAddictedArchitect
okay, but how do you add powerups? i cant find a tutorial anywhere and really confused

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

Posted: Sun Aug 11, 2019 1:20 am
by Core
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

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

Posted: Sun Aug 11, 2019 4:35 am
by Enjl
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.

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

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

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

Posted: Sun Sep 08, 2019 9:37 am
by Cedur
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]

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

Posted: Sun Sep 08, 2019 9:38 am
by Enjl
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.

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

Posted: Mon Sep 09, 2019 10:09 am
by Abrahamsitokun2004
Look, nothing yet. Explain to me, I don't understand

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

Posted: Sat Jun 13, 2020 11:46 pm
by Xboy1
How do you make custom death sprites, like a goomba being squished, and make the sprites flip when the NPC turns around?
NVM I found it out on my own, but I still don't know about the custom death sprite