Author Topic: HP overroll due to materia  (Read 4573 times)

Tenko Kuugen

  • Public Enemy
  • *
  • Posts: 1416
    • View Profile
    • Twitter
HP overroll due to materia
« on: 2012-09-18 19:06:37 »
With my new custom materia effect offsets ( technically it should be possible with a lot of KOTRs too )
you can reduce your HP to below 1% base and then it turns into 30k.
This might have something to do with the 9999 disable patch as well as the .exe that allows for stat growth above 100 ( still have that pm from NFITC1 )
Is there any way to prevent this?

nfitc1

  • *
  • Posts: 2981
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: HP overroll due to materia
« Reply #1 on: 2012-09-18 19:30:12 »
It's something to do with the limit disable patch. In vanilla, equipping 10 KotRs appears like it will reduce your MHP to 0, but somewhere before that it is set to 10. That is the lowest MHP you can have after materia "bonuses" are applied. The increased stat growth shouldn't be affecting it either.

Tenko Kuugen

  • Public Enemy
  • *
  • Posts: 1416
    • View Profile
    • Twitter
Re: HP overroll due to materia
« Reply #2 on: 2012-09-18 19:38:47 »
surprised nobody found this earlier
do you think there is any way to prevent this from happening?

nfitc1

  • *
  • Posts: 2981
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: HP overroll due to materia
« Reply #3 on: 2012-09-18 19:48:10 »
Dunno. I don't use the limit disabler so I can't say.

Tenko Kuugen

  • Public Enemy
  • *
  • Posts: 1416
    • View Profile
    • Twitter
Re: HP overroll due to materia
« Reply #4 on: 2012-09-18 20:00:07 »
For now I just made it really difficult to get it to roll over, but I hope I'll find a solution for this

dziugo

  • *
  • Posts: 1470
    • View Profile
    • A new copy of FF7 thanks to Salk. Pack (zip/rar/etc) your saved game before sending it to me.
Re: HP overroll due to materia
« Reply #5 on: 2012-09-20 21:31:55 »
It's the limit breaking patch. For some reason I've left the changes made when I was testing the possibility for HP to go as high as 64k and that involved changing signed comparisons to unsigned ones. When HP drops below zero, vanilla ff7 does a signed check, modded ff7 does unsigned one (-10 <= 9999 yields true while 0xFFF6 <= 0x7530 is false). I'll fix it if I find the Skerb/YAMP compiler...

Tenko Kuugen

  • Public Enemy
  • *
  • Posts: 1416
    • View Profile
    • Twitter
Re: HP overroll due to materia
« Reply #6 on: 2012-09-21 02:01:19 »
can you just tell me which addresses in the .exe I need to fix for it?

dziugo

  • *
  • Posts: 1470
    • View Profile
    • A new copy of FF7 thanks to Salk. Pack (zip/rar/etc) your saved game before sending it to me.
Re: HP overroll due to materia
« Reply #7 on: 2012-09-21 08:27:24 »
Offsets change depending on which version of ff7.exe you use. If you make a diff between the original file and the one with 9999lb applied, and post it here, I'll tell you which modifications need to be reverted. Either that, or wait.

Tenko Kuugen

  • Public Enemy
  • *
  • Posts: 1416
    • View Profile
    • Twitter
Re: HP overroll due to materia
« Reply #8 on: 2012-09-21 09:56:13 »
I'll wait. The only .exe's I have around are vanilla, bootleg installed and Nightmare.
i dont even have the single 9999 break patch around

dziugo

  • *
  • Posts: 1470
    • View Profile
    • A new copy of FF7 thanks to Salk. Pack (zip/rar/etc) your saved game before sending it to me.
Re: HP overroll due to materia
« Reply #9 on: 2012-09-22 12:22:13 »
As I have no idea where I've put the mentioned patcher, here are the offsets for 1.02 english ff7.exe that needs to be changed (reverted):
Code: [Select]
Address    Find   Replace
0x1C6EE9   0x76   0x7E
0x1C6FDF   0x76   0x7E
0x1CDC1B   0x76   0x7E
0x1CDC33   0x76   0x7E
0x2CAEE1   0x76   0x7E
0x2CB036   0x76   0x7E
0x2E3AEF   0x77   0x7F
Sorry for the inconvenience.

If you are reading this, and used the offsets from 9999lb patch without actually giving me a shout, you should check it by yourself if your version needs to be changed.

Tenko Kuugen

  • Public Enemy
  • *
  • Posts: 1416
    • View Profile
    • Twitter
Re: HP overroll due to materia
« Reply #10 on: 2012-09-24 01:13:21 »
Works fine now ( just wanted to say that )

dziugo

  • *
  • Posts: 1470
    • View Profile
    • A new copy of FF7 thanks to Salk. Pack (zip/rar/etc) your saved game before sending it to me.
Re: HP overroll due to materia
« Reply #11 on: 2012-09-24 08:55:46 »
Thanks for the info!

Tenko Kuugen

  • Public Enemy
  • *
  • Posts: 1416
    • View Profile
    • Twitter
Re: HP overroll due to materia
« Reply #12 on: 2012-09-24 10:46:34 »
Came across a odd bug I was unable to replicate though. ( most likely due to the fact that I changed materia equip stats values )
Aerith had negative HP and MP ( it showed 75000 HP, healing her increased that and at 99999 it rolled over to 0 and real hp )

dziugo

  • *
  • Posts: 1470
    • View Profile
    • A new copy of FF7 thanks to Salk. Pack (zip/rar/etc) your saved game before sending it to me.
Re: HP overroll due to materia
« Reply #13 on: 2012-09-24 11:29:31 »
Whoa, so it exceeded 65k? That's odd... If you find a way to replicate it, gimme a shout (PM works best).