Language…
16 users online: bald_ridge, EpicGamer1354, fanfan21, Firstnamebutt, Giftshaven, Heitor Porfirio, joedoe24, Knight of Time, KyzanDEV, Mysidia, ShoopDaWhoop, Teaser, thatwaterblockrk, thecreator.com, TheMorganah, UlticraftMTT - Guests: 86 - Bots: 118
Users: 66,455 (2,351 active)
Latest user: Brunodosgameskkkk

Changing how you re-enter destroyed castles/fortresses. (FIXED!)

Would it be possible to re-enter destroyed castles/fortresses with the "A" button instead of "L+R", and if so, what would I need to change with a Hex Editor?

Thanks in advance!
save this in a text file:
Code
header : lorom
org $049143
AND #$80
CMP #$80

patch it using asar
Worked like a charm! Thanks again!

Edit: Actually is there a way for B, Y, and X to work also? I've always pressed A to enter levels, but the other button presses work too I just found out :)
I hope this one-time bump is okay, how do I also make B,X, and Y work to enter a destroyed castle/fortress?
Maybe try this:

Code
header
lorom

org $049141
	LDA $15
	AND #$C0
	CMP #$C0

backup your ROM though
Anime statistic on MyAnimeList:
400 animes completed ✓
6000 episodes completed ✓
100 Days completed ✓
... what even am I doing with my life?
Close, it now makes Y+B or A+X enter the destroyed levels. I was hoping to enter them with any 1 of the 4 buttons (since you can use any of them to enter a level).

Thanks!
Replace that CMP #$C0 with another AND #$C0.

(Yes, ASMers, that yields two identical consecutive opcodes. It's the easiest way to waste the last two bytes.)

Edit: waitno, that will just go backwards. This one should work properly.
Quote
header
lorom

org $049141
LDA $15
AND #$C0
AND #$C0
BEQ $07

<blm> zsnes users are the flatearthers of emulation
Worked great! Thanks again!
If somebody still stumbles upon this, Alcaro's solution makes it so that if you are holding any button while Mario moves on a destroyed castle tile, it automatically enters the level, which is different compared to the default behaviour where you have to press the button once you are already standing on the level tile.

To make it behave like any other level, I disabled the check on the destroyed castle, instead of tweaking the L+R check:

Code
org $049199
    NOP #6


Note that this still allows one to enter the destroyed castle via L+R.
ROM Hack Manager - SMW Resources - SMW Toolbox
Originally posted by zuccha
If somebody still stumbles upon this, Alcaro's solution makes it so that if you are holding any button while Mario moves on a destroyed castle tile, it automatically enters the level, which is different compared to the default behaviour where you have to press the button once you are already standing on the level tile.

To make it behave like any other level, I disabled the check on the destroyed castle, instead of tweaking the L+R check:

Code
org $049199
    NOP #6


Note that this still allows one to enter the destroyed castle via L+R.


This works good, but this also allows you to re-enter switch palace levels too and you are unable to re-beat the level forcing you to press start - select to end the level.