Un-Beancorner [JoshuaMK]
#1
Un-Beancorner [JoshuaMK]

An on the fly mask patcher for Beancorners. Detects if the mask for the wall in contact is not set and sets it accordingly.



(NTSC-U)
C25699B4 00000002
63390400 933C0078
60000000 00000000

(PAL)
C256E804 00000002
63390400 933C0078
60000000 00000000

(NTSC-J)
C256E184 00000002
63390400 933C0078
60000000 00000000

(NTSC-K)
C255C85C 00000002
63390400 933C0078
60000000 00000000



#ASM

#~~~~~~~~~~~~#
#Inject > 805699B4#
#~~~~~~~~~~~#

ori r25, r25, 0x400
stw r25, 0x0078 (r28)



Code Creator: JoshuaMK
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#2
When inserting a bit, you want to use ori instead of addi.
Reply
#3
Coolio. I made this code in about 10 minutes at 3:00 am so what worked for my tired brain was all that mattered lol
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#4
Noob question: What are beancorners?

Btw you won't need the andi. & bne instructions. With the ori, if the bit is already set to 1, nothing changes.
Reply
#5
Coolio. Beancorners are when you get launched off the track when you cut a corner at all, caused by walls not having the bit set
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#6
I don't think I've ever experienced this. Is this mainly a CT issue?
Reply
#7
Yep. It's a problem found in a lot of old CTs and even a few recent ones.
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)