Final Fantasy Hacktics

Modding => Help! => Topic started by: Koruten on May 24, 2011, 03:06:07 am

Title: Error with FFTorgASM Patch: Potions restore % of HP.
Post by: Koruten on May 24, 2011, 03:06:07 am
Hi. I used FFTorgASM to patch the "Potions restore % of HP" to the iso. When I tested it, it crashes as soon as a Potion is used. I need help.
Title: Re: Error with FFTorgASM Patch: Potions restore % of HP.
Post by: Pickle Girl Fanboy on May 24, 2011, 01:31:56 pm
What emulator are you using?  Did you patch a fresh (otherwise unpatched) ISO or *.CUE/*.BIN or *.CDZ or whatever format your disc image is?  Did you use anything besides that hack?
Title: Re: Error with FFTorgASM Patch: Potions restore % of HP.
Post by: Koruten on May 24, 2011, 05:36:01 pm
I am playing it on my Wii and on PSX and on PSXEven. No it is not a fresh IMG. I used mostly innate patches. Others were like Equip Sword = Equip Sword/ Knight Sword and such.
Title: Re: Error with FFTorgASM Patch: Potions restore % of HP.
Post by: Pickle Girl Fanboy on May 24, 2011, 05:47:39 pm
Can you tell us all the hacks and patches you used?
Title: Re: Error with FFTorgASM Patch: Potions restore % of HP.
Post by: Koruten on May 25, 2011, 02:35:35 am
All Patched ASM's:
-Potion = 1 x X%, 1 x Y%, 1 x Z%
-Equip Sword = Equip sword + knight sword
-Equip Knife = Equip Katana + Ninja Blade
-Secret Hunt Innate all
-Item Innate all
-Don't need 'Secret Hunt' to enter Fur Shop
-Monster Skill Innate all
-Fix HolySword/Dark Sword glitch

Title: Re: Error with FFTorgASM Patch: Potions restore % of HP.
Post by: Pickle Girl Fanboy on May 25, 2011, 06:55:37 pm
Well I'm stumped, anyone else?
Title: Re: Error with FFTorgASM Patch: Potions restore % of HP.
Post by: formerdeathcorps on May 26, 2011, 03:59:37 am
Quote from: Koruten on May 24, 2011, 03:06:07 am
Hi. I used FFTorgASM to patch the "Potions restore % of HP" to the iso. When I tested it, it crashes as soon as a Potion is used. I need help.


1) Which version of orgASM did you use?  The one that comes with .478 supposedly has problems.
2) His code doesn't work because he didn't account for load delay.  Let me give you a FIXED version.  Note, this may interfere with some of his hacks assigned further down the list.


BATTLE.BIN
ROM Offset 0xEC774
XXYYZZ00
1580033C
10346334
000064AC
040065AC
080066AC
1980043C
DB388490
00000000
0300852C
1500A010
00000000
1980063C
982DC68C
00000000
2A00C694
1580053C
7437A534
2128A400
0000A590
00000000
1800C500
12280000
64000434
00000000
1A00A400
12280000
00000000
2B204500
02008010
00000000
21100500
0000648C
0400658C
0800668C
1980033C
902D638C
A3280608
00000000
Title: Re: Error with FFTorgASM Patch: Potions restore % of HP.
Post by: Koruten on May 27, 2011, 03:26:18 am
1) IDK what version, but it was on the main site.
2: I'll try that code out. Do I have to replace "XXYYZZ00" with my percentage?
Title: Re: Error with FFTorgASM Patch: Potions restore % of HP.
Post by: Pride on May 27, 2011, 03:30:15 am
Yes that is correct. XXYYZZ are in hex, so be careful
Title: Re: Error with FFTorgASM Patch: Potions restore % of HP.
Post by: Koruten on May 27, 2011, 03:32:53 am
Ok, thanks. I'll try it out tomorrow.
Title: Re: Error with FFTorgASM Patch: Potions restore % of HP.
Post by: Koruten on May 27, 2011, 11:46:10 am
What do I open it with?
Title: Re: Error with FFTorgASM Patch: Potions restore % of HP.
Post by: Koruten on May 31, 2011, 12:52:25 am
Does anyone know how to open .bin files?
Title: Re: Error with FFTorgASM Patch: Potions restore % of HP.
Post by: formerdeathcorps on May 31, 2011, 01:51:25 am
Quote from: Koruten on May 31, 2011, 12:52:25 am
Does anyone know how to open .bin files?


HxD is a nice free hex editor.  Another way is to copy the hex I wrote into Razele.xml (under the Potions heal HP% hack to the same offset as specified) and then repatch your ISO.  However, in any case, you have to check what comes after so you don't accidentally overwrite some other ASM (since Razele's Potion hack was wrong because it was missing blank space, so to speak).
Title: Re: Error with FFTorgASM Patch: Potions restore % of HP.
Post by: Pickle Girl Fanboy on May 31, 2011, 07:00:56 pm
I recommend xvi32.
Title: Re: Error with FFTorgASM Patch: Potions restore % of HP.
Post by: Koruten on June 01, 2011, 01:56:34 am
Ok, I edited the BATTLE.bin file but it still won't work. I did re-insert it into my patch. This is upsetting me alot. Can someone find the exact hex value the default patch gives?
Title: Re: Error with FFTorgASM Patch: Potions restore % of HP.
Post by: Pride on June 01, 2011, 02:29:49 am
I've never used that asm but...

I think that asm compares the % of health that could be recovered and compares it to how much the item would heal with Z * 10 and takes the higher amount. If you're testing on low level units this could be a problem?
Title: Re: Error with FFTorgASM Patch: Potions restore % of HP.
Post by: Pickle Girl Fanboy on June 01, 2011, 12:29:54 pm
Modify your testing disc image with FFTPatcher to give Ramza (the first Squire job) 255 HP multiplier and 0 HP growth, and use a potion on him at the battle in Gariland.
Title: Re: Error with FFTorgASM Patch: Potions restore % of HP.
Post by: Koruten on June 02, 2011, 02:04:08 am
Alright, I'll try that tommorow.