øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=2059.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index62c0.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&board=8.100e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index62c0.html.zxB%h^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ0P\™ûOKtext/htmlISO-8859-1gzip8:Ö™ûÿÿÿÿÿÿÿÿTue, 10 Mar 2020 23:56:10 GMT0ó°° ®0®P®€§²ð®A%h^ÿÿÿÿÿÿÿÿv$™û New patch: Self Sneeze Bug fix

Author Topic: New patch: Self Sneeze Bug fix  (Read 2478 times)

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
New patch: Self Sneeze Bug fix
« on: June 01, 2015, 12:21:10 AM »
Hi! I found another unfixed bug and realized I could fix it. This one is called the Self Sneeze bug, so called because it occurs when an enemy that is Controlled using the Fake Mustache Relic casts Sneeze on itself. This applies, for example, to the Oscar enemies in Kefka's Tower. When it happens, that enemy will be ejected as usual...but the entity Controlling that enemy will not stop as expected. Needless to say, this patch fixes that.

EDIT: As of June 2, 2015, this patch no longer conflicts with either my Dead in the Air patch or Novalia Spirit's Petrified Rebel patch. Those can be found here: http://slickproductions.org/forum/index.php?topic=2048.0. This patch also fixes other cases where Control wouldn't be terminated when expected to. This patch now essentially does the same thing as Novalia Spirit's Remote Control patch, except that it is actually available now.

EDIT 2: As of June 20, 2015, the attached archives now contain versions of this patch applicable to the Japanese version of the ROM.

EDIT 3: Well, I lied. Apparently my patch still had a bunch of holes in it. Here's the new version, which basically copies Novalia Spirit's "Remote Control" patch (credit goes to him for it), and adds a fix for an oversight concerning Palidor.
« Last Edit: April 22, 2016, 03:49:03 PM by 13375K31C43R »
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

assassin

  • Bane of Retards
  • *
  • Posts: 1,033
  • space bears are not gentle!
    • View Profile
    • My Barren Webpage
Re: New patch: Self Sneeze Bug fix
« Reply #1 on: June 01, 2015, 06:30:53 PM »
how's this differ from the "Remote Control" bug fixed by Novalia Spirit?

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: New patch: Self Sneeze Bug fix
« Reply #2 on: June 01, 2015, 06:47:47 PM »
Ooh, you're right, I totally forgot about that patch. My apologies to Novalia Spirit, it's been so long since I downloaded all those patches that I just forgot about that.

Well, admittedly, Novalia Spirit's patch also accounts for the possibility of the Controller leaving the battle, or one of the entities Jumping due to Palidor's effect, two scenarios my patch doesn't account for. But also, unlike Remote Control, my patch is actually available to download, so anyone who wasn't fortunate enough to grab Remote Control before 99k.org went down will at least have this.

Hopefully, Novalia Spirit's patches will be available again soon. Novalia, if you're out there, I hope you're reading this.
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: New patch: Self Sneeze Bug fix
« Reply #3 on: June 02, 2015, 08:11:27 AM »
Thanks for the tip on Remote Control. For some reason, though, I found that the bugs that should have been fixed by that patch were still in my ROM, even though I had presumably downloaded it...   :hmm:

Anyway, this patch now alters the "Clear Zinger, Charm, Love Token" function to also clear Control, which seems appropriate as it is called only when an enemy hides in some fashion.

While editing this patch, I started thinking: Wrexsoul's reappearance after Zinger doesn't quite work as expected. When Wrexsoul is supposed to reappear, he does so suddenly instead of gradually, which would be implied by the accompanying sound effect. I tried a bunch of ways to fix this and they all failed.  :sad: I think he's supposed to reappear using the same animation as the Soul Savers.
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: New patch: Self Sneeze Bug fix
« Reply #4 on: April 22, 2016, 03:57:16 PM »
Bumping this for the new version.
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

Xenovant

  • Tunnel Armor
  • *
  • Posts: 154
  • (ಠ_ಠ)
    • View Profile
Re: New patch: Self Sneeze Bug fix
« Reply #5 on: April 22, 2016, 10:42:48 PM »
Switching from Novalia's patch to this one.

Reading about the "control" command, remembers me a funny glitch I discovered some time ago: cast rippler on a controlled enemy. I call it "the dancing enemy" xDD

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: New patch: Self Sneeze Bug fix
« Reply #6 on: April 23, 2016, 12:26:30 AM »
Wow...I see what you mean. I just tried it and the enemy ended up actually being turned the wrong way. He was facing the party when Controlled, and then when Control was broken he ended up facing away from them. My guess is that it's an issue with Rippler's animation.
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

Xenovant

  • Tunnel Armor
  • *
  • Posts: 154
  • (ಠ_ಠ)
    • View Profile
Re: New patch: Self Sneeze Bug fix
« Reply #7 on: April 23, 2016, 01:19:27 PM »
Sometimes it ends facing the right way, it's just a matter of luck xD. A quick and dirty fix would be to remove the "face me" part on rippler.

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: New patch: Self Sneeze Bug fix
« Reply #8 on: April 23, 2016, 01:38:52 PM »
As you can probably guess, it also happens if the enemy is Muddled.
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

Xenovant

  • Tunnel Armor
  • *
  • Posts: 154
  • (ಠ_ಠ)
    • View Profile
Re: New patch: Self Sneeze Bug fix
« Reply #9 on: April 23, 2016, 02:14:02 PM »
Quick and dirty fix +1 :laugh:

If rippler doesn't break the control... why should the enemy face you? (and the dirty fix gives less headaches :P)


13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: New patch: Self Sneeze Bug fix
« Reply #10 on: April 23, 2016, 02:27:44 PM »
On closer inspection, I don't think it's a problem with Rippler's animation, and I'll give you two reasons. One, I can fix it by removing the "80 51" commands from the script (which I think is what you're suggesting), but that removes the reflection effect underneath the caster and the target. Two, Suplex has a similar problem; the Suplexed enemy gets turned upside-down when Sabin drops them, but if they were turned around (e.g. Muddled) first, they get turned back to face the party. So I think it's actually a problem with how the game handles sprites that are supposed to be reflected on both axes.
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

Xenovant

  • Tunnel Armor
  • *
  • Posts: 154
  • (ಠ_ಠ)
    • View Profile
Re: New patch: Self Sneeze Bug fix
« Reply #11 on: April 23, 2016, 02:37:15 PM »
It isn't just something related to rippler...? I thought it was just an isolated and little glitch, that's why I never cared about it   :sad:

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: New patch: Self Sneeze Bug fix
« Reply #12 on: April 23, 2016, 08:03:12 PM »
OK, I found the problem. It's not a single fix for both problems, but they both exist for the same reason. The way the game determines which enemies should be flipped is $80F3,X EOR $617E,X, assuming X points to the enemy's variables in RAM. I'm going to go on record to say I have absolutely no idea why it's done this way, but that's what's messing things up here. Just taking the value of $80F3,X is sufficient because the result is stored in $80F3,X anyway.
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

Imzogelmo

  • Ogopogo Aficianado
  • *
  • Posts: 241
  • Gender: Male
  • Ask me about my other job.
    • View Profile
    • NEPROMR
Re: New patch: Self Sneeze Bug fix
« Reply #13 on: June 10, 2016, 04:38:05 PM »
This is a not a bug report but just a bit of documentation that confused me:

Code: [Select]
REPLACE3:
C207F1: PHX  ; this one instruction...
; LDA $336C,X  ; ...replace these three
; BMI REPLACE4
; TAY
C207F2: JSR clear_love_token
REPLACE4:
C207F5: TXA  ; these two instructions...
C207F6: ADC #$28
; LDA $336D,X  ; ...replace these four
; BMI REMOVED3
; PHX
; TXY
C207F8: TAX
C207F9: JSR clear_love_token
C207FC: PLX
REMOVED3:
; LDA $3394,X
; BMI after_charmee
; TAY
; JSR REMOVED4
;after_charmee:
; LDA $3395,X
; BMI after_charmer
; PHX
; TXY
; TAX
; JSR REMOVED4
; PLX
;after_charmer:

To be clear, the ADC #$28 part is what lets the same function handle charm that handled love token. It threw me off at first since I was trying to figure out where Charm went. :)
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.