[NPC Pack] Kracko Jr

Share and discuss custom LunaLua code and content packs for SMBX2.
User avatar
WhimWidget
Shy Guy
Shy Guy
Posts: 9
Joined: Sun Jun 02, 2019 7:52 pm
Chat Username: WhimWidget

[NPC Pack] Kracko Jr

Postby WhimWidget » Sun Jun 02, 2019 8:02 pm

My first post is to share this. Hi there!

Sharing a singleton NPC (one NPC instance that persists though the stage).
Made him versatile in how you can use him across the stage.
He comes with 2 additional NPCs you can place to control how he acts when you pass them.
You can change what they do through the properties window
You can stack them together to have him do a sequence of actions.
Image

There are a lot of options to choose from and experiment with.
Hope you have fun using him!
There's also an example stage included.

The file itself is here:
https://cdn.discordapp.com/attachments/ ... C_pack.zip
Image Image Image
Last edited by WhimWidget on Tue Jul 02, 2019 11:50 am, edited 8 times in total.

User avatar
MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6115
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: Kracko Jr

Postby MECHDRAGON777 » Sun Jun 02, 2019 9:31 pm

Not sure how you mean with using NPC control points, but it looks interesting in what can be done based on the gifs.

ImageImageImage

Image

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

Re: Kracko Jr

Postby Enjl » Mon Jun 03, 2019 1:18 am

Huh? How did you get extra settings to work on a custom range npc?

Ohh you ask people to modify basegame directly... rip.
I wanna make methods for that available in the future without doing that, for the record. Copying things into basegame is on a scale from "iffy" to "do not".
ImageImageImageImage
ImageImageImageImageImageImage

User avatar
Hoeloe
Grinder
Grinder
Posts: 1041
Joined: Sat Oct 03, 2015 6:18 pm
Flair: The Codehaus Girl
Current Project: A2XT Episode 2

Re: Kracko Jr

Postby Hoeloe » Mon Jun 03, 2019 7:47 am

As Enjl said - please do not modify basegame by sticking files in there. It's just opening a whole can of worms that's not a good idea to get into.

User avatar
sammerbro
Lakitu
Lakitu
Posts: 404
Joined: Sat Sep 22, 2018 9:53 am
Flair: playing and making SMBX stuff
Current Project: Sam Lev Boss Rush 5
Contact:

Re: Kracko Jr

Postby sammerbro » Mon Jun 03, 2019 7:53 am

I love the Kirby bosses, so will defiantly use this in one of my future levels
Image
Image

User avatar
WhimWidget
Shy Guy
Shy Guy
Posts: 9
Joined: Sun Jun 02, 2019 7:52 pm
Chat Username: WhimWidget

Re: Kracko Jr

Postby WhimWidget » Mon Jun 03, 2019 10:26 am

Yeah. I was iffy about it too and totally wanted an alternative, but it was the only way to make it functional ATM since I started making it before I realised the json files couldn't just be put in the level folder and made to work.
I definitely intended to update it to not require that when the extra-settings thing is added.

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

Re: Kracko Jr

Postby Enjl » Mon Jun 03, 2019 10:29 am

Hopefully that shouldn't be too long of a wait! I gave Wohlstand a quick reminder about it earlier today, so fingers crossed that he has time to add it soon so that we can guarantee it in the next release.

The NPC itself looks really cool, for the record. I'm eager to see a level utilizing it (not so eager that it'd cause the npc settings file to propagate into basegame folders, but eager enough to see a video of an expanded demo or whatnot).

E: Level & episode-wide extra settings have been added to the repo, will come with the next release!
ImageImageImageImage
ImageImageImageImageImageImage

User avatar
MegaDood
Birdo
Birdo
Posts: 1444
Joined: Wed Nov 01, 2017 2:43 am
Current Project: Super Mario Bros. Twisted Realities
Chat Username: Mega

Re: [NPC Pack] Kracko Jr

Postby MegaDood » Tue Jun 04, 2019 3:02 am

This looks amazing! It could work so well for not just a boss buildup, but as a main level gimmick!
My Project:
Image
I don't really have a signature but here's what I support:

Image
Image
Image

User avatar
WhimWidget
Shy Guy
Shy Guy
Posts: 9
Joined: Sun Jun 02, 2019 7:52 pm
Chat Username: WhimWidget

Re: [NPC Pack] Kracko Jr

Postby WhimWidget » Sun Jun 23, 2019 10:41 am

Marking the release of MAGLX2 PAL:
Updated!

No longer asks you to move the extra files. Júst copy them to your level or world folder and presto!
The control points have been simplified. Split them into 2 NPCs to be less confusing. One to trigger and one to be placed adjacent to happen after the main one happens.

A reminder the pack comes with a demo stage.

User avatar
Wiimeiser
Spiny
Spiny
Posts: 59
Joined: Mon Jun 24, 2019 4:36 am
Flair: What?
Chat Username: Wiimeiser

Re: [NPC Pack] Kracko Jr

Postby Wiimeiser » Mon Jun 24, 2019 4:59 am

It seems just changing the NPC IDs from the defaults causes it to stop working. On startup, the game pops up an error saying that "module 'krackojr' not found". I can't screenshot the error for whatever reason (Windows 10's "game mode" would be my guess), but the problem appears to be this line in the Kracko lua file:
local KrackoJr = require("krackojr")
For some reason, something is hardcoding the IDs to the default IDs supplied (751, 752 and 753) and I can't figure out what's causing it. Just changing the filenames does this, but I have no idea why. The string "751" doesn't exist in any file (I checked). I'm confused... This really shouldn't be happening... The readme says it should work... The demo level works fine, though.

User avatar
WhimWidget
Shy Guy
Shy Guy
Posts: 9
Joined: Sun Jun 02, 2019 7:52 pm
Chat Username: WhimWidget

Re: [NPC Pack] Kracko Jr

Postby WhimWidget » Mon Jun 24, 2019 9:20 am

*Facepalm*
I somehow forgot to put "krackojr.lua" in the "KrackoJr Files" for that last update.
With that, it should work regardless of NPC ID.

Sorry about that: Updated the download link!
Either copy that one file ("krackojr.lua") from the demo stage, or download from the download link again.

User avatar
Wiimeiser
Spiny
Spiny
Posts: 59
Joined: Mon Jun 24, 2019 4:36 am
Flair: What?
Chat Username: Wiimeiser

Re: [NPC Pack] Kracko Jr

Postby Wiimeiser » Mon Jun 24, 2019 7:10 pm

I'm not entirely sure why, but just putting it in the main folder breaks it. If it's in a level folder it's fine, but putting it in the main episode folder seems to break the game outright. I wish I had a way to screenshot the errors, but it appears Windows 10's game overlay gets in the way...

EDIT: Had to use a workaround to capture the errors but I got the first one:
https://i.imgur.com/fxw0xxT.png
This appears once per frame until I click "Cancel", at which point the game deletes Kracko Jr and the control points, as well as all the BGO graphics, though at least keyholes still function. I didn't change anything except for the fact the Kracko Jr file are now in the main folder instead of a level subfolder.

I had another error earlier where the contents of the error were different and the level refused to load at all, but I can't seem to reproduce it just by renaming the files...

EDIT2: Turns out clicking Cancel disables all LUA, meaning anything not in the original SMBX no longer works...

User avatar
WhimWidget
Shy Guy
Shy Guy
Posts: 9
Joined: Sun Jun 02, 2019 7:52 pm
Chat Username: WhimWidget

Re: [NPC Pack] Kracko Jr

Postby WhimWidget » Mon Jun 24, 2019 8:06 pm

That wasn't something I was aware could happen. I fixed it either way though ("misc.resolve(string)" for refering to image location, rather than just a string).
I updated the download again. Download that version and replace krackojr.lua with the version in that download and it should work outside of the folder now - as long as all the files are together at least.

User avatar
Wiimeiser
Spiny
Spiny
Posts: 59
Joined: Mon Jun 24, 2019 4:36 am
Flair: What?
Chat Username: Wiimeiser

Re: [NPC Pack] Kracko Jr

Postby Wiimeiser » Mon Jun 24, 2019 8:50 pm

Seems to be working now. Thanks.

User avatar
Murphmario
Mouser
Mouser
Posts: 1932
Joined: Fri Dec 20, 2013 7:07 pm

Re: [NPC Pack] Kracko Jr

Postby Murphmario » Thu Jun 27, 2019 4:40 pm

For whatever reason, he isn't activating whenever I pass by the Control Points. I'm using the test level with the most recent version of SMBX2.
Now taking graphics requests:
https://docs.google.com/forms/d/1urWpFq ... #responses

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

Nothing is coming on Christmas. Why? Because I missed my past promises and should stop putting release dates on my stuff.

User avatar
WhimWidget
Shy Guy
Shy Guy
Posts: 9
Joined: Sun Jun 02, 2019 7:52 pm
Chat Username: WhimWidget

Re: [NPC Pack] Kracko Jr

Postby WhimWidget » Fri Jun 28, 2019 11:31 am

I'll be able to get around to checking that in 3 days time.

User avatar
WhimWidget
Shy Guy
Shy Guy
Posts: 9
Joined: Sun Jun 02, 2019 7:52 pm
Chat Username: WhimWidget

Re: [NPC Pack] Kracko Jr

Postby WhimWidget » Tue Jul 02, 2019 11:50 am

Looked into it.
I just decided to make the ZIP from scratch and tested it.
Download it again now - it should work fine.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests