FF6 Hacking
30,000 damage patch and 24 bit monsters HP patch conflict - Printable Version

+- FF6 Hacking (https://www.ff6hacking.com/forums)
+-- Forum: Discussion Forums (https://www.ff6hacking.com/forums/forum-5.html)
+--- Forum: Magitek Research Facility (https://www.ff6hacking.com/forums/forum-9.html)
+--- Thread: 30,000 damage patch and 24 bit monsters HP patch conflict (/thread-1594.html)

Pages: 1 2


30,000 damage patch and 24 bit monsters HP patch conflict - madsiur - 04-17-2012

After the post of someone who couldn't get the game run properly with the 2 patches mentioned in the title, I discovery that there is a conflict between the two patches. They use the same free space in bank C0. To resolve this, I suggest doing the following steps. I won't release a super patch which makes both patches work together as I'm not the creator of any of the two...

First apply the 30,000 damage patch. It's the one that change the most code while the 24 bit monster HP change less code. The second step consist of writing manually the 24 bit HP patch .This patch consist of 2 jump to free space in bank C0 where you put the rest of the code. Originally the two routine you jump to where starting at C0/D613 and C0/D631. Here they are:

First routine (C0/D613):

Code:
99 F4 3B     STA $3BF4,Y
99 1C 3C     STA $3C1C,Y
DA           PHX
8A           TXA
4A           LSR A
4A           LSR A
4A           LSR A
4A           LSR A
4A           LSR A
AA           TAX
E2 20        SEP #$20
BF 50 CF CF  LDA $CFCF50,X
99 78 3C     STA $3C78,Y
99 79 3C     STA $3C79,Y
FA           PLX
C2 20        REP #$20
6B           RTL

Second routine(C0/D631):

Code:
B9 F4 3B    LDA $3BF4,Y
E5 EE       SBC $EE
99 F4 3B    STA $3BF4,Y
48          PHA
08          PHP
98          TYA
E9 08 00    SBC #$0008
30 2F       BMI (2F bytes down)
28          PLP
68          PLA
F0 03       BEQ (3 bytes down)
90 13       BCC (13 bytes down)
6B          RTL
48          PHA
E2 20       SEP #$20
B9 78 3C    LDA $3C78,Y
10 04       BPL (4 bytes down)
C2 20       REP #$20
68          PLA
6B          RTL
C2 20       REP #$20
68          PLA
C2 02       REP #$02
6B          RTL
48          PHA             
E2 20       SEP #$20
B9 78 3C    LDA $3C78,Y
D0 05       BNE (5 bytes down)
C2 20       REP #$20
68          PLA
18          CLC
6B          RTL
3A          DEC A
99 78 3C    STA $3C78,Y
C2 20       REP #$20
68          RTL
38          SEC
6B          RTL
28          PLP
68          PLA
6B          RTL

I suggest writing these two portions of code elsewhere. There is plenty of free space in C0 starting at C0/DC10 up to C0/EF9F. This is more than enough. The only thing left to do is to change the offset of the two JSL in the following portion of code. You will also need to put any NOP you see. This code is also taken from the 24 bit HP patch applied to a clean ROM:

First Jump

Code:
C2/1342: 22 31 D6 C0     JSL $C0D631
C2/1346: EA              NOP
C2/1347: EA              NOP
C2/1348: EA              NOP
C2/1349: EA              NOP

Second Jump

Code:
C2/2CCB: 22 13 D6 C0     JSL $C0D613
C2/2CCF: EA              NOP
C2/2CD0: EA              NOP

That's it! This should make both patches work together!


RE: 30,000 damage patch and 24 bit monsters HP patch conflict - Zeemis - 04-18-2012

I love you


RE: 30,000 damage patch and 24 bit monsters HP patch conflict - SSJ Rick - 04-18-2012

looks like madsiur is gonna be a new admin pretty soon lol


RE: 30,000 damage patch and 24 bit monsters HP patch conflict - madsiur - 04-18-2012

(04-18-2012, 03:32 PM)Poco Loco Wrote: looks like madsiur is gonna be a new admin pretty soon lol

Hey! Hey! This is not a thread to spread rumors, although I find this one pretty interesting. It would be a honor but with responsibilities as well. I'm really dedicated to modifying and understanding FFVI and I only try to share the tiny bit I know about it.

By the way, the 32k damage patch does interfere with other patches that use some free space in C0 such as these ones:

Code:
+-----------------------------------------------------------+
| Offsets       bytes     Name                Author        |
|-----------------------------------------------------------|
|C0D674-C0D688   21    Not Scary Enough     Imzogelmo       |
|C0D674-C0D68C   25    FF3dashB             Master ZED      |
|C0D674-C0D68C   25    FF3dashC             Master ZED      |
|C0D660-C0D685   38    To Joker Doom (1.0)  Lenophis        |
+-----------------------------------------------------------+

Source: Imzogelmo's Patch Allocation document


RE: 30,000 damage patch and 24 bit monsters HP patch conflict - SSJ Rick - 04-18-2012

well whenever u are ready man

u got my vote


RE: 30,000 damage patch and 24 bit monsters HP patch conflict - kefkaroth - 02-27-2013

i was wondering if it isn't too much to ask if someone could email me a copy of ff6 with the 24 bit hp patch in it. since i don't know the hex editing stuff nor have time to learn it this way i could have a rom with the patch installed on it to make my dream ff6 rom.


RE: 30,000 damage patch and 24 bit monsters HP patch conflict - SSJ Rick - 02-27-2013

just so u know, u wont be able to use ff3usme after a patch is applied


RE: 30,000 damage patch and 24 bit monsters HP patch conflict - Angelo26 - 02-27-2013

(02-27-2013, 05:34 PM)kefkaroth Wrote: i was wondering if it isn't too much to ask if someone could email me a copy of ff6 with the 24 bit hp patch in it. since i don't know the hex editing stuff nor have time to learn it this way i could have a rom with the patch installed on it to make my dream ff6 rom.

According to the Forum Rules...
Lord Sutebenu Wrote:Don't ask for anything illegal. No warez, appz, hacks, porn, or anything considered sick. You ask once, you will be told the rules. You ask twice, you are banned.

Read the forum rules before posting.


RE: 30,000 damage patch and 24 bit monsters HP patch conflict - madsiur - 02-27-2013

(02-27-2013, 05:34 PM)kefkaroth Wrote: i was wondering if it isn't too much to ask if someone could email me a copy of ff6 with the 24 bit hp patch in it. since i don't know the hex editing stuff nor have time to learn it this way i could have a rom with the patch installed on it to make my dream ff6 rom.

If you have the time to make a dream version of FF6 you have time to learn hex editing, the most basic thing outside using an editor. Such a statement is a mark of laziness or motivation lacking.

Poco Loco Wrote:just so u know, u wont be able to use ff3usme after a patch is applied

In fact, he could still edit the last 65536 HP of the monster. Only the first of the 3 bytes has to be edited with a hex editor.


RE: 30,000 damage patch and 24 bit monsters HP patch conflict - Gi Nattak - 02-28-2013

(02-27-2013, 10:04 PM)Angelo Wrote:
(02-27-2013, 05:34 PM)kefkaroth Wrote: i was wondering if it isn't too much to ask if someone could email me a copy of ff6 with the 24 bit hp patch in it. since i don't know the hex editing stuff nor have time to learn it this way i could have a rom with the patch installed on it to make my dream ff6 rom.

According to the Forum Rules...
Lord Sutebenu Wrote:Don't ask for anything illegal. No warez, appz, hacks, porn, or anything considered sick. You ask once, you will be told the rules. You ask twice, you are banned.

Read the forum rules before posting.

Ah well, no, asking for or requesting a patch is okay, this is a hacking site after all.
What Sute there seems to be saying, is anything outside of ROM hacking that is illegal or of bad taste is not permitted. 'Hacks' meaning computer hacks of some kind, like viruses and such. Someone please correct me if I'm wrong about this.