Reserve Powerup for Toad, Peach, Link

This is the place for discussion and support for LunaLua and related modifications and libraries.
Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
User avatar
yoshiegg
Swooper
Swooper
Posts: 113
Joined: Mon Jan 25, 2016 9:20 am
Current Project: Super Mario 64 PC
Location: Germany

Reserve Powerup for Toad, Peach, Link

Postby yoshiegg » Tue Mar 12, 2019 8:16 am

Hello there,

Here comes finally, after losing interest some years ago and starting to work on my idea again some days ago after an interesting conversation with an other coder which motivated me to continue coding a Code implementing Mario and Luigi's reserve sytem for Toad, Peach, Link and Maybe some of the new Chars (Wario,Megaman and bowser tested and not functioning due
to either a menu Opening when select is pressed or the char having another reserve powerup/npc-system).
Now, I've finished Version 2, which includes support for 2 Players, Support for Superflower and Propeller mushroom with working codes included and fixed item box Placement for one Player and for two Players when screen is not split and neither Player is Mario or Luigi.

Furhermore, I want to inform you, what I plan to add in V 3.0 or 2.1, depends on how big changes will be when I'll release it:

-Fixed reserve Placement in splitscreen
-support for other powerups (bomb suit, hammer suit and Maybe mole, beetroot and phoenix suit by tempest if I can get them to work with 2p and all Chars and boomerang suit for Peach, Mario, Luigi and Link and cloudflower if I can get it to work for all chars
-drop functionallity which can be toggled on and off

Additionally, there comes a Code that gives all characters the powerup-system from NSMBDS, now for Player 2 as well. Unfortunately, Audio in 2nd Video is not synchrone but I didn't Change any Sound files so that's just my SMBX lagging a bit.


But now I want to finally grant you a glance into how it works ( timer api and checking numbers not present in download, ): https://youtu.be/VFBRu9_Szv4.1.0
V 2.0:

And here's finally the download: V.1.1: http://www.mediafire.com/file/73rsgb58y ... e.zip/file
V 2.0: http://www.mediafire.com/file/13t32od4v ... 0.zip/file
Last edited by yoshiegg on Fri Mar 22, 2019 1:33 pm, edited 5 times in total.

User avatar
Natsu
Ludwig von Koopa
Ludwig von Koopa
Posts: 2945
Joined: Sat Dec 21, 2013 2:40 pm
Current Project: It's a secret to everybody ...
Location: Uruguay
Chat Username: Kuma-san

Re: Resrve Powerup for Toad, Peach, Link

Postby Natsu » Tue Mar 12, 2019 10:14 am

I think a visual representation of the reserve box in action would be nice.

As for making the characters keep the power-ups in-between levels, you need the data class. The only way to store data and use it in other levels, or the world map even.
Discord quotes
Trace: You're a capable boi

User avatar
yoshiegg
Swooper
Swooper
Posts: 113
Joined: Mon Jan 25, 2016 9:20 am
Current Project: Super Mario 64 PC
Location: Germany

Re: Resrve Powerup for Toad, Peach, Link

Postby yoshiegg » Tue Mar 12, 2019 5:05 pm

Natsu wrote:
Tue Mar 12, 2019 10:14 am
I think a visual representation of the reserve box in action would be nice.

As for making the characters keep the power-ups in-between levels, you need the data class. The only way to store data and use it in other levels, or the world map even.
Thanks for mentioning I forgot the Video when reposting the Topic. Unfortunately, I have no idea of how to use the data class but will check the corresponding section on the PGE Wiki and if that doesn't help, ask on the Forum for help.

User avatar
PixelPest
Edward
Edward
Posts: 7128
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Current Project: Boom Boom Evolution
Location: Canada, Eh?
Chat Username: PixelPest
Contact:

Re: Reserve Powerup for Toad, Peach, Link

Postby PixelPest » Thu Mar 14, 2019 12:03 am

I feel like that's not a great choice for placement for the item box. It makes the HUD no longer have equal spacing on each side. I think it would be better to place it either underneath the hearts (and then drop functionality would make sense as would be expected with the itembox but I didn't see it in the video) or above the hearts with the hearts redrawn lower

horehey
Cheep-Cheep
Cheep-Cheep
Posts: 19
Joined: Thu Feb 21, 2019 7:44 am

Re: Reserve Powerup for Toad, Peach, Link

Postby horehey » Thu Mar 14, 2019 3:47 am

Perfect, i've been wanting for something like this
but how can i use it?

User avatar
Eri7
Grinder
Grinder
Posts: 1089
Joined: Sat Jan 28, 2017 4:48 pm
Flair: Hard work pays off sooner or later
Current Project: Super Mario Nova Part 1(38A) + ????
Location: Bonn , Germany/Deutschland
Chat Username: Eri7
Contact:

Re: Reserve Powerup for Toad, Peach, Link

Postby Eri7 » Thu Mar 14, 2019 9:38 am

Hey that's a useful script, it will definitely be useful for some people... maybe for me...
Image
Image
Image
Image
Image

I support:
Image

User avatar
MmmMario
Spiny
Spiny
Posts: 57
Joined: Sun Aug 05, 2018 6:28 am
Flair: Yeet
Current Project: My current project is living. Trust me, it's hard.
Chat Username: TawPawNaw

Re: Reserve Powerup for Toad, Peach, Link

Postby MmmMario » Sat Mar 16, 2019 3:44 am

Well, we finally have both hearts for M&L and reserve p-ups for Toad, Peach and Link. Nice!

Added in 3 minutes 29 seconds:
And also I don't know where this code for a propeller suit and cloud flower are. Can someone pls link them?
Spoiler: show
Here's Johnny

Image

I will bore everyone out of their mind with my questions!!!

Spoiler: show
Does anyone else have the PostImages problem? Frankly, it annoys me that sometimes I can't view pictures.
Join mine and MemeLord's(PotatoMario's) server here: https://discord.gg/PUTNGKS

Westretroman
Koopa Shell
Koopa Shell
Posts: 637
Joined: Tue Mar 29, 2016 6:50 pm

Re: Reserve Powerup for Toad, Peach, Link

Postby Westretroman » Sat Mar 16, 2019 9:06 am

MmmMario wrote:
Sat Mar 16, 2019 3:48 am
Well, we finally have both hearts for M&L and reserve p-ups for Toad, Peach and Link. Nice!

Added in 3 minutes 29 seconds:
And also I don't know where this code for a propeller suit and cloud flower are. Can someone pls link them?
Cloud Flower: viewtopic.php?f=87&t=16490&p=238519&hilit=Cloud#p238519
Propeller Powerup:
viewtopic.php?f=31&t=19448&p=292253&hil ... up#p292253

Beware, though, the propeller may not be working but I haven't checked.

User avatar
yoshiegg
Swooper
Swooper
Posts: 113
Joined: Mon Jan 25, 2016 9:20 am
Current Project: Super Mario 64 PC
Location: Germany

Re: Reserve Powerup for Toad, Peach, Link

Postby yoshiegg » Sat Mar 16, 2019 1:44 pm

Added in 3 minutes 29 seconds:
And also I don't know where this code for a propeller suit and cloud flower are. Can someone pls link them?
Cloud Flower: https://www.supermariobrosx.org/forums/viewtopic.php?f=87&t=16490&p=238519&hilit=Cloud#p238519
Propeller Powerup:
https://www.supermariobrosx.org/forums/viewtopic.php?f=31&t=19448&p=292253&hilit=Powerup#p292253

Beware, though, the propeller may not be working but I haven't checked.
Thanks for linking these powerups. However, I'm not sure if the original scripts work for Toad either but am working right now on moddifying them so they do and have finished with Propeller and Superflower.However,the cloudflower seems a lot more difficult so I may add it later if I manage to get it to work at all.So for now I'll Focus on getting it to look alright when used with splitscreen.

Reserve Powerup for Toad, Peach, Link How to use Camera Memory Offset 0x20?
Hello Guys,

Finally got the reserve sytem to work with 2 Player mode.However, my box for player2 gets offscreen in splitscreen. However, I found the camera class and the Is Split Screen? Offset address. So I tried this but got an error saying Camera class not having static mem. address Offset:

Code: Select all

if Camera:mem(0x020,FIELD_BOOL) == true then
As I have no idea whether this value could solve that split screen issue and if so how to use it properly I'd really apreciated if someone could tell me how to use it or if I have to do it with Player 1.x > player2.x + z or player1.x < Player2.x - z with z being the first Pixel after which screen is split. I don't know the exact difference after which screen splits though so feel free to tell me if you do.

User avatar
yoshiegg
Swooper
Swooper
Posts: 113
Joined: Mon Jan 25, 2016 9:20 am
Current Project: Super Mario 64 PC
Location: Germany

Re: Reserve Powerup for Toad, Peach, Link

Postby yoshiegg » Sun Mar 17, 2019 8:52 am

PixelPest wrote:
Thu Mar 14, 2019 12:03 am
I feel like that's not a great choice for placement for the item box. It makes the HUD no longer have equal spacing on each side. I think it would be better to place it either underneath the hearts (and then drop functionality would make sense as would be expected with the itembox but I didn't see it in the video) or above the hearts with the hearts redrawn lower
For the placement, you're absolutely right so it will be changed in next update. Have placed it now underneath the hearts. For the drop functionallity: that's something I'll try as well as I think it's just spawning the powerup-npc in the reserve, setting its x-speed to 0 and its y speed to some value if the dropItemKey is pressed.
However, I have to fix all possible Scenarios of placement of item reserve first, especially with the support of 2 Player mode which I want to add in the next update. There has to be considered the splitscreen as well as the case where one player uses Mario or Luigi and the other one Link, Peach or Toad. However, I don't know exactly when I have how much time I have the next few weeks due to exams and me moving houses to the city where I'm studying during the week (except for holidays)


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests