Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

SNESLuigi9768
Shy Guy
Shy Guy
Posts: 7
Joined: Thu May 18, 2023 8:51 pm
Pronouns: he/him

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby SNESLuigi9768 » Tue Aug 01, 2023 11:28 pm

I found an issue with the update; at line 148 you forgot to put an "r" in registerEvent(minHUD, "onPostPlayerKill")

Blake Izayoi
Volcano Lotus
Volcano Lotus
Posts: 598
Joined: Sun Feb 23, 2014 1:55 pm
Flair: Sakuya's Husband
Pronouns: He / Him
Contact:

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby Blake Izayoi » Wed Aug 02, 2023 12:50 am

SNESLuigi9768 wrote:
Tue Aug 01, 2023 11:28 pm
I found an issue with the update; at line 148 you forgot to put an "r" in registerEvent(minHUD, "onPostPlayerKill")
Whoops! How embarrassing!! I've updated the code to properly work now. Thank you!

xsall
Goomba
Goomba
Posts: 1
Joined: Mon Dec 20, 2021 7:58 am
Pronouns: they/them

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby xsall » Fri Aug 04, 2023 6:55 pm

Does this work with MrDoubleA's Yoshi playable? If not, are you planning to add compatability?

Blake Izayoi
Volcano Lotus
Volcano Lotus
Posts: 598
Joined: Sun Feb 23, 2014 1:55 pm
Flair: Sakuya's Husband
Pronouns: He / Him
Contact:

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby Blake Izayoi » Mon Aug 07, 2023 6:27 pm

SpookWorm wrote:
Fri Aug 04, 2023 6:55 pm
Does this work with MrDoubleA's Yoshi playable? If not, are you planning to add compatibility?
It does not. There are no plans to add compatibility as I do not know how MrDoubleA's Yoshi works, and the code is most likely too advance for me to read properly at my skill level. Maybe in the future I can add compatibility, but that won't be for a long while.

HAK0TA538
Bob-Omb
Bob-Omb
Posts: 22
Joined: Wed Oct 18, 2023 11:57 pm
Flair: Lua is cool
Pronouns: He/Him

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby HAK0TA538 » Mon Nov 13, 2023 12:51 am

How do i enable the dragon coin counter


Image

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 611
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby mariobrigade2018 » Tue Nov 14, 2023 3:21 am

HAK0TA538 wrote:
Mon Nov 13, 2023 12:51 am
How do i enable the dragon coin counter


Image
That's the Star Coin Counter. Not a Dragon Coin Counter.

HAK0TA538
Bob-Omb
Bob-Omb
Posts: 22
Joined: Wed Oct 18, 2023 11:57 pm
Flair: Lua is cool
Pronouns: He/Him

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby HAK0TA538 » Thu Nov 16, 2023 12:51 am

mariobrigade2018 wrote:
Tue Nov 14, 2023 3:21 am
HAK0TA538 wrote:
Mon Nov 13, 2023 12:51 am
How do i enable the dragon coin counter


Image
That's the Star Coin Counter. Not a Dragon Coin Counter.
Then why do the settings say "dragon coin"

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 611
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby mariobrigade2018 » Thu Nov 16, 2023 12:57 am

HAK0TA538 wrote:
Thu Nov 16, 2023 12:51 am
mariobrigade2018 wrote:
Tue Nov 14, 2023 3:21 am
HAK0TA538 wrote:
Mon Nov 13, 2023 12:51 am
How do i enable the dragon coin counter


Image
That's the Star Coin Counter. Not a Dragon Coin Counter.
Then why do the settings say "dragon coin"
Don’t know. That’s the function name that the creator made. Star Coins are better than Dragon Coins, anyways.

Blake Izayoi
Volcano Lotus
Volcano Lotus
Posts: 598
Joined: Sun Feb 23, 2014 1:55 pm
Flair: Sakuya's Husband
Pronouns: He / Him
Contact:

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby Blake Izayoi » Sun Nov 19, 2023 2:16 pm

HAK0TA538 wrote:
Mon Nov 13, 2023 12:51 am
How do i enable the dragon coin counter
Image
I apologize for the confusion, the "Dragon Coin" counter actually uses the Star Coins NPCs as they are far more versatile than the actual Dragon Coins. As for why in-code the variables are called "Dragon Coin", it's because in all of my projects I've worked on, I've reskinned Star Coins to look like Dragon Coins. That's a silly error on my part, and I'll edit and update the code later today so that future users of the Minimalist HUD don't get confused.

Sorry!

HAK0TA538
Bob-Omb
Bob-Omb
Posts: 22
Joined: Wed Oct 18, 2023 11:57 pm
Flair: Lua is cool
Pronouns: He/Him

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby HAK0TA538 » Mon Nov 20, 2023 4:43 pm

Blake Izayoi wrote:
Sun Nov 19, 2023 2:16 pm
HAK0TA538 wrote:
Mon Nov 13, 2023 12:51 am
How do i enable the dragon coin counter
Image
I apologize for the confusion, the "Dragon Coin" counter actually uses the Star Coins NPCs as they are far more versatile than the actual Dragon Coins. As for why in-code the variables are called "Dragon Coin", it's because in all of my projects I've worked on, I've reskinned Star Coins to look like Dragon Coins. That's a silly error on my part, and I'll edit and update the code later today so that future users of the Minimalist HUD don't get confused.

Sorry!
Its alright, i actually ended up doing the same thing in my project after i found that out lol. The demo's out for the project i was working on with it if you wanna check it out.

Cornholio309
Koopa
Koopa
Posts: 19
Joined: Fri Nov 06, 2015 4:26 pm

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby Cornholio309 » Wed Feb 28, 2024 7:23 pm

Been using this with New Great Castle Adventure with livesAltStyle set to 2 for the infinite lives + death counter. It works really nicely with that episode's structure! Also combined it with customReserve.lua by commenting out code in minHUD that related to drawing the graphics for the item reserve. The end result is something that's pretty close to a couple of modern Mario World hacks that use a similar HUD that instantly give the player the powerup when they press Select while also giving me another Item Reserve slot to play with SMBX's larger powerup count. Will probably be using this in any Episodes/Levels I release!

My only personal request/question is if anybody would be familiar with how to modify the code so the death counter total is subtracted from if the player collects a 1-up/obtains a life through another method (like 100 coins). I think this would allow 1-up Mushrooms to still have a nice purpose in Episodes that feature a life system since otherwise 1-Ups that are placed inside the levels are functionally useless with this feature enabled (such as New Great Castle Adventure's Goomba Grounds - there's a small Koopa shell section that rewards a 1-Up there).

It would allow a player to 'clean up' previous deaths if they so desired after beating an Episode (or they can start a new save file in the same Episode and do it that way). I'm not sure how SMBX calculates adding/subtracting lives and if this can be printed/saved to the overall death count.

Blake Izayoi
Volcano Lotus
Volcano Lotus
Posts: 598
Joined: Sun Feb 23, 2014 1:55 pm
Flair: Sakuya's Husband
Pronouns: He / Him
Contact:

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby Blake Izayoi » Wed Mar 06, 2024 3:57 pm

Cornholio309 wrote:
Wed Feb 28, 2024 7:23 pm
My only personal request/question is if anybody would be familiar with how to modify the code so the death counter total is subtracted from if the player collects a 1-up/obtains a life through another method (like 100 coins).

I'm sure this is possible, but it wouldn't be very simple (at least for someone who's pretty new to coding such as myself). I could look into this in the distant future if you would like me to, however I do have quite a bit on my plate at the moment so it wouldn't be for a while.
I'm glad you're enjoying the Minimalist HUD! Thank you for using it!

andrei312g
Shy Guy
Shy Guy
Posts: 7
Joined: Tue Oct 22, 2024 10:38 am
Pronouns: he/him

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby andrei312g » Mon Dec 23, 2024 3:57 pm

I tried to load this HUD into a level and it gave me this debug error.
Image

this is what I tried to do in luna.lua
Image

let me know what I did wrong with the lua file

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 611
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby mariobrigade2018 » Mon Dec 23, 2024 5:01 pm

andrei312g wrote:
Mon Dec 23, 2024 3:57 pm
I tried to load this HUD into a level and it gave me this debug error.
Image

this is what I tried to do in luna.lua
Image

let me know what I did wrong with the lua file
Try finding a file called “progress.json” and deleting it.

andrei312g
Shy Guy
Shy Guy
Posts: 7
Joined: Tue Oct 22, 2024 10:38 am
Pronouns: he/him

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby andrei312g » Wed Dec 25, 2024 12:03 pm

mariobrigade2018 wrote:
Mon Dec 23, 2024 5:01 pm
andrei312g wrote:
Mon Dec 23, 2024 3:57 pm
I tried to load this HUD into a level and it gave me this debug error.
Image

this is what I tried to do in luna.lua
Image

let me know what I did wrong with the lua file
Try finding a file called “progress.json” and deleting it.
still the same error. is there something wrong with the script or the latest version of this game?

Image

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 611
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby mariobrigade2018 » Wed Dec 25, 2024 1:09 pm

andrei312g wrote:
Wed Dec 25, 2024 12:03 pm
mariobrigade2018 wrote:
Mon Dec 23, 2024 5:01 pm
andrei312g wrote:
Mon Dec 23, 2024 3:57 pm
I tried to load this HUD into a level and it gave me this debug error.
Image

this is what I tried to do in luna.lua
Image

let me know what I did wrong with the lua file
Try finding a file called “progress.json” and deleting it.
still the same error. is there something wrong with the script or the latest version of this game?

Image
send the level folder.

andrei312g
Shy Guy
Shy Guy
Posts: 7
Joined: Tue Oct 22, 2024 10:38 am
Pronouns: he/him

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby andrei312g » Wed Dec 25, 2024 5:04 pm

mariobrigade2018 wrote:
Wed Dec 25, 2024 1:09 pm
andrei312g wrote:
Wed Dec 25, 2024 12:03 pm
mariobrigade2018 wrote:
Mon Dec 23, 2024 5:01 pm


Try finding a file called “progress.json” and deleting it.
still the same error. is there something wrong with the script or the latest version of this game?

Image
send the level folder.
here
https://mega.nz/file/IOMX1DZI#Yoc0gKW40 ... izLHPkgmr4

I made an example level.

Blake Izayoi
Volcano Lotus
Volcano Lotus
Posts: 598
Joined: Sun Feb 23, 2014 1:55 pm
Flair: Sakuya's Husband
Pronouns: He / Him
Contact:

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby Blake Izayoi » Sat Dec 28, 2024 12:22 pm

andrei312g wrote:
Mon Dec 23, 2024 3:57 pm
let me know what I did wrong with the lua file
You're loading the script incorrectly. What you need to add to luna.lua is the following:

Code: Select all

require('minHUD')
You don't need to add anything else.

andrei312g
Shy Guy
Shy Guy
Posts: 7
Joined: Tue Oct 22, 2024 10:38 am
Pronouns: he/him

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby andrei312g » Wed Jan 01, 2025 8:45 am

Blake Izayoi wrote:
Sat Dec 28, 2024 12:22 pm
andrei312g wrote:
Mon Dec 23, 2024 3:57 pm
let me know what I did wrong with the lua file
You're loading the script incorrectly. What you need to add to luna.lua is the following:

Code: Select all

require('minHUD')
You don't need to add anything else.
still the same error.

Image

idk what causes this error. even I did right on luna.lua, I get still the same error. I'm trying to run this script on SMBX2 beta 5.

Pixelated_Perfection
Bot
Bot
Posts: 53
Joined: Fri Feb 25, 2022 1:23 pm
Pronouns: Any/All

Re: Minimalist HUD [v2.1] - Hello, Extra Screen Room!

Postby Pixelated_Perfection » Thu Jan 02, 2025 4:28 pm

andrei312g wrote:
Wed Jan 01, 2025 8:45 am
Blake Izayoi wrote:
Sat Dec 28, 2024 12:22 pm
andrei312g wrote:
Mon Dec 23, 2024 3:57 pm
let me know what I did wrong with the lua file
You're loading the script incorrectly. What you need to add to luna.lua is the following:

Code: Select all

require('minHUD')
You don't need to add anything else.
still the same error.

Image

idk what causes this error. even I did right on luna.lua, I get still the same error. I'm trying to run this script on SMBX2 beta 5.
if it helps any, this is how i have it set up in my level's lua file (this is how i do it for all the codes not just this one)
Image


Return to “LunaLua”

Who is online

Users browsing this forum: Miju and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari