• Welcome to Final Fantasy Hacktics. Please login or sign up.
 
June 19, 2025, 06:14:57 pm

News:

Use of ePSXe before 2.0 is highly discouraged. Mednafen, RetroArch, and Duckstation are recommended for playing/testing, pSX is recommended for debugging.


Changing Formula?

Started by DrBreen, February 28, 2011, 09:11:51 am

DrBreen

Hello everyone.
I need help in formula changing.
1.Is there a way to make Y in formula 2D(PA*(WP+Y)) negative,like PA*(WP-4)?
Or is there a formula hack for PA*(WP-Y)?
2. Is there a way to add damage recoil(like in 42 Formula Dmg(PA*Y) DamCa(PA*Y/X) which is used for "Work" command)?
I believe i saw this somewhere,but i failed at finding it.

formerdeathcorps

Quote from: DrBreen on February 28, 2011, 09:11:51 am
Hello everyone.
I need help in formula changing.
1.Is there a way to make Y in formula 2D(PA*(WP+Y)) negative,like PA*(WP-4)?
Or is there a formula hack for PA*(WP-Y)?
2. Is there a way to add damage recoil(like in 42 Formula Dmg(PA*Y) DamCa(PA*Y/X) which is used for "Work" command)?
I believe i saw this somewhere,but i failed at finding it.


1) My formula hack currently does not support this because -WP doesn't scale nearly as well throughout the game as dividing overall damage by some fraction (because -4 WP will be crippling early and near trivial end-game).  Of course, if you're using a hack where WP hardly scales, feel free to ignore my advice.
As for how to get FFT to implement this (without using my formula hack, which isn't complete yet), type in 252 for Y and change 0x185E73 to 80 and 0x185E78 to 20.

2) http://ffhacktics.com/smf/index.php?topic=6538.40
It's in the works.
The destruction of the will is the rape of the mind.
The dogmas of every era are nothing but the fantasies of those in power; their dreams are our waking nightmares.

DrBreen

February 28, 2011, 10:58:02 pm #2 Last Edit: February 28, 2011, 10:58:58 pm by DrBreen
Quote0x185E73 to 80 and 0x185E78 to 20.

1)My intuition say that i need to change this in BATTLE.BIN,but just for confirmation-i need to chagne this in battle.bin,yes?
So,after this game will treat variable Y not as [0..255],but as [-128..128],yes? Hm. If 252 will be treated as -4,250 will be -6?

2)
QuoteE1 and 3: I intend to do all that.
E2: MA + 255 without evasion can miss between shell/MADEF/worst compatibility/elemental half/null.  If it's "curative", then the first two don't apply.
Knock Back: I'm not sure.  I already know how to add it, but I'm not sure knockback's the best use.  Maybe a flag to load healing/cancel status checks to help me save more space while allowing any formula to heal or ignore protect/supports?

Note, my following hack assigns commands to Kanji-space.  This is temporary as I try to fully realize my efficiency gains.  Once all the formulas are coded, I'll likely move this back into the main formula routine space.
Also, the following hack hard-codes the Work formula to deal 25% damage as recoil as default.  It will be noted, so future hackers may freely change it.
Lastly, this hack depends on the other consolidation hack for weapon formulas for certain offsets.

You're talking about that post(there was also a huge spoiler-hidden code)? If so,it's not exactly what i needed,because there is some other features other than recoil...Or it's impossible to add recoil to ANY FORMULA without adding those features?

formerdeathcorps

1) Sorry, I typed too fast.  That was RAM.  IN BATTLE.BIN that's 0x11EE73 and 0x11EE78.
Yes, 250 will equal -6.

2) See the first post I made on 2/5.  That contains what my current plans are.  It's not all entirely coded, but you will be able to toggle recoil as a flag.
The destruction of the will is the rape of the mind.
The dogmas of every era are nothing but the fantasies of those in power; their dreams are our waking nightmares.

DrBreen

March 01, 2011, 07:40:32 am #4 Last Edit: March 01, 2011, 08:26:26 am by DrBreen
1)Ok,i got.

2) But here i have the trouble to understand.
From what i read i understood what actual code isn't released yet,but you have "Recoil Flag" in your plans,don't you?
Or there is already code what create this flag?
Because from all that ASM there my head got dizzy.