Final Fantasy Hacktics

Modding => PSX FFT Hacking => Topic started by: Pickle Girl Fanboy on May 03, 2009, 11:06:52 pm

Title: While adding in some ASM hacks,
Post by: Pickle Girl Fanboy on May 03, 2009, 11:06:52 pm
I noticed something.  Look at the attachment.  Just under the Chirijiraiden's break %, the table continues on.  What is this?

I'm hooked.  I'm gonna make a table of it, and look for it in a save state.
Title:
Post by: LastingDawn on May 03, 2009, 11:16:02 pm
I had seen that too, but was too pressed for time to really worry about it, it was intriguing though! Best of luck with decoding it!
Title:
Post by: Pickle Girl Fanboy on May 04, 2009, 03:41:22 pm
In SCUS, starts at 0x542B8, ends at 0x546B7.
A similar bit of hex, almost exactly the same, starts at 0x63D68 and ends at 0x64167 in *.psv save state
00-01-02-03-04-05-06-07-???????
01-88-01-FF-00-00-00-00-
01-8A-01-FF-03-05-00-00-
01-8A-01-FF-04-05-00-00-
01-8A-01-FF-04-05-00-09-
01-8A-01-FF-04-05-00-0A-
01-8A-01-FF-05-0A-00-00-
01-8A-01-FF-06-28-00-00-
01-8A-01-FF-07-05-00-00-
01-8A-01-FF-07-05-00-0B-
01-8A-01-FF-0A-05-10-00-
01-8A-01-FF-0C-0A-00-0C-
01-8E-01-FF-08-05-00-00-
01-8E-01-FF-09-05-00-00-
01-8E-01-FF-0A-05-00-00-
01-8E-01-FF-0C-05-00-00-
01-8E-01-FF-0D-05-00-0D-
01-8E-01-FF-0E-0F-00-00-
01-8E-01-FF-0F-0A-00-00-
01-8E-01-FF-0F-05-00-00-
01-8E-01-FF-04-05-00-00-
01-8E-01-FF-05-0A-00-00-
01-8E-01-FF-06-05-00-00-
01-8E-01-FF-07-08-00-00-
01-8E-06-FF-08-05-00-00-
01-8E-01-FF-08-05-40-00-
01-8E-01-FF-09-05-00-0E-
01-8E-01-FF-09-05-00-0F-
01-8E-01-FF-0C-0A-00-00-
01-8E-01-FF-0A-0A-00-00-
01-8E-02-FF-0D-0A-20-19-
01-8E-01-FF-0E-0F-00-00-
01-8E-01-FF-01-32-00-10-
01-8E-01-FF-0A-0A-00-00-
01-8E-01-FF-10-3C-00-00-
01-8E-01-FF-12-1E-00-00-
01-8E-01-FF-15-23-00-00-
01-8E-01-FF-18-14-00-00-
01-8E-01-FF-28-14-00-11-
01-8E-01-FF-07-0F-00-00-Asura (0x07 is Weapons chance to break when used in draw out)
01-8E-01-FF-08-0F-00-00-Koutetsu (0x08 is Weapons chance to break when used in draw out)
01-8E-01-FF-09-0F-00-00-Bizen Boat (0x09 is Weapons chance to break when used in draw out)
01-8E-01-FF-0A-0F-00-00-Murasame (0x0A is Weapons chance to break when used in draw out)
01-8E-01-FF-0B-0F-00-00-Heaven's Cloud (0x0B is Weapons chance to break when used in draw out)
01-8E-01-FF-0C-0F-00-00-Kiyomori (0x0C is Weapons chance to break when used in draw out)
01-8E-01-FF-0E-0F-00-00-Muramasa (0x0E is Weapons chance to break when used in draw out)
01-8E-01-FF-0F-0F-00-00-Kikuichimoji (0x0F is Weapons chance to break when used in draw out)
01-8E-01-FF-12-0F-00-00-Masamune (0x12 is Weapons chance to break when used in draw out)
01-8E-01-FF-19-0F-00-00-Chirijiraden (0x19 is Weapons chance to break when used in draw out)
01-87-01-FF-09-00-00-00-
01-87-01-FF-0C-00-00-00-
01-87-01-FF-10-00-00-12-
01-8C-01-FF-03-14-00-00-
01-8C-02-FF-03-14-40-14-
01-8C-02-FF-03-14-80-10-
01-8C-02-FF-03-14-20-18-
01-8C-01-FF-03-14-00-13-
01-8C-01-FF-04-14-00-00-
01-8C-01-FF-05-14-00-00-
01-8C-01-FF-05-14-00-14-
01-8C-01-FF-03-0F-00-00-
01-8C-01-FF-03-0F-00-1C-
01-8C-07-FF-04-0F-00-00-
01-8C-01-FF-05-0F-00-00-
01-8C-01-FF-04-0F-00-00-
01-8C-01-FF-06-0F-00-00-
01-8C-01-FF-06-0F-00-00-
01-8C-01-FF-07-0F-00-00-
01-8E-01-FF-09-00-00-00-
01-8E-02-FF-0B-00-80-11-
01-8E-01-FF-10-00-00-00-
01-8E-01-FF-17-00-00-00-
08-20-03-FF-06-05-00-00-
08-20-03-FF-08-05-00-00-
08-20-03-FF-10-05-00-00-
08-20-04-FF-14-05-20-00-
08-20-04-FF-15-05-80-00-
08-20-04-FF-16-05-40-00-
04-20-01-FF-03-05-00-00-
04-20-01-FF-03-05-00-15-
04-20-01-FF-04-05-00-00-
04-20-01-FF-04-05-00-16-
04-20-01-FF-06-05-00-00-
04-20-01-FF-0A-05-00-00-
05-15-01-FF-04-00-00-00-
05-15-01-FF-05-00-00-00-
05-15-01-FF-05-00-20-00-
05-15-02-FF-06-00-40-15-
05-15-01-FF-08-00-10-00-
05-15-01-FF-07-00-00-00-
05-15-01-FF-0A-00-00-00-
05-15-01-FF-0C-00-00-00-
05-15-01-FF-10-00-00-00-
03-20-01-FF-0A-0A-00-17-
03-20-06-FF-0D-0A-00-00-
03-20-01-FF-0F-0A-00-18-
03-22-01-FF-07-0F-00-00-
03-22-01-FF-08-0F-00-00-
03-22-01-FF-09-0F-00-00-
03-22-01-FF-0B-0F-00-00-
02-46-01-FF-08-0A-00-00-
02-46-01-FF-09-0A-00-00-
02-46-01-FF-0A-0A-00-00-
02-46-01-FF-0B-0A-00-00-
02-46-01-FF-0C-0A-00-00-
02-46-02-FF-0E-0A-02-0F-
02-46-01-FF-11-0A-00-00-
02-46-01-FF-1E-0A-00-00-
02-46-01-FF-06-14-00-00-
02-46-01-FF-07-14-00-00-
02-46-01-FF-08-14-00-00-
02-46-01-FF-09-14-00-00-
02-46-01-FF-0A-14-00-19-
02-46-01-FF-0B-14-00-00-
02-46-01-FF-0C-14-00-1A-
02-46-01-FF-10-14-00-00-
01-80-01-FF-0A-00-00-00-
01-80-01-FF-14-00-00-00-
01-80-01-FF-0C-00-00-00-
01-80-01-FF-0E-00-00-00-
02-40-01-FF-08-32-00-00-
02-40-01-FF-0A-32-00-00-
02-40-01-FF-0F-32-00-00-
00-22-01-FF-04-00-00-00-
00-22-01-FF-07-00-00-00-
00-22-01-FF-0A-00-00-00-
00-22-01-FF-08-00-80-00-
00-22-01-FF-08-00-04-00-
00-22-01-FF-08-00-40-00-
00-01-02-03-04-05-06-07-???????
I don't have acces to MS Word or Excel, so I can't use (Table-->Convert-->Text to Table) to insert the Base Addresses.
If you add -0x2B0 (yes, that is a negative 0x2B0) to the *.psv Base Addresses, that could be where they are in the RAM.  I could be wrong though.

EDIT
Testing Gameshark code 30063C34-0000 to see if it alters Chirijiraden's break rate.

Later...
It does, but not how I expected.

Test 1:  30063C34-0000
Attacked 10 times with Chirijiraiden Draw Out Skill.  Broke zero Katanas.
Also, note that the attack power of the Chirijiraiden katana I had equipped was reduced to zero.

Test 2:  30063C34-0064
Attacked 10 times with Chirijiraiden Draw Out Skill.  Broke 7 Katanas.
Also, note that the attack power of the Chirijiraiden katana I had equipped was increased to 100.

Not sure where to go from here.  Razael's ASM Hack does affect Break Rates, but it also affects attack power of the corresponding katana.  I'm done until I think of any new tests.

Something's bothering me... Isn't there already a place for a weapon's attack power?  Why the duplicate?
Title:
Post by: Pickle Girl Fanboy on May 13, 2009, 04:45:31 pm
Bumping to get more attention for the tests above.
Title:
Post by: LastingDawn on May 13, 2009, 05:14:10 pm
Very interesting results... I wonder why the duplicate, and as it is a duplicate I wonder why it has precedence over the actual WP? Keep up the good work!
Title:
Post by: Pickle Girl Fanboy on May 14, 2009, 02:14:50 pm
I just finished looking through the gameshark guide.  This:
30063C34-00??
Is the code that modifies Chirijiraiden's Attack Power.  When you modify that katana's attack power via FFTPatcher, you're doing the same thing.
But this definitely modifies a katana's break rate when used as an ability.  I guess a Katana's break rate is hard coded into it's attack power.
Title:
Post by: Vanya on May 14, 2009, 05:03:34 pm
Interesting. Maybe these are item attribute tables? Have you tried modifying any of the other values?
Title:
Post by: Pickle Girl Fanboy on May 14, 2009, 05:04:36 pm
These are the item attributes modified by FFTPatcher.  I don't know how Razele found that these modify Katana/Draw Out Break Rates, but they do.

Considering Test 2 had a 70% break rate, and I used 0x64, I think its out of 0x80.  I'll test it with 0x80 soon.
Title:
Post by: Vanya on May 14, 2009, 05:08:59 pm
Are you certain that Razele's hack affects the katana weapon powers too?
Title:
Post by: Pickle Girl Fanboy on May 14, 2009, 05:12:31 pm
-=============-
WEAPON BYTES II
-=============-

BASEADDR +0 :  range

BASEADDR +1 :  00 = one hand only
               01 = requires both hands to hold
               02 = ?
               04 = Two Hands YES
               08 = Two Swords YES
               10 = fires line-of-sight or arc trajectory
               20 = fires line-of-sight trajectory
               40 = lunging weapon (spear, stick, cloth)
               80 = striking weapon

BASEADDR +2 :  01 = normal
               02 = randomly cast a spell
               03 = used for gun
               04 = used for elemental gun
               06 = drain HP
               07 = restore HP

BASEADDR +3 :  always FF

BASEADDR +4 :  weapon power

BASEADDR +5 :  weapon evade%

BASEADDR +6 :  elemental (see above)

BASEADDR +7 :  spell to cast / status to add
               => You can mimic any spell's status-adding ability
                  by looking that spell up in the `Abilities' chart
                  above, and copying the BASEADDR +B from there to
                  the BASEADDR +7 byte for your weapon
               => For random spellcasting, this is the index number
                  of the spell.  See the listing in part 7.


  BASEADDR   +0 +1 +2 +3 +4 +5 +6 +7
+----------+-------------------------+-----------------+
| 30063AB8 | 01 88 01 FF 00 00 00 00 | <BLANK>         |
+----------+-------------------------+-----------------+
| 30063AC0 | 01 8A 01 FF 03 05 00 00 | Dagger          |
| 30063AC8 | 01 8A 01 FF 04 05 00 00 | Mythril Knife   |
| 30063AD0 | 01 8A 01 FF 04 05 00 09 | Blind Knife     |
| 30063AD8 | 01 8A 01 FF 04 05 00 0A | Mage Masher     |
| 30063AE0 | 01 8A 01 FF 05 0A 00 00 | Platina Dagger  |
| 30063AE8 | 01 8A 01 FF 06 28 00 00 | Main Gauche     |
| 30063AF0 | 01 8A 01 FF 07 05 00 00 | Orichalcum      |
| 30063AF8 | 01 8A 01 FF 07 05 00 0B | Assassin Dagger |
| 30063B00 | 01 8A 01 FF 0A 05 10 00 | Air Knife       |
| 30063B08 | 01 8A 01 FF 0C 0A 00 0C | Zorlin Shape    |
+----------+-------------------------+-----------------+
| 30063B10 | 01 8E 01 FF 08 05 00 00 | Hidden Knife    |
| 30063B18 | 01 8E 01 FF 09 05 00 00 | Ninja Knife     |
| 30063B20 | 01 8E 01 FF 0A 05 00 00 | Short Edge      |
| 30063B28 | 01 8E 01 FF 0C 05 00 00 | Ninja Edge      |
| 30063B30 | 01 8E 01 FF 0D 05 00 0D | Spell Edge      |
| 30063B38 | 01 8E 01 FF 0E 0F 00 00 | Sasuke Knife    |
| 30063B40 | 01 8E 01 FF 0F 0A 00 00 | Iga Knife       |
| 30063B48 | 01 8E 01 FF 0F 05 00 00 | Koga Knife      |
+----------+-------------------------+-----------------+
| 30063B50 | 01 8E 01 FF 04 05 00 00 | Broad Sword     |
| 30063B58 | 01 8E 01 FF 05 0A 00 00 | Long Sword      |
| 30063B60 | 01 8E 01 FF 06 05 00 00 | Iron Sword      |
| 30063B68 | 01 8E 01 FF 07 08 00 00 | Mythril Sword   |
| 30063B70 | 01 8E 06 FF 08 05 00 00 | Blood Sword     |
| 30063B78 | 01 8E 01 FF 08 05 40 00 | Coral Sword     |
| 30063B80 | 01 8E 01 FF 09 05 00 0E | Ancient Sword   |
| 30063B88 | 01 8E 01 FF 09 05 00 0F | Sleep Sword     |
| 30063B90 | 01 8E 01 FF 0C 0A 00 00 | Platinum Sword  |
| 30063B98 | 01 8E 01 FF 0A 0A 00 00 | Diamond Sword   |
| 30063BA0 | 01 8E 02 FF 0D 0A 20 19 | Ice Brand       |
| 30063BA8 | 01 8E 01 FF 0E 0F 00 00 | Rune Blade      |
| 30063BB0 | 01 8E 01 FF 01 32 00 10 | Nagrarock       |
| 30063BB8 | 01 8E 01 FF 0A 0A 00 00 | Materia Blade   |
+----------+-------------------------+-----------------+
| 30063BC0 | 01 8E 01 FF 10 3C 00 00 | Defender        |
| 30063BC8 | 01 8E 01 FF 12 1E 00 00 | Save the Queen  |
| 30063BD0 | 01 8E 01 FF 15 23 00 00 | Excalibur       |
| 30063BD8 | 01 8E 01 FF 18 14 00 00 | Ragnarok        |
| 30063BE0 | 01 8E 01 FF 28 14 00 11 | Chaos Blade     |
+----------+-------------------------+-----------------+
| 30063BE8 | 01 8E 01 FF 07 0F 00 00 | Asura Knife     |
| 30063BF0 | 01 8E 01 FF 08 0F 00 00 | Koutetsu Knife  |
| 30063BF8 | 01 8E 01 FF 09 0F 00 00 | Bizen Boat      |
| 30063C00 | 01 8E 01 FF 0A 0F 00 00 | Murasame        |
| 30063C08 | 01 8E 01 FF 0B 0F 00 00 | Heaven's Cloud  |
| 30063C10 | 01 8E 01 FF 0C 0F 00 00 | Kiyomori        |
| 30063C18 | 01 8E 01 FF 0E 0F 00 00 | Muramasa        |
| 30063C20 | 01 8E 01 FF 0F 0F 00 00 | Kikuichimoji    |
| 30063C28 | 01 8E 01 FF 12 0F 00 00 | Masamune        |
| 30063C30 | 01 8E 01 FF 19 0F 00 00 | Chirijiraden    |

http://www.gamefaqs.com/console/psx/file/197339/17555 (http://www.gamefaqs.com/console/psx/file/197339/17555)

A katana's attack power is, if Razele and these tests are right, it's break rate.  Possibly out of 128.
Title:
Post by: Vanya on May 14, 2009, 05:22:37 pm
An asm hack might be in order.
Title:
Post by: Pickle Girl Fanboy on May 14, 2009, 05:29:44 pm
Of what?
Title:
Post by: Kaijyuu on May 14, 2009, 05:33:16 pm
To make weapon power and break chance different values.

Probably just some pointer rearrangement.
Title:
Post by: Pickle Girl Fanboy on May 14, 2009, 05:40:24 pm
Beyond my abilities.  For now.
Title:
Post by: Vanya on May 14, 2009, 06:01:28 pm
It would require some extra space to make them separate values.
However, to just remove there being a chance for them to break or giving them all the same static chance to break would be as simple as changing a few instructions in the code. Then it would just be a matter of finding the code pertaining to Draw Out.
For some reason pSX isn't working on my current machine, otherwise I'd be ASM hacking already.