øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=2236.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index490d.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&board=8.100e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index490d.html.zxB%h^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈЋ�9ŒOKtext/htmlISO-8859-1gzip@øÕ9ŒÿÿÿÿÿÿÿÿTue, 10 Mar 2020 23:56:11 GMT0ó°° ®0®P®€§²ð®B%h^¡9Œ L5 Doom from Setzer fix

Author Topic: L5 Doom from Setzer fix  (Read 677 times)

Imzogelmo

  • Ogopogo Aficianado
  • *
  • Posts: 241
  • Gender: Male
  • Ask me about my other job.
    • View Profile
    • NEPROMR
L5 Doom from Setzer fix
« on: May 28, 2016, 07:48:04 PM »
This is a very simple fix, and it fits inline easily. I don't feel like making a patch for it but I'll put it here for anyone interested. Note all ORGs are for FF3 US 1.0.

Code: [Select]
hirom
;header
ORG $C23687

SwdTech_Magic:
C23687:        LDA $B6     ; (Load spell #)
C23689:        RTS         
                           
Magicite:                   
C2368E:        SEC         
C2368F:        LDA $B6     ; (Load spell #)
C23691:        SBC #$36     ; (Subtract 54. Gives esper number as attack)
C23693:        RTS         
                           
GP_Rain:                   
C23694:        LDA $B5     ; (Load commmand #)
C23696:        RTS

Enemy_Special:
C23697:        LDA #$11     ; (Enemy special will used battle dynamics command 11 instead of 06.)
C23699:        STA $3A28
C2369C:        LDA $33A8,Y
C2369F:        STA $3A29
C236A2:        LDA $33A9,Y
C236A5:        RTS

Joker_Doom:
C236A6:        LDA #$02
C236A8:        TSB $3A46    ; (set flag to let attack target normally untargetable
                             ;  entities -- Jumpers, seized characters, etc.)
C236AB:        TRB $11A2    ; (Clear miss if death prot.)?
               ROL          ; --> New code: Now A holds #$04
               TRB $11A3    ; --> Clear "Learn if Cast"
C236AE:        LDA #$20
C236B0:        TSB $11A4    ; (Sets unblockable)

Last:
C236B3:        LDA #$00
C236B5:        STA $3A29
C236B8:        LDA #$55     ; (Joker Doom)
C236BA:        RTS
         

Blitz:
C236BB:        JSR Last     ; Just an optimization. Note the LDA #$55 doesn't matter since it gets
                            ; overwritten below. (Also note it's not really needed, as the 5 bytes are wasted)
Item:                       
C236C0:        LDA $3A7D    ; Another optimization.
           
Nada:     
C236C3:        RTS

         
               NOP          ; Woohoo, 5 bytes freed
               NOP
               NOP
               NOP
               NOP

ORG $C236C4                  ; Just in case my math is wrong
; Pointers to code
C236C4: dw SwdTech_Magic
C236C6: dw Item
C236C8: dw Magicite
C236CA: dw Nada
C236CC: dw SwdTech_Magic
C236CE: dw GP_Rain
C236D0: dw Enemy_Special
C236D2: dw Joker_Doom
C236D4: dw Blitz
« Last Edit: June 22, 2016, 11:40:05 PM by Imzogelmo »
5/31/16 - I have an assembly of the battle portion of C2, relocated to the F0 bank, which has both vanilla and patch code in my dropbox. I'll be updating it with additional patches as I have time. I will *not* be releasing it publicly, but ask me for the link and I'll share.

Xenovant

  • Tunnel Armor
  • *
  • Posts: 154
  • (ಠ_ಠ)
    • View Profile
Re: L5 Doom from Setzer fix
« Reply #1 on: May 29, 2016, 09:42:50 AM »
A fix is always welcome :P

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: L5 Doom from Setzer fix
« Reply #2 on: May 29, 2016, 10:56:25 PM »
I never really saw this as a bug, more like just an extra "feature"... still, good job!
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

C. V. Reynolds

  • Tunnel Armor
  • *
  • Posts: 153
  • RATED TEM OUTTA TEM.
    • View Profile
    • cvreynolds.net
Re: L5 Doom from Setzer fix
« Reply #3 on: May 31, 2016, 06:04:00 PM »
What exactly does this do? Does it keep Setzer/Gogo from teaching Strago Level 5 Doom when using Joker Doom? Does it keep Joker Doom from branching to Level 5 Doom at all? What other effects might that have?

Also, what program should I use to write in that language for making a patch? I usually only use a hex editor.

I'm such a curious fellow. :3
I'm the former Hollywood Narrator from GameFAQs.

I'm a published novelist. My novels "Universe Eleven Series - Blue Ruin" Part 1, Part 2, and Part 3 are for sale on Amazon (check my website) in print and ebook formats.

Imzogelmo

  • Ogopogo Aficianado
  • *
  • Posts: 241
  • Gender: Male
  • Ask me about my other job.
    • View Profile
    • NEPROMR
Re: L5 Doom from Setzer fix
« Reply #4 on: May 31, 2016, 06:56:53 PM »
Joker Doom  is (always) just a modified L5 Doom. The modifications include stripping out the L5 part. What they forgot to remove was the "learn if cast" part. So, yes, it just prevents Strago from learning it when it is used (in the very unlikely event that you hit Joker Doom and somehow have not seen L5 Doom yet).

You can use an assembler such as xkas, or just convert the opcodes to hex and write it directly in a hex editor. Or just wait another 5 years til I make a patch. (kidding.. maybe). :P
« Last Edit: June 22, 2016, 11:38:07 PM by Imzogelmo »
5/31/16 - I have an assembly of the battle portion of C2, relocated to the F0 bank, which has both vanilla and patch code in my dropbox. I'll be updating it with additional patches as I have time. I will *not* be releasing it publicly, but ask me for the link and I'll share.