Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to FFH! Where all your dreams come true!

Formula Hack v0.57  (Read 5955 times)
Pages: [1] 2 3
Bad code, beware! The NOPs are coming to eat you!
formerdeathcorps [Posts: 1323] Logged
  • View Profile
  • share
  • [November 14, 2011, 10:41:21 PM]
Formula Hack v0.57
« on: November 14, 2011, 10:41:21 PM »
I will update the version numbers as features get added.

v0.1 means only the existing formulas that allow evasion will have the evasion toggle.
v0.2 means that all existing formulas will be evadable, if you so flag it.
v0.3 will render my blind/transparent hacks entirely obsolete by rewriting how the AI understands base hit chance.  Doing it this way makes it very easy to make skills that boost/lower accuracy by X%.
v0.37 allows you to set W and C-M-EV.  It also contains Xif's global C-EV hack and my monster C-EV = A-EV hack.
v0.5 allows you to set all the necessary features for virtually any character stat (PA/MA/WP/LVL) or HP/MP% based damage / healing routine into Formula 11.  Incorporates by default a version of the Weapon Strike Fix, the Oil Fix, the Mighty Sword Fix, the HP/MP% DMG cap.
Currently Working On: v0.7 and v0.77, which synchronizes my routines (coded nearly two years apart), adds more optional features (multi-hit) and odd restrictions (katana break, item usage, etc.) from the original Square code, and codes the +Stats and pure % to inflict effect formulas.

Ev Toggle = how to set an attack as taking P/M-EV
Equip EV Explanation = how to set weapons/jobs as having P/M-EV
Instructions = how to set up X / Y / D / O bytes to take their proper values
If you don't understand the latter two, download instructions.rar.  There is a spreadsheet inside (expanded on Choto's original) that will assist with calculation.


Part I (Evasion)



Optional Features



Part II (XA/YA values)
Part III (Multipliers)
Part IV (Special Effects)






Limitations:
1) Drain or Recoil with AoE AND evadable or self-damage or healing creates unintuitive behavior.  In particular, I didn't check the cases where a drain HP attack is cast on self + recoil.
2) 2H and martial arts will apply as long as damage is flagged as physical.  I can make a version where 2H is never applied to physical damage OR a version where 2H only applies to weapon strike / weapon ranged attacks but NOT one where it corresponds only to WP in the formula without serious rewriting of this code's IF / JUMP statements (which is a headache as is).
3) Elemental fixes (to make heal + weak or weak + absorb more intuitive) was not coded because I wanted to get the original Square behavior down first.  More complicated fixes are on the TODO list.
4) Currently conflicts with almost every other ASM hack in terms of Kanji space.  Sorry, will fix later.
5) Hand slot break (break everything in RH, then LH) was not coded, but it's on the TODO list.
6) Does not address the +Stat formulas (that is next) or pure % to cause status formulas.  Also, % to cause damage may display totally wrong accuracies.
7) Does not support formulas taking both physical and magical multipliers, though I probably don't want to do this.
8) Breaks the Steal and EQ Break routines.  Top priority on my TODO list.

Formula:
[(XA1 +/- C) * XA2 * (D + 1) / 128]
OR
Accuracy = (XA1 + C) * (Br or Fa)%
Effect = [XA2 * (D + 1) / 128]
Built-IN ASMs:
Oil Fix
If Weapon Strike, then Ability Element = Ability Element + Weapon Element
If DMG / Heal deals X% of tar/cas|cur/max|HP/MP, then pre-elemental DMG / Heal caps at min{999 * X%, tar/cas|cur/max|HP/MP * X%}
Mighty Sword Fix
Optional Selections:
* CasBr% * TarBr%
* CasFa% * TarFa%
* Physical Multipliers
* Magical Multipliers
Proc Spell (ID Range 0x80 - 0xFF)
Proc Status Proc (ID Range 0x00-0x7F)
Break Target Gear (Random, Head, Armor, Accessory, WPN, Shield)
Healing
Drain
Undead Reverse
P or M-EV (a different implementation than above)
Recoil

Instructions:
See attachment...it should all be self-explanatory except:
1) Flags with black dots means they now have actual effects on damage (and not just for the AI)
2) E means if flagged, element = ability element + weapon element.
3) If you see two of the same letter next to 2+ different flags, that means all related flags need to be flagged for the effect to work.
4) H+ means HP healing, H- means HP damage, M+ means MP Healing, M- means MP damage, HM- means HP / MP damage where MP damage is half of HP damage, HM+ means HP / MP healing where MP healing is half of HP healing.  P means PEV and M means MEV.
5) If you don't have a weapon, XA1 defaults to Naked PA and XA2 defaults to PA * Br%.
6) If you use the first formula, XA2 takes all multipliers (like ATKUP).  If you use the second formula, XA1 does, but the sum takes compat.
7) If you flag healing, reducing multipliers like Shell or DEFUP will be ignored.
« Last Edit: November 29, 2013, 01:10:26 PM by formerdeathcorps »
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.
SaGa Frontier Hacker
Pickle Girl Fanboy [Posts: 1482] Logged
  • View Profile
  • Bio Research Lab
  • share
  • [November 14, 2011, 10:59:23 PM]
Re: Formula Hack v0.1
« Reply #1 on: November 14, 2011, 10:59:23 PM »
Did anyone ever get around to labeling all the known bits in FFTPatcher?
ALL THE THINGS Official Caretaker.
RavenOfRazgriz (Global Moderator) [Posts: 2961] Logged
  • View Profile
  • Universal Century Gundam Online "Project Icarus" Private Server
  • share
  • [November 14, 2011, 11:00:44 PM]
Re: Formula Hack v0.1
« Reply #2 on: November 14, 2011, 11:00:44 PM »
Did anyone ever get around to labeling all the known bits in FFTPatcher?

You can't relabel the column in FDC's screenshot, Melonhead has that hardcoded to the interface for some fucked reason.

I could release a Resources.zip that renames all the others properly, if I were less lazy.  It'd only take a minute, but it'd only really give names to all of 3 flags.
SaGa Frontier Hacker
Pickle Girl Fanboy [Posts: 1482] Logged
  • View Profile
  • Bio Research Lab
  • share
  • [November 14, 2011, 11:03:17 PM]
Re: Formula Hack v0.1
« Reply #3 on: November 14, 2011, 11:03:17 PM »
@raven: Yeah, go ahead, somebody will want it sooner or later.

@fdc: I'm super pumped about this, but I can't really afford to play or test it right now.  I'm sure that this thread will be full of congrats once word spreads.  But could you say what specific features are implemented in this version of the hack?
The Puppet ---Master---
Elric (Administrator) [Posts: 2496] Logged
  • View Profile
  • Youtube Channel
  • http://steamcommunity.com/id/Bones42
  • share
  • [November 15, 2011, 12:53:32 AM]
Re: Formula Hack v0.1
« Reply #4 on: November 15, 2011, 12:53:32 AM »
@raven: Yeah, go ahead, somebody will want it sooner or later.

I'm that somebody

Journey of the Five Youtube ChannelThe Lion War Current Status
  
Jot5 Leader :: Eventer :: OtherTLW Leader :: Eventer :: Other
Vanya [Posts: 3938] Logged
  • View Profile
  • My Facebook
  • share
  • [November 15, 2011, 03:23:29 AM]
Re: Formula Hack v0.1
« Reply #5 on: November 15, 2011, 03:23:29 AM »
Fuck yeah!! This is awesome! Can't wait for it to be finished. :D
Concepts and Balance Guru, Resident Violist
Zaen [Posts: 403] Logged
  • View Profile
  • share
  • [November 15, 2011, 04:17:05 AM]
Re: Formula Hack v0.1
« Reply #6 on: November 15, 2011, 04:17:05 AM »
Woooooohooooooo!!! All my dreams will come true soon enough!

"Oh, God!! The Hokuten!!" ~Guard, Sand Rat Cellar
Vanya [Posts: 3938] Logged
  • View Profile
  • My Facebook
  • share
  • [November 16, 2011, 01:58:52 AM]
Choto [Posts: 713] Logged
  • View Profile
  • share
  • [November 29, 2011, 01:42:33 AM]
Re: Formula Hack v0.37
« Reply #8 on: November 29, 2011, 01:42:33 AM »
Here is a quick conversion chart. It gives the decimal number you would enter in FFTPatcher to get the P evade and M evade listed. For those interested I included the upper and lower bits. Hopefully everything's correct.
Bad code, beware! The NOPs are coming to eat you!
formerdeathcorps [Posts: 1323] Logged
  • View Profile
  • share
  • [November 29, 2011, 02:06:05 AM]
Re: Formula Hack v0.37
« Reply #9 on: November 29, 2011, 02:06:05 AM »
Here is a quick conversion chart. It gives the decimal number you would enter in FFTPatcher to get the P evade and M evade listed. For those interested I included the upper and lower bits. Hopefully everything's correct.

Thank you.  This should help people who don't want to do the math.  I should also mention here that it was Choto who provided me the base for the .XML file, Xif who helped me do testing, and Raven who worked with me on designing the features of this hack.

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.
I'ma Firin Mah Lazorz!
RandMuadDib [Posts: 381] Logged
  • View Profile
  • share
  • [November 29, 2011, 04:21:37 PM]
Re: Formula Hack v0.37
« Reply #10 on: November 29, 2011, 04:21:37 PM »
*drools* been waiting for this... now if I could only pull myself away from skyrim long enough to try it

I will show you the power of SARDIIIIINES!!!!
SaGa Frontier Hacker
Pickle Girl Fanboy [Posts: 1482] Logged
  • View Profile
  • Bio Research Lab
  • share
  • [November 29, 2011, 04:45:33 PM]
Re: Formula Hack v0.37
« Reply #11 on: November 29, 2011, 04:45:33 PM »
Did I just see a bunch of event data in the ASM collective battle.bin map?  Is that gonna be optimized?  HOLEY SHITE!
Unreliable as a Mime.
The Damned [Posts: 2104] Logged
  • View Profile
  • share
  • [December 03, 2011, 09:32:20 AM]
Re: Formula Hack v0.37
« Reply #12 on: December 03, 2011, 09:32:20 AM »
(This reminds me....)

Wow. This is rather impressive and I say that as someone who's hardly been worrying about formulas as of late.

Have I told you how much I appreciate your work lately, Pride formerdeathcorps? Ah, Hell. I'll tell you again considering it's been a month: I greatly appreciate your work, Pride formerdeathcorps.

(No hugging.)
ALL THE THINGS Official Caretaker.
RavenOfRazgriz (Global Moderator) [Posts: 2961] Logged
  • View Profile
  • Universal Century Gundam Online "Project Icarus" Private Server
  • share
  • [December 03, 2011, 10:01:14 AM]
Re: Formula Hack v0.37
« Reply #13 on: December 03, 2011, 10:01:14 AM »
(This reminds me....)

Wow. This is rather impressive and I say that as someone who's hardly been worrying about formulas as of late.

Have I told you how much I appreciate your work lately, Pride? Ah, Hell. I'll tell you again considering it's been a month: I greatly appreciate your work, Pride.

(No hugging.)

It's too bad this Formula Hack is formerdeathcorps' mostly-solo work in terms of the actual coding and Pride hasn't so much as posted in this topic...
Unreliable as a Mime.
The Damned [Posts: 2104] Logged
  • View Profile
  • share
  • [December 03, 2011, 01:00:50 PM]
Re: Formula Hack v0.37
« Reply #14 on: December 03, 2011, 01:00:50 PM »
(Nice to see that I'm still blind, though thanking Pride is something that I meant to do.)

Haha. Whoops, my bad. Got my already screwed wires crossed, but fixed.

A formerdeathcorps is fine too.
Bad code, beware! The NOPs are coming to eat you!
formerdeathcorps [Posts: 1323] Logged
  • View Profile
  • share
  • [December 04, 2011, 03:33:45 PM]
Re: Formula Hack v0.37
« Reply #15 on: December 04, 2011, 03:33:45 PM »
All right, before I move onto XA/YA, I will consolidate some flags.  Just as a quick poll, how many of you actually use the random hits flag on AI moves?

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.
Mediator
Eternal [Posts: 2648] Logged
  • View Profile
  • share
  • [December 04, 2011, 03:35:23 PM]
Re: Formula Hack v0.37
« Reply #16 on: December 04, 2011, 03:35:23 PM »
I use it on the Lucavi "Limit Breaks" to ensure they don't spam it.

Here dying, join my legion of undeath. Your blood, the roses on unhallow'd graves!
SaGa Frontier Hacker
Pickle Girl Fanboy [Posts: 1482] Logged
  • View Profile
  • Bio Research Lab
  • share
  • [December 04, 2011, 08:32:30 PM]
Re: Formula Hack v0.37
« Reply #17 on: December 04, 2011, 08:32:30 PM »
Random hits is used for, um, Rafa, Malak, and Hyudra/Hydra/Tiamat, right?
Bad code, beware! The NOPs are coming to eat you!
formerdeathcorps [Posts: 1323] Logged
  • View Profile
  • share
  • [December 04, 2011, 08:57:07 PM]
Re: Formula Hack v0.37
« Reply #18 on: December 04, 2011, 08:57:07 PM »
That's right.  I'm just wondering if anyone even wanted that flag in their patch since it makes the AI retarded about using good moves, though obviously non-difficulty patches may need precisely that.

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.
SaGa Frontier Hacker
Pickle Girl Fanboy [Posts: 1482] Logged
  • View Profile
  • Bio Research Lab
  • share
  • [December 04, 2011, 09:02:31 PM]
Pages: [1] 2 3