Enable/Disable Auto-optimize
#12
(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.
Reply


Messages In This Thread
Enable/Disable Auto-optimize - by Lightning - 09-19-2018, 04:03 PM
RE: Enable/Disable Auto-optimize - by Warrax - 09-19-2018, 09:53 PM
RE: Enable/Disable Auto-optimize - by Lightning - 09-19-2018, 09:59 PM
RE: Enable/Disable Auto-optimize - by madsiur - 09-19-2018, 11:03 PM
RE: Enable/Disable Auto-optimize - by Lightning - 09-19-2018, 11:28 PM
RE: Enable/Disable Auto-optimize - by madsiur - 09-20-2018, 08:55 AM
RE: Enable/Disable Auto-optimize - by Lightning - 09-20-2018, 02:52 PM
RE: Enable/Disable Auto-optimize - by madsiur - 09-21-2018, 12:18 AM
RE: Enable/Disable Auto-optimize - by Lightning - 05-27-2019, 01:06 PM
RE: Enable/Disable Auto-optimize - by assassin - 09-21-2018, 11:10 AM
RE: Enable/Disable Auto-optimize - by Lightning - 09-21-2018, 11:32 AM
RE: Enable/Disable Auto-optimize - by assassin - 09-21-2018, 01:05 PM
RE: Enable/Disable Auto-optimize - by madsiur - 05-27-2019, 06:57 PM
RE: Enable/Disable Auto-optimize - by Lightning - 05-28-2019, 12:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Item Auto Status, & etc doofenH 15 10,097 04-25-2022, 06:36 PM
Last Post: HatZen08
  Disable magic while still allowing Esper equip boxedj 1 2,441 04-24-2020, 04:21 PM
Last Post: C-Dude
  Disable Jump command if character has Dark status seibaby 5 5,835 12-09-2016, 05:23 PM
Last Post: SSJ Rick
  Is Auto-Battle possible? cdizzle 12 13,286 05-15-2015, 07:12 PM
Last Post: dn
  Disabling Auto-Optimize/Remove on Genji Glove/Gauntlet Riketz 8 11,408 12-23-2012, 09:59 PM
Last Post: Riketz

Forum Jump:


Users browsing this thread: 1 Guest(s)