Aslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=2161.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index6fa3-2.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&board=8.120e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index6fa3-2.html.zx%h^&OKtext/htmlISO-8859-1gzip@&Tue, 10 Mar 2020 23:57:14 GMT0 0P%h^G& New patch: Side Saddle Glitch fix

Author Topic: New patch: Side Saddle Glitch fix  (Read 1078 times)

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
New patch: Side Saddle Glitch fix
« on: December 11, 2015, 06:02:13 PM »
Hi everyone! Well, I did it. I slaved over this issue for weeks and finally figured out how to solve it. This glitch occurs when a member of your party vanishes during battle while riding Magitek Armor. The game accidentally draws both the disappearing and reappearing animations over the armor, so the legs become visible outside the armor. This patch ensures that the characters' legs never become visible while they are riding Magitek Armor.

And while I'm at it, there's another issue that's been stressing me out just as much: Doom only taking away a character's upper body when they are riding Magitek Armor. There's documentation on Slick Productions that includes the C1 bank, so you can see the code at C1/3D43 surrounding the JSR I added to replace a CMP. Basically, the Vanish animation manipulates the sprite data stored in RAM at 7F:0000-7F:A000, so to fix this glitch I made sure the legs wouldn't be stored there for characters riding Magitek Armor. When a character reappears, the sprite data there is repopulated with the sprite data in the ROM at D5/0000 onwards. I'm thinking I need to do something similar with the Doom animation. I need to find the area of the code where it grabs data for the sprite that gets hauled off by the reaper and force it to include the legs.

:edit: December 13, 2015
Fixed a problem with the patch whereby it sometimes wasn't including the legs at all, because the code that checks if a character has Magitek status was grabbing data from the wrong place in RAM. This problem is now fixed. I recommend re-downloading this patch.

:edit: February 11, 2016
Fixed a patch-breaking problem; the patch was adding the free space in the wrong place. The free space overlapped with the last three bytes of the Magitek-check function, breaking it. As I said, this problem has now been fixed.

:edit: February 11, 2016
Fixed another patch-breaking problem with the 1.0 patch; I'd failed to make the necessary adjustments to some of the JSRs. Also made a correction to the Magitek Armor check function; it was still loading from the wrong place in RAM and I'd somehow failed to notice.

:edit: March 21, 2016
Discovered a RAM byte that allows for some added efficiency. Re-downloading is optional, but recommended.
« Last Edit: March 21, 2016, 01:40:15 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

silentenigma

  • Ymir
  • *
  • Posts: 15
    • View Profile
    • SilentEnigma's Cool Things
Re: New patch: Side Saddle Glitch fix
« Reply #1 on: February 11, 2016, 01:25:11 AM »
Leetsketcher,

I've been having trouble with this patch. I'm trying it on fresh ROMs, and I believe I'm using your latest version (the one here and on your site). For the 1.0 headered version, battles get stuck before the fade-in, and in the 1.1 headered version, everyone is invisible (no character sprites drawn, iirc) all the time in battle. Are you aware of the issue? (There's always a chance I'm just crazy.)

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: New patch: Side Saddle Glitch fix
« Reply #2 on: February 11, 2016, 10:52:00 AM »
Hmm... That's odd. I have a ROM that's been fitted with tons of other patches before this one and everything's been fine, but I just tried it on fresh ROMs and I'm seeing the same behaviour. I will investigate.
"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: Side Saddle Glitch fix
« Reply #3 on: February 11, 2016, 11:10:35 AM »
OK, the problem has now been fixed. :)
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

silentenigma

  • Ymir
  • *
  • Posts: 15
    • View Profile
    • SilentEnigma's Cool Things
Re: New patch: Side Saddle Glitch fix
« Reply #4 on: February 11, 2016, 12:55:46 PM »
Thanks for taking a look at this. Just tried again. I'm still getting the same behavior for the 1.0 headered version, and on the 1.1 headered version, full legs are visible on top of the magitek armor when vanish is cast (like the original).

(Also I think the .zip version you uploaded is the old version - last modified December 11.)

Good luck!
« Last Edit: February 11, 2016, 01:18:38 PM by silentenigma »

13375K31C43R

  • Ultros
  • *
  • Posts: 675
  • Gender: Male
    • View Profile
    • Leet Sketcher's Final Fantasy III Patches
Re: New patch: Side Saddle Glitch fix
« Reply #5 on: February 11, 2016, 08:15:35 PM »
Wow, that's weird... I can honestly say I don't know why that's happening. It's worked for me before.
"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: Side Saddle Glitch fix
« Reply #6 on: February 11, 2016, 08:50:30 PM »
OK, I managed to fix the problem on the v1.1 patch. The problem was that it loads the "Magitek Armor" status from the wrong place in RAM. I'll upload the updated version as soon as I fix the problem with the v1.0 patch.
"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: Side Saddle Glitch fix
« Reply #7 on: February 11, 2016, 09:37:21 PM »
There. That should do it.
"Do not meddle in the affairs of wizards, for they are subtle and quick to anger." -Gildor from The Lord of the Rings

silentenigma

  • Ymir
  • *
  • Posts: 15
    • View Profile
    • SilentEnigma's Cool Things
Re: New patch: Side Saddle Glitch fix
« Reply #8 on: February 12, 2016, 03:31:51 PM »
Looks like that did the trick! Nice work.