Please login or register.

Login with username, password and session length
Advanced search  

News:

Don't be hasty to start your own mod; all our FFT modding projects are greatly understaffed. Find out how you can help in the Recruitment section.

Pages: [1]
Dome [Posts: 4890]
  • View Profile
  • share
  • [June 17, 2011, 12:07:13 PM]
How to format a hack for FFTorgASM
« on: June 17, 2011, 12:07:13 PM »
Tutorial:
I'm hijacking this thread, it's now "How to format a hack for FFTorgASM". (You can do this, Dome, it's not even harder than modding Spam!)

We are going to convert Xifanie's no-music hack:


Step 1
Create a completely empty .xml file. It looks like this and you don't even need to understand it. You just need to paste this once and then keep putting more hacks in the same file.

Step 2
Add the skeleton for this patch. You'll do this every time you want to add a new hack to "dome.xml".

This will get your hack to show up. It won't do anything yet, though - we need to add the three places the code is modified.

Step 3
Add the code for each spot. Code is inserted with a Location tag.

The file is the game file being written to. SCUS_942.21 codes to "SCUS_942_21". BATTLE.BIN codes to "BATTLE_BIN" and WORLD.BIN codes to "WORLD_WORLD_BIN". OPEN.BIN to "OPEN_OPEN_BIN"... basically, look at the path on the CD and replace slashes and periods with "_".

The offset is the address. Just take the "0x00012345" chunk and snip the "0x" and any leading zeroes.
The code comes between the two.


Steps 4 & 5
Put in the three code snippets this hack needs and you're done. That's really all there is to it for 80% of hacks. The ALMA and RAD .xml files are huge but it's just a bunch of Location tags; it's no more complicated than this.


Just save this as an .xml file in any text editor.

The End

To add a new hack, just tack on another framework and go from there:

« Last Edit: June 17, 2011, 10:19:40 PM by Dome »
"Be wise today so you don't cry tomorrow"
Is this real life? Or Final Fantasy?
RedWorld [Posts: 78]
  • View Profile
  • My Tumblr
  • share
  • [June 17, 2011, 09:29:39 PM]
Re: Asm to .xml wishlist
« Reply #1 on: June 17, 2011, 09:29:39 PM »
Wow Dome! I really like this! c: I'll have to figure out what to request once I figure out how to do it. (ASM stuff of course.) c:



"Dear God, what's it like in your funny little brains? It must be boring." - Sherlock Holmes
pokeytax [Posts: 515]
  • View Profile
  • share
  • [June 17, 2011, 09:49:45 PM]
Re: Asm to .xml wishlist
« Reply #2 on: June 17, 2011, 09:49:45 PM »
I'm hijacking this thread, it's now "How to format a hack for FFTorgASM". (You can do this, Dome, it's not even harder than modding Spam!)

We are going to convert Xifanie's no-music hack:


Step 1
Create a completely empty .xml file. It looks like this and you don't even need to understand it. You just need to paste this once and then keep putting more hacks in the same file.

Step 2
Add the skeleton for this patch. You'll do this every time you want to add a new hack to "dome.xml".

This will get your hack to show up. It won't do anything yet, though - we need to add the three places the code is modified.

Step 3
Add the code for each spot. Code is inserted with a Location tag.

The file is the game file being written to. SCUS_942.21 codes to "SCUS_942_21". BATTLE.BIN codes to "BATTLE_BIN" and WORLD.BIN codes to "WORLD_WORLD_BIN". OPEN.BIN to "OPEN_OPEN_BIN"... basically, look at the path on the CD and replace slashes and periods with "_".

The offset is the address. Just take the "0x00012345" chunk and snip the "0x" and any leading zeroes.
The code comes between the two.


Steps 4 & 5
Put in the three code snippets this hack needs and you're done. That's really all there is to it for 80% of hacks. The ALMA and RAD .xml files are huge but it's just a bunch of Location tags; it's no more complicated than this.


Just save this as an .xml file in any text editor.

The End

To add a new hack, just tack on another framework and go from there:

« Last Edit: June 17, 2011, 10:01:30 PM by pokeytax »
Dome [Posts: 4890]
  • View Profile
  • share
  • [June 17, 2011, 10:47:59 PM]
Re: How to format a hack for FFTorgASM
« Reply #3 on: June 17, 2011, 10:47:59 PM »
I started with this

I did it right?


« Last Edit: June 17, 2011, 10:48:35 PM by Dome »
"Be wise today so you don't cry tomorrow"
pokeytax [Posts: 515]
  • View Profile
  • share
  • [June 17, 2011, 10:52:51 PM]
Re: How to format a hack for FFTorgASM
« Reply #4 on: June 17, 2011, 10:52:51 PM »
Looks good to me. Try it out!
Dome [Posts: 4890]
  • View Profile
  • share
  • [June 17, 2011, 10:53:50 PM]
Re: How to format a hack for FFTorgASM
« Reply #5 on: June 17, 2011, 10:53:50 PM »
Thanks for the awesome tutorial, Poke :-)

"Be wise today so you don't cry tomorrow"
Dome [Posts: 4890]
  • View Profile
  • share
  • [June 18, 2011, 11:54:57 AM]
Re: How to format a hack for FFTorgASM
« Reply #6 on: June 18, 2011, 11:54:57 AM »
I've tried it, and it seems to boost the hit % by 10 and not 25
Did I do something wrong?

"Be wise today so you don't cry tomorrow"
Bad code, beware! The NOPs are coming to eat you!
formerdeathcorps [Posts: 1322]
  • View Profile
  • share
  • [June 18, 2011, 12:04:09 PM]
Re: How to format a hack for FFTorgASM
« Reply #7 on: June 18, 2011, 12:04:09 PM »
I've tried it, and it seems to boost the hit % by 10 and not 25
Did I do something wrong?

No.  It's a 5/4x multiplier to hit chance so what normally be 40% rises to 50% while something normally being 80% rises to 100%.

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.
May I kill him?
Pride [Posts: 839]
  • View Profile
  • share
  • [June 24, 2011, 10:22:52 PM]
Re: How to format a hack for FFTorgASM
« Reply #8 on: June 24, 2011, 10:22:52 PM »
Requesting that this be moved to tutorials

    • Modding version: PSX
  • Check out my ASM thread. Who doesn't like hax?
    Pages: [1]