Page 1 of 2
[NPC Pack] Kracko Jr
Posted: Sun Jun 02, 2019 8:02 pm
by WhimWidget
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.
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
Beta 4 compatible version:
https://www.dropbox.com/s/y8oyka8i7x1ie ... k.zip?dl=0

Re: Kracko Jr
Posted: Sun Jun 02, 2019 9:31 pm
by MECHDRAGON777
Not sure how you mean with using NPC control points, but it looks interesting in what can be done based on the gifs.
Re: Kracko Jr
Posted: Mon Jun 03, 2019 1:18 am
by Emral
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".
Re: Kracko Jr
Posted: Mon Jun 03, 2019 7:47 am
by Hoeloe
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.
Re: Kracko Jr
Posted: Mon Jun 03, 2019 7:53 am
by sammerbro
I love the Kirby bosses, so will defiantly use this in one of my future levels
Re: Kracko Jr
Posted: Mon Jun 03, 2019 10:26 am
by WhimWidget
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.
Re: Kracko Jr
Posted: Mon Jun 03, 2019 10:29 am
by Emral
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!
Re: [NPC Pack] Kracko Jr
Posted: Tue Jun 04, 2019 3:02 am
by MegaDood
This looks amazing! It could work so well for not just a boss buildup, but as a main level gimmick!
Re: [NPC Pack] Kracko Jr
Posted: Sun Jun 23, 2019 10:41 am
by WhimWidget
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.
Re: [NPC Pack] Kracko Jr
Posted: Mon Jun 24, 2019 4:59 am
by Wiimeiser
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.
Re: [NPC Pack] Kracko Jr
Posted: Mon Jun 24, 2019 9:20 am
by WhimWidget
*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.
Re: [NPC Pack] Kracko Jr
Posted: Mon Jun 24, 2019 7:10 pm
by Wiimeiser
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...
Re: [NPC Pack] Kracko Jr
Posted: Mon Jun 24, 2019 8:06 pm
by WhimWidget
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.
Re: [NPC Pack] Kracko Jr
Posted: Mon Jun 24, 2019 8:50 pm
by Wiimeiser
Seems to be working now. Thanks.
Re: [NPC Pack] Kracko Jr
Posted: Thu Jun 27, 2019 4:40 pm
by Murphmario
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.
Re: [NPC Pack] Kracko Jr
Posted: Fri Jun 28, 2019 11:31 am
by WhimWidget
I'll be able to get around to checking that in 3 days time.
Re: [NPC Pack] Kracko Jr
Posted: Tue Jul 02, 2019 11:50 am
by WhimWidget
Looked into it.
I just decided to make the ZIP from scratch and tested it.
Download it again now - it should work fine.
Re: [NPC Pack] Kracko Jr
Posted: Sat Mar 21, 2020 2:10 pm
by Chilly14
These NPCs are horribly broken in Beta 4.
Re: [NPC Pack] Kracko Jr
Posted: Wed Apr 22, 2020 4:42 am
by Keroro04
Same. When they're fixed tho, can we get the presentation level of Kracko Jr. for Beta 4 too?
Re: [NPC Pack] Kracko Jr
Posted: Mon May 04, 2020 12:04 pm
by WhimWidget
Okay, everything should be compatible with Beta 4 now.
I kept the first link for anyone still using the MAGLX3 preview and PAL builds though