Banner
Views: 992,546,560
Time:
22 users online: ASMagician Maks, BanzaiChuck, Captain 3, danthaman4671, Darknubs, edgar, GRIMMKIN, Hat Kid, Kaio Henrique,  Kevin, Koopenstein, le4che, Luxari0n, margot, Pancake001, Para_0,  quietmason, Random Internet Name, Ringo, Sixcorby, Skewer, wulv257 - Guests: 93 - Bots: 140 Users: 54,439 (2,080 active)
Latest: ExelD
Tip: You can edit the properties of the original sprites using Tweaker.
Not logged in.
Disable sending powerups to reserve unless from a shop block
Forum Index - SMW Hacking - Requests - Archived Requests - Disable sending powerups to reserve unless from a shop block
Tags:
Pages: « 1 » Link
Name
Disable sending powerups to reserve unless from a shop block

Type
Patch

Description
A patch that would prevent powerups from being sent to the reserve box when Mario grabs them normally but allows the reserve box to still be filled through other means, such as a shop block (specifically, this one https://www.smwcentral.net/?p=section&a=details&id=3851) It would also ideally be compatible with other powerup/status bar patches such as lx5's custom powerups or the MessageBox in Minimalist Status Bar patch.

References
An example of what it should look like is in this video of Super Mario TKO. In this hack, grabbing a powerup in a level never sends it to the item box, and at 6:08, Mario hits a block that gives him a one-use powerup. This is the kind of effect I would like to see in patch form.

That one is a simple hex edit:
Code
org $01C538
NOP #3

The information on the ROM Map mention it will disable the item box entirely but it actually only disables items from being put into the item box.
Originally posted by MarioFanGamer
That one is a simple hex edit:
Code
org $01C538
NOP #3

The information on the ROM Map mention it will disable the item box entirely but it actually only disables items from being put into the item box.

Thank you for your reply, but this code doesn't seem to work correctly. On the rom I use for my hack, it breaks the powerup interaction, making it impossible to grab any powerups as far as I can tell. I tried patching it to a barely modified rom as well, and it resulted in powerups acting weird (crashing the game in some cases) and the item box worked but just sent out broken random sprites. Unless I did something wrong, the code simply doesn't work how I would hope. Again, I really appreciate your reply! Hopefully I just did something wrong.
Originally posted by Evernn
Thank you for your reply, but this code doesn't seem to work correctly. On the rom I use for my hack, it breaks the powerup interaction, making it impossible to grab any powerups as far as I can tell. I tried patching it to a barely modified rom as well, and it resulted in powerups acting weird (crashing the game in some cases) and the item box worked but just sent out broken random sprites. Unless I did something wrong, the code simply doesn't work how I would hope. Again, I really appreciate your reply! Hopefully I just did something wrong.

Ah, whoops, I accidentally took the wrong address (took the start of the routine instead of where the item gets stored). That one is the correct one:
Code
org $01C545
NOP #3

Edit: Alternatively, you can use the following code (the latter overwrites the former) since it also prevents the item in item box sound to play:
Code
org $01C543
db $80
Originally posted by MarioFanGamer
Originally posted by Evernn
Thank you for your reply, but this code doesn't seem to work correctly. On the rom I use for my hack, it breaks the powerup interaction, making it impossible to grab any powerups as far as I can tell. I tried patching it to a barely modified rom as well, and it resulted in powerups acting weird (crashing the game in some cases) and the item box worked but just sent out broken random sprites. Unless I did something wrong, the code simply doesn't work how I would hope. Again, I really appreciate your reply! Hopefully I just did something wrong.

Ah, whoops, I accidentally took the wrong address (took the start of the routine instead of where the item gets stored). That one is the correct one:
Code
org $01C545
NOP #3

Edit: Alternatively, you can use the following code (the latter overwrites the former) since it also prevents the item in item box sound to play:
Code
org $01C543
db $80


This code works perfectly on a clean rom, however, it makes no difference on the rom I'm using for my hack, and powerups are still sent to the item box. If I had to guess, it's something to do with Lx5's powerups running code that overwrites the patch you typed out? I did some digging through that patches files and found it does have code that messes with the item box. I might try adding the code you sent to that .asm file and see if that helps.

Thanks again for helping me out, I appreciate it a ton!
Ah, that makes sense since it uses more powerups so the vanilla code has to be changed. In that case, you have to change item_box_engine.asm under powerup_files and change line 152 (which should be beq .noitem) to bra .noitem.
Originally posted by MarioFanGamer
Ah, that makes sense since it uses more powerups so the vanilla code has to be changed. In that case, you have to change item_box_engine.asm under powerup_files and change line 152 (which should be beq .noitem) to bra .noitem.


This worked perfectly! It's exactly how I imagined it would work. Thanks a bunch, MarioFanGamer!
Pages: « 1 » Link
Forum Index - SMW Hacking - Requests - Archived Requests - Disable sending powerups to reserve unless from a shop block

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2022 - SMW Central
Legal Information - Privacy Policy - Link To Us


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy
  • sm64romhacks