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".
<?xml version="1.0" encoding="utf-8" ?> <Patches> <Patch name="Disable the game music"> </Patch> </Patches>
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.
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".
<?xml version="1.0" encoding="utf-8" ?> <Patches> <Patch name="Disable the game music"> </Patch> </Patches>
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.
Title: Re: How to format a hack for FFTorgASM
Post by: Dome on June 17, 2011, 06:47:59 pm
I started with this
Blank support ability over short charge adds 25% bonus skill hit Abilities like talk skill, spells, physical abilities gain 25% to hit unless they are 100% to hit to start with. BATTLE.BIN 0x0011F5D8 1980013C CE382294 CE3830A4 D03822A4 D0382394 CE382294 92006492 10008430 03000410 21104300 82180200 21106200 902D248C