øAslickproductions.org/forum/index.php?PHPSESSID=so1iojs5ocdn0o2vf0tti7fbu6&topic=2214.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index686e.htmlslickproductions.org/forum/index.php?PHPSESSID=so1iojs5ocdn0o2vf0tti7fbu6&board=8.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index686e.html.zxÇôg^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿȰUŒ OKtext/htmlISO-8859-1gzip0|ÖŒ ÿÿÿÿÿÿÿÿTue, 10 Mar 2020 20:29:18 GMT0ó°° ®0®P®€§²ð®Æôg^ÿÿÿÿÿÿÿÿ½ Œ  Two new patches: Rock Bottom, Imp's Call

Author Topic: Two new patches: Rock Bottom, Imp's Call  (Read 1711 times)

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Two new patches: Rock Bottom, Imp's Call
« on: April 26, 2016, 02:52:07 PM »
Sigh... :sad: I tell everyone I'm going on hiatus, and then I quickly find two new bugs to fix. Oh well, c'est la vie.

There are two patches I'm releasing today, and then I'm officially off duty unless someone requests a patch. The first one fixes a problem with Near Fatal status; the game does not properly recalculate it during a turn where a party member would lose Petrify status. You can observe this for yourself: take a party member, let them get within a few HP of death, Petrify them, then remove the Petrification and notice how they're standing tall. This patch makes the game recalculate Near Fatal on un-Petrified characters. There's an extra set of patches included due to a conflict with Assassin's "Premature Continuation" patch, which will preserve both; however, if you apply one of those patches, then you don't even need to have applied "Premature Continuation" beforehand.

The second is something I just recently discovered; the first I'd noticed a little while ago and planned on it being my last patch before the break, but this one I noticed after the announcement. If you try to summon an Esper, and you get turned into an Imp before it happens, you lose the chance to summon it later, which is unfair. Imp's Call remedies that.

:edit: April 26, 2016
I've now improved the Near Fatal adding function so that it no longer ignores immunity to Near Fatal status.

:edit: April 27, 2016
I decided to rename "Hard as a Rock" to "Rock Bottom". No actual changes to the patch, I just decided that Rock Bottom is a better fitting name.

:edit: May 3, 2016
Just discovered a bad branch in the "Premature Continuation" version. It has now been fixed.

:edit: February 4, 2018
Both patches now have GBA ports!
« Last Edit: February 20, 2018, 11:09:16 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: Two new patches: Hard as a Rock, Imp's Call
« Reply #1 on: April 26, 2016, 05:09:45 PM »
sounds like the first one was fixed by Disrespectful Zombie, of August 2004.

assassin

  • Bane of Retards
  • *
  • Posts: 1,033
  • space bears are not gentle!
    • View Profile
    • My Barren Webpage
Re: Two new patches: Hard as a Rock, Imp's Call
« Reply #2 on: April 26, 2016, 05:26:59 PM »
err, i have literacy/memory issues.

mine dealt with Near Fatal _lingering_ a little, and the patch's change was True Knight -specific, and thus very small.  apologies.

assassin

  • Bane of Retards
  • *
  • Posts: 1,033
  • space bears are not gentle!
    • View Profile
    • My Barren Webpage
Re: Two new patches: Hard as a Rock, Imp's Call
« Reply #3 on: April 26, 2016, 05:53:31 PM »
do you want to make sure the entity isn't immune to Near Fatal before setting it?  some monsters (and Rages, but those might not apply here) can be..

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: Two new patches: Hard as a Rock, Imp's Call
« Reply #4 on: April 26, 2016, 05:59:10 PM »
I don't think that'll be an issue, because I've never seen an enemy lose Petrify status before. The player can't remove Petrify status from enemies because Petrified enemies become untargetable by party members, and even if that doesn't stop other enemies from removing it, I don't think they ever will. The only time I've ever seen a spell cast on an "off limits" enemy is Curley casting Life 2.
"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: Two new patches: Hard as a Rock, Imp's Call
« Reply #5 on: April 26, 2016, 06:02:21 PM »
iirc, pre-queueing a Soft item can do it (Items work subtly different than Magic here), but that admittedly requires very specific timing.

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: Two new patches: Hard as a Rock, Imp's Call
« Reply #6 on: April 26, 2016, 06:09:55 PM »
Well, I can modify it to check for immunity. If I do, will it cause any issues with your Disrespectful Zombie patch (or in general, to your knowledge)?
"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: Two new patches: Hard as a Rock, Imp's Call
« Reply #7 on: April 26, 2016, 06:16:45 PM »
none come to mind currently.  a theoretical problem with setting Near Fatal at this point is it'd be too late for its "side effect" function to be called, but it HAS no side effect function (for setting or clearing) in the vanilla game.

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: Two new patches: Hard as a Rock, Imp's Call
« Reply #8 on: April 26, 2016, 07:24:44 PM »
I've already tested the side effects associated with Relics such as MithrilGlove, and there's no problem there.
"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: Two new patches: Hard as a Rock, Imp's Call
« Reply #9 on: April 26, 2016, 07:28:12 PM »
The other thing is, there's already a section of code that checks whether Near Fatal status should be applied or not, and it doesn't consider immunity at all. So why should my code be different?
"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: Two new patches: Hard as a Rock, Imp's Call
« Reply #10 on: April 26, 2016, 08:44:18 PM »
that other code is buggy, and one of the reasons i made the "1-way status immunity fix".  it's not something you want to emulate.

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: Two new patches: Hard as a Rock, Imp's Call
« Reply #11 on: April 26, 2016, 08:49:32 PM »
Fair enough. I'll fix it.
"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: Two new patches: Hard as a Rock, Imp's Call
« Reply #12 on: April 26, 2016, 09:31:13 PM »
thanks.  oh man, now 2 bytes shy of fitting in the "Premature Continuation"-compatible version.  the obvious savings are at C2/45FB, but could be tricky to work around if/when somebody edits Function C2/460B to stop the Petrified enemy omni-counter bug (http://mnrogar.slickproductions.org/phpBB3/viewtopic.php?f=2&t=108&p=6864#p6864 , fix mulled http://mnrogar.slickproductions.org/phpBB3/viewtopic.php?f=2&t=108&p=7066#p7066).  (there is at least one nuance involved in that bugfix, which is a reason i've held off.. another being i'm too lazy to finish even the easy ones in my queue.)

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: Two new patches: Hard as a Rock, Imp's Call
« Reply #13 on: April 26, 2016, 09:35:16 PM »
No problem. I have another solution in mind. See how you like it.
"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: Two new patches: Hard as a Rock, Imp's Call
« Reply #14 on: April 26, 2016, 10:10:52 PM »
OK. See what you think.
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings