Final Fantasy IV SNES - Critical Hit Bug Fix?

Started by 8.bit.fan, November 15, 2018, 03:12:31 AM

Previous topic - Next topic

Grimoire LD

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

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

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

Quote from: Grimoire LD 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.

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

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

Quote from: Grimoire LD 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?

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

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

#87
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.

Grimoire LD

Hmm, they may have changed it completely then. What is the mystery byte after stats in the GBA version?

Giud

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

Then they may be stored differently... that's bizarre.

Giud

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

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

#93
Quote from: Grimoire LD 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?

Yep, GBA. Does that mean I would have to disable crits for each individual weapon? 

Grimoire LD

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

Quote from: Grimoire LD 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.

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

It... should be in the same place if that document is indeed referring to the GBA version.

Giud

Quote from: Grimoire LD 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.

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

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

#99
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.