News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: Final Fantasy IV SNES - Critical Hit Bug Fix?  (Read 19057 times)

Grimoire LD

  • Sr. Member
  • ****
  • Posts: 391
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #80 on: December 16, 2018, 10:33:00 pm »
Haha! That is quite a theory. So you think that the current issue with M. Evade is because the developers didn't Actually know that their system had this bug, so they just kept increasing the numbers expecting some sort of change? That is an intriguing idea and may explain why M. Evade does seem higher across the board.

Giud

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #81 on: April 27, 2019, 09:11:57 am »
Been messing around with FF IV (GBA) lately and just stumbled upon this thread. It's great how you guys were able to solve this issue, but what if I wanted to actually disable criticals in the GBA game? I'm not sure how they're handled in this version of the game, maybe some of the FF IV experts could chime in on that. 

Grimoire LD

  • Sr. Member
  • ****
  • Posts: 391
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #82 on: April 28, 2019, 05:42:30 am »
In the original FFIV each character had their own hidden Critical Hit Ratio, some characters got less, while others got more and this was either x2 or x4 depending on whether they had one or two weapons. Cid, for instance, had the highest Critical Hit Ratio. If you wanted to eliminate Crits you would set all character's Critical Hit Ratio to 0 as 0 x anything still equals 0.

Giud

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #83 on: April 28, 2019, 06:48:28 am »
In the original FFIV each character had their own hidden Critical Hit Ratio, some characters got less, while others got more and this was either x2 or x4 depending on whether they had one or two weapons. Cid, for instance, had the highest Critical Hit Ratio. If you wanted to eliminate Crits you would set all character's Critical Hit Ratio to 0 as 0 x anything still equals 0.

Hm, is this critical hit ratio stored together with the other character stats or is it stored somewhere else?
On the european GBA version, character stats begin at F5D90 and as far as I can tell, there's no critical hit stat. Maybe I just missed it. Then again, maybe they changed the way how criticals work is this version of the game.

Grimoire LD

  • Sr. Member
  • ****
  • Posts: 391
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #84 on: April 28, 2019, 06:58:31 am »
I really wish I hadn't lost my notes... as far as I recall it should be x1D in the character stats as far as I recall, at least for the SNES version. What is that listed in the GBA version?

Giud

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #85 on: April 28, 2019, 07:12:18 am »
I really wish I hadn't lost my notes... as far as I recall it should be x1D in the character stats as far as I recall, at least for the SNES version. What is that listed in the GBA version?

Not sure, I found that GBA offset by searching the starting character experience numbers. The character stats structure on GBA goes like this:
Byte 0: Initial Level
Byte 1: Hand (0x00 none?, 0x01 = Right Handed, 0x02 = Left Handed, 0x03 = Ambidextrous)
Byte 2-3: HP
Byte 4-5: MP
Byte 6: STR
Byte 7: Speed/Agility
Byte 8: Stamina
Byte 9: Intelligence
Byte 10: Wisdom
Byte 11: ????
Byte 12-15: XP
Byte 16-17: Item on Right Hand
Byte 18-19: Total of item on Right Hand
Byte 20-21: Item on Left Hand
Byte 22-23: Total of item on Left Hand
Byte 26-27: Item on Body
Byte 28-29: Item on arms
Byte 30: ????
Byte 31: ????

Grimoire LD

  • Sr. Member
  • ****
  • Posts: 391
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #86 on: April 28, 2019, 07:26:23 am »
It may be byte 30 or 31 on this chart then. The over 255 weapons/armor throws things off a bit from the original. For Cecil/Kain it should be a 01, you will see a higher amount when it comes to Cid.

Giud

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #87 on: April 28, 2019, 07:38:37 am »
Ok, I'll make some changes and see if there's a difference.
EDIT: seems like both byte 30 and 31 have a value of 0.
« Last Edit: April 28, 2019, 07:44:47 am by Giud »

Grimoire LD

  • Sr. Member
  • ****
  • Posts: 391
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #88 on: April 28, 2019, 07:57:12 am »
Hmm, they may have changed it completely then. What is the mystery byte after stats in the GBA version?

Giud

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #89 on: April 28, 2019, 08:00:12 am »
That would be 0 again.
EDIT: there's also this japanese site that has the character stats http://x11.s11.xrea.com/ff4chrparam.txt

Grimoire LD

  • Sr. Member
  • ****
  • Posts: 391
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #90 on: April 28, 2019, 08:12:39 am »
Then they may be stored differently... that's bizarre.

Giud

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #91 on: April 28, 2019, 08:15:42 am »
Looking at that japanese doc, it seems like the second to last column could be it. But where the heck is that byte located?

Grimoire LD

  • Sr. Member
  • ****
  • Posts: 391
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #92 on: April 28, 2019, 08:24:07 am »
Ah right, I read that wrong. Critical Hit Effect is dependent on the weapon and the Critical Hit Rate is right next to it. Is this for the GBA version?

Giud

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #93 on: April 28, 2019, 08:32:59 am »
Ah right, I read that wrong. Critical Hit Effect is dependent on the weapon and the Critical Hit Rate is right next to it. Is this for the GBA version?

Yep, GBA. Does that mean I would have to disable crits for each individual weapon? 
« Last Edit: April 28, 2019, 08:42:31 am by Giud »

Grimoire LD

  • Sr. Member
  • ****
  • Posts: 391
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #94 on: April 28, 2019, 08:56:01 am »
Not at all. Every character has a set critical hit rate by default. If you nullify that, then that will nullify crits all together, after all 0 x 2/4 is still 0.

Giud

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #95 on: April 28, 2019, 09:02:12 am »
Not at all. Every character has a set critical hit rate by default. If you nullify that, then that will nullify crits all together, after all 0 x 2/4 is still 0.

That's good, but the problem is locating that stat so I can change it to 0. It seems like they stored it somewhere else in the GBA version or am I way off base here?

Grimoire LD

  • Sr. Member
  • ****
  • Posts: 391
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #96 on: April 28, 2019, 09:11:56 am »
It... should be in the same place if that document is indeed referring to the GBA version.

Giud

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #97 on: April 28, 2019, 09:21:00 am »
It... should be in the same place if that document is indeed referring to the GBA version.

Looking at that document again, it seems like that's just the attack multiplier. Is it possible that this data is stored on the save file, instead of the ROM?

Grimoire LD

  • Sr. Member
  • ****
  • Posts: 391
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #98 on: April 28, 2019, 10:35:36 am »
Last I checked a multiplier doesn't go above 16, haha. The CH should just be short for "Critical Hit".

No, it shouldn't be elsewhere, logically speaking... it's recalculated whenever you equip/dequip a weapon out of battle which means it should be in the main character stats, at least that's how it works in the original game. Maybe they did change it for some reason in this? I can't really say.

Giud

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: Final Fantasy IV SNES - Critical Hit Bug Fix?
« Reply #99 on: April 28, 2019, 10:52:18 am »
So the critical hit rate for Cecil and Kain should be 2, for Cid it is 5, Edge 8 etc.But I don't see it where the rest of the stats are. Seems like every unknown byte is just a 0. Ugh, frustrating...

April 29, 2019, 05:16:52 am - (Auto Merged - Double Posts are not allowed before 7 days.)
Well, I wanted to see if I could find the crit modifier on the og, Snes version. Sure enough, it's right there with the rest of the stats, 102D in wram, right next to the critical hit effect. But, on the GBA they are nowhere to be seen. I don't understand why they decided to move those two around.
« Last Edit: April 29, 2019, 05:16:52 am by Giud »