Final Fantasy Hacktics

Modding => Hacking/Patching Tools => Topic started by: SentinalBlade on February 21, 2009, 02:22:39 am

Title: So i got this formula Editor....
Post by: SentinalBlade on February 21, 2009, 02:22:39 am
Melonhead recently sent out a beta of his orgASM. it comes with all the ASM hacks form zodiac,razele, and nates, but it comes with teh ability to add your own as well.

My gift to you guys will be a SIMPLE formula editor.

http://www.imgshack.info/images/au8y7reatsu04c9yz5m.png (http://www.imgshack.info/images/au8y7reatsu04c9yz5m.png)

X and Y are in every formula. values relating to what stats are loaded are represented by Q, X and Z.

this will help alot with simpler things like making MA * Y, into PA * Y
or changing rafa's formula(the one in teh screenshot) into PA + Y/2 * SP(hit X Times)

When melonhead releases his orgASM, ill release my .xml file with all the formulas and ill give instructions on what you need to put. (like to load PA in that spot, you need the number 36 in that value box)

happy....err commenting?


EDIT: Project Halted, please read here for reason. http://www.ffhacktics.com/forum/viewtop ... 7281#57281 (http://www.ffhacktics.com/forum/viewtopic.php?p=57281#57281)
Title:
Post by: Archael on February 21, 2009, 04:27:59 am
rad/10
Title:
Post by: Zozma on February 21, 2009, 04:33:23 am
niceee
Title:
Post by: DarthPaul on February 21, 2009, 08:51:28 am
I have nothing more to say than *fap*
Title:
Post by: SydneySoul on February 21, 2009, 10:29:32 am
I love the hooded man!
Title:
Post by: Kokojo on February 21, 2009, 01:53:09 pm
orgasm/10
Title:
Post by: Vanya on February 22, 2009, 11:23:24 pm
Excellent! ^_^
Title:
Post by: Celdia on February 23, 2009, 12:41:52 am
So much potential to be useful. Win!
Title:
Post by: BeoulveBlack on February 23, 2009, 01:41:52 pm
so, i guess this means we don't have anymore reason to pester you guys with formula requests...?
Title:
Post by: Celdia on February 23, 2009, 01:44:04 pm
Oh there are always reasons. I think this'll just mean they need to be GOOD reasons.
Title:
Post by: DarthPaul on February 23, 2009, 01:49:00 pm
I can come up with many reasons to bug them for formulas still.

But I won't.
Title:
Post by: SentinalBlade on February 23, 2009, 03:34:12 pm
Lol yea, this is to get the simpler requests out of the way and to make quick edits much easier on people.

Complete revamp of a formula will need to be done with one of the ASMers help, but ill be damned if i get another request for a PA * Y formula-.-
Title:
Post by: Vanya on February 23, 2009, 09:19:48 pm
Will this also be able to mod the weapon formulas? ^_^
Title:
Post by: SentinalBlade on February 23, 2009, 10:32:22 pm
god i hope so, not with the initial data released. but ill work on it.
Title:
Post by: Vanya on February 24, 2009, 10:19:36 am
Yeah! That would be wicked! ^_^

*sorta off topic*

Do you know what addresses in Battle.bin are reserved for ASM hacks?

*back on topic*

Would the user have the ability to overwrite a formula with a jump instruction to an address in the designated *free* space so the user can choose where to expand a formula with ASM at a later date?
Title:
Post by: SentinalBlade on February 24, 2009, 03:31:27 pm
Definatly at a later date. i meant to talk to zodiac about setting aside some space in battle.bin for general use.

Zodiac hands it out pretty sparringly, but with the amount of ASM hackers we've been getting lately... :P

But yea, i plan to....but lets try and take it one step/release at a time
Title:
Post by: Vanya on February 24, 2009, 04:16:25 pm
Sounds fair. ^_^
I want to know the safe spots right now because my lazy-ass self is probably going to start working on some ASM hacks of my own that have been deemed too difficult. It's too bad we don't have a utility like xkas for FFT.
Title:
Post by: Tea on February 26, 2009, 08:04:17 pm
when and where can we expect this beauty? :o
Title:
Post by: SentinalBlade on February 26, 2009, 08:18:32 pm
Its getting there. im probably about 20% into all the formulas that can be edited...which is to say down to about 2A
Title:
Post by: LastingDawn on February 26, 2009, 10:35:51 pm
Why did I never reply to this topic yet? You are doing us all a Great service, thank you very much Sentinal for this excellent experiment into user friendly Formula changes!
Title:
Post by: IceCreamedNinja on March 05, 2009, 11:48:42 pm
awesome! i can't wait til this is released..good work man.
Title:
Post by: red_bird on March 09, 2009, 11:33:56 am
about asm hacks... should they be implemented before or after i'm done with all the other patching?
Title:
Post by: Vanya on March 10, 2009, 10:50:38 am
Should not have any effect on your FFTPatcher changes since the patchers does not modify the formula data in any way. Right, SB?
Title:
Post by: red_bird on March 10, 2009, 08:22:58 pm
final question:  should i apply asm and fftpatcher before or after i apply fftacttext?
Title:
Post by: melonhead on March 10, 2009, 11:01:57 pm
Quote from: "red_bird"final question:  should i apply asm and fftpatcher before or after i apply fftacttext?

You should do FFTorgasm last, but it really doesn't matter.
All of the programs edit different parts of the ISO. EXCEPT that FFTorgasm can be configured to overwrite ANYTHING (but usually it probably shouldn't be).

One thing to beware of is to not modify the font in FFTPatcher.
Title:
Post by: red_bird on March 11, 2009, 11:14:32 am
what does FFTorgasm do?
Title:
Post by: Tea on March 11, 2009, 05:06:51 pm
It's the name of the program that is made public in this topic.
Title:
Post by: red_bird on March 16, 2009, 11:06:28 am
thanks.  looking foreward to it coming out.

and Tea?  your sig is getting me dirty looks from the librarians.  keep it up.
Title:
Post by: jimmyjw88 on March 16, 2009, 11:22:33 am
That's Eve from BlackCat right? ^^
I love her =D
She is so pretty and cute, not to mention deadly. Lol =p
Title:
Post by: Tea on March 16, 2009, 01:34:18 pm
That's Eve alright. No idea why librarians look funny at it, it's pretty decent.
Title:
Post by: SentinalBlade on March 16, 2009, 04:03:42 pm
her boobs are extenuated~

Lets keep this topic on topic please.

Im up to formula 33 now. i found the offsets for alot of them in the japanese documentation, but the code is rewritten/coded differently in american, in the US release, its all a few bytes to change for EACH formula, in the japanese one, all magic attacks appearntly link to a really big block of code, that branches for each formula used. its all very confusing, but its faster than debugging the snot out of the formulas the normal way.
Title:
Post by: Tea on March 16, 2009, 04:14:04 pm
nice going. Is it, by the way, possible to change the undead reversal? And the chance that the formula gives a status? And can we use even more terms than the original formulas do? Giddy giddy giddy so excited~ :p
Title:
Post by: SentinalBlade on March 18, 2009, 11:33:22 pm
Lets not get ahead of ourselves. eventually you can do things like that, but for now itl be changing a bit of simple things. after i get them all in there i can work out which ones can have new parts are which parts replaced.

@more terms question::: And you cant add things to formulas if it makes it bigger than it actually was. like you cant make the MA+x% formula into PA - SP + (Y * x) / 3

there just isnt enough space. and to do this, we would have to sacrifice a bit of each ASMers battle.bin space(Which means alot less hacks) in the future it may be possible, but there are plenty that are overly big and useless for the moment.

Status: up to 3D
Title:
Post by: Vanya on March 19, 2009, 01:55:02 pm
I look forward to using this tool. Quick question. The formula slots after 64; are they too small to hold a small formula?
Title:
Post by: LastingDawn on March 20, 2009, 10:32:30 am
Not quite... Razele once mentioned in IRC the game has a piece of code to Stop formula's at 64, and to revert to 01 past them. So he said it will eventually be possible to have many custom formulas.
Title:
Post by: Vanya on March 20, 2009, 10:38:45 am
Thanks. I imagine that bit of code just needs a couple of NOP's placed over it, no? I'd do it myself if I knew where the code was.

Off topic: LD, are you able to get on chat right now?
Title:
Post by: Skip Sandwich on April 06, 2009, 08:17:42 am
okay, just making sure I understand the size issue correctly, so I don't go bother our ASMers without good cause

would changing the unarmed formula from PA * [(PA * CasterBrave)/100] to PA * [(PA * CasterMaxHP)/CasterCurHP)] be theoretically possible? the only real change other then the swapped variables is replacing one of the constants (100) with another variable (CasterCurHP)

likewise, changing the Axe formula from rnd(1..PA) * WP to become [(PA * CasterMaxHP)/CasterCurHP)] * WP probablly wouldn't be possible with this utility, as it would increase the size of the formula, by adding additional variables and operations, right?
Title:
Post by: Vanya on April 06, 2009, 08:29:54 am
Your logic seems sound.
Title:
Post by: Skip Sandwich on April 06, 2009, 08:53:17 am
okay good, I was pretty sure I had it right, I just wanted to confirm.
Title:
Post by: SentinalBlade on April 06, 2009, 09:50:44 am
100 to HP is actually a bit more complicated.

100 is a static number. its just there, and preset.

HP you have to load into a register(4 bytes of space) and then have space for math(at least 4 bytes), rather than just 100(which is just 4 bytes by itself(as an operation to load it))

Honestly, it depends on the formula. sometimes when a formula uses a flat/static number, it takes 3 lines of ASM(12 bytes). one to save a register's value, 1 too ORI 64(100) into the register, math involved. IF the register needs to be used later, it calls it back into the register, which is at least a total of 4 lines.

Like i said, it all depends on the formula. sometimes the same operation is written in different ways. when i finish this, i should have a list of the amount of space needed and how much there is for each formula.

an example is Rafa's Truth formula, and Dark Whisper(tiamat monster skill). same operation(up until DArk Whisper's 6.25% status) but the code for both of them differs greatly, for no appearnt reason at all. Rafa's truth formula has at least 4 extra lines of code that Dark whisper does not(up until it tries to add the status %)
Title:
Post by: Vanya on April 06, 2009, 03:09:00 pm
Interesting. I can't wait to see the end product.
Title:
Post by: SentinalBlade on April 09, 2009, 07:08:38 pm
Project Halted

http://www.ffhacktics.com/forum/viewtop ... 7281#57281 (http://www.ffhacktics.com/forum/viewtopic.php?p=57281#57281)
Title: Re: So i got this formula Editor....
Post by: FFMaster on August 07, 2010, 07:03:37 am
There is a 0% chance of this project ever getting restarted right?
Title: Re: So i got this formula Editor....
Post by: SentinalBlade on August 26, 2010, 05:00:53 pm
I wish i knew for sure. I want to pick it up again, but i know the minute i do, i will probably get busy. Though, i have been slowly picking out the addresses for some formulas that can be changed in simple ways... but i only have like two or three.
Title: Re: So i got this formula Editor....
Post by: Vanya on August 26, 2010, 09:00:01 pm
You wouldn't happen to know the addresses of the formulas, would you?