Users browsing this thread: 1 Guest(s)
Enable/Disable Auto-optimize

#11
Posts: 122
Threads: 1
Thanks Received: 42
Thanks Given: 3
Joined: Oct 2015
Reputation: 14
Status
None
yep, and yep.  to clarify my earlier statement, it's not purely a "single category", as there's a routine that outputs both Weapons and Shields to the list.  while Optimum doesn't truly make use of this combined list, the call is still made, and the overwrite of FFs still happens.  but your combined count for those two gear categories is <= 8, so you're still good.
Quote  

#12
Posts: 226
Threads: 16
Thanks Received: 10
Thanks Given: 35
Joined: Dec 2017
Reputation: 2
Status
None
(09-21-2018, 12:18 AM)madsiur Wrote: Well I did this in about 10min, you can test it. You only need to change the 4 CMPs with the dirk ID (00) to your good item ID. Note that you might need to change the org $C3F091 if that free space is used by other patches, check your ROM first.

Code:
hirom

org $C39EF8
jsr free_space

org $C3F091
free_space:
jsr $93F2         ; define y...
lda $0023,y       ; relic 1
cmp $B0           ; unchanged?
bne lbl_9F6F      ; branch if not
lda $0024,y       ; relic 2
cmp $B1           ; unchanged?
bne lbl_9F6F      ; branch if not
bra lbl_9FAC      ; reequip: no

;fork: compare old and new relics
lbl_9F6F:
lda $B0           ; old relic 1
cmp #$00          ; dirk for now, change to your item ID
beq lbl_9FAC      ; trigger if so
cmp #$D1          ; genji glove?
beq lbl_9FAC      ; trigger if so
cmp #$D0          ; gauntlet?
beq lbl_9FAC      ; trigger if so
cmp #$DA          ; merit award?
beq lbl_9FAC      ; trigger if so
lda $B1           ; old relic 2
cmp #$00          ; dirk for now, change to your item ID
beq lbl_9FAC      ; trigger if so
cmp #$D1          ; genji glove?
beq lbl_9FAC      ; trigger if so
cmp #$D0          ; gauntlet?
beq lbl_9FAC      ; trigger if so
cmp #$DA          ; merit award?
beq lbl_9FAC      ; trigger if so
lda $0023,y       ; relic 1
cmp #$00          ; dirk for now, change to your item ID
beq lbl_9FAC      ; trigger if so
cmp #$D1          ; genji glove?
beq lbl_9FAC      ; trigger if so
cmp #$D0          ; gauntlet?
beq lbl_9FAC      ; trigger if so
cmp #$DA          ; merit awarD?
beq lbl_9FAC      ; trigger if so
lda $0024,y       ; relic 2
cmp #$00          ; dirk for now, change to your item ID
beq lbl_9FAC      ; trigger if so
cmp #$D1          ; genji glove?
beq lbl_9FAC      ; trigger if so
cmp #$D0          ; gauntlet?
beq lbl_9FAC      ; trigger if so
cmp #$DA          ; merit awarD?
beq lbl_9FAC      ; trigger if so
lbl_9FA9:
stz $99           ; reequip: no
rts

;fork: set to open equip menu
lbl_9FAC:
lda #$01          ; reequip: yes
sta $99           ; set indicator
rts

Hey Madsiur, I finally tried this patch today (I had to fix a bug with a new dual-wield relic and remembered about your patch).  There is a bug with your patch, however.  I changed all the cmp #$00 lines to cmp #$E1 (my new dual wield relic).  however, in-game, whenever I use the L & R buttons to change characters while in the relic menu, it always goes to the characters equipment menu to force a re-equip.  Basically, I can't cycle through characters in the relics menu anymore.  Any idea why that is?

Edit: I don't know if a 1.1 ROM makes any difference.
  Find
Quote  

#13
Posts: 3,652
Threads: 266
Thanks Received: 694
Thanks Given: 287
Joined: Oct 2011
Reputation: 60
Status
Faith
There was a typo at line 15. This is the correct line:

Code:
bra lbl_9FA9      ; reequip: no
  Find
Quote  
[-] The following 1 user says Thank You to madsiur for this post:
  • Lightning (05-28-2019)

#14
Posts: 226
Threads: 16
Thanks Received: 10
Thanks Given: 35
Joined: Dec 2017
Reputation: 2
Status
None
That seems to work now, thanks!
  Find
Quote  



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite