Banner
Views: 926,052,037
Time:
10 users online: A glove of a man, Alex_X8,  Anorakun, BrunoswmUser, Enan63, LAZYY-BEARR, Mogu94, pixelninetales, Ralshi02, Vanessa - Guests: 77 - Bots: 242 Users: 51,765 (2,049 active)
Latest: ThatMarioFan64
Tip: Press F2 on the level editor to see subscreen boundaries. This will help you avoid glitching dragon coins by putting them on the subscreen boundaries.
Not logged in.
Pause Menu and Addmusic K conflict
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Pause Menu and Addmusic K conflict
Pages: « 1 » Link
I'm trying to use that Pause Menu patch (which I modded Graphics and menu tilemap). Applying it in a clean ROM is okay, it works fine. Buut, when I use AddMusicK in that hack, as you can see, menu graphics aren't uploaded anymore to VRAM and even worse, you can't unpause game. Instead, you can pause game multiple times and you are only able to exit level if "Pause+Select exit" is enabled on that one level.


Before using AddmusicK

After using AddmusicK. As you can see, garbled graphics are shown instead of the menu graphics.

I think the problem about unpausing game have something to do with this piece of code:

Code
;=============;
; Update OAM  ;
;=============;
UpdateOAM:
        LDA $13D4               ;\
        BEQ +                   ; | If $13D4 == 0, branch.
        LDA $10                 ; |
        BEQ $FC                 ; | Chocolate Island 2 Infinite Loop.
        JSR Clear2ndOAM         ; |
        PHB                     ; |
        PHK                     ; | Make this our data bank.
        PLB                     ; |
        LDA $7006FF             ; | Use $7006FF ..
        ASL A                   ; | *2
        TAX                     ; | -> X.
        JSR (MenuPtr,x)         ; | As a pointer.
        PLB                     ; | Restore data bank.
        JSR DrawMenu            ; | Draw menu tilemap.
        RTL                     ;/ Terminate.
+       LDA $10                 ;\
        BEQ $FC                 ;/ Chocolate Island 2 Infinite Loop.
        PHB                     ;\
        PHK                     ; | Make this our program bank.
        PLB                     ; |
        PLB                     ; | Useless code.
        RTL                     ;/


And about not updating OAM with this:

Code
;=============;
; Change OAM  ;
;=============;
ChangeOAM:
        LDY $13D4               ;\
        BEQ +                   ; | If $13D4 == 0, branch.
        LDY #$70                ; |
        STY $4304               ; |
        LDA #$0700              ; |
        STA $4302               ; |
+       LDY #$01                ; | Restore hacked code.
        STY $420B               ; |
        RTL                     ;/


Unfortunately, I don't know how to deal with this problem, so again, I'm needing some help solving this problem! #tb{^V^}

Thanks in advance!

EDIT:In case someone would like to look inside game, here it is two patches showing what happens in each case.

EDIT2: Lol, I forgot to put the link of pastebin xD.
Pages: « 1 » Link
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Pause Menu and Addmusic K conflict

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

Copyright © 2005 - 2021 - 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