Final Fantasy Hacktics

Modding => Help! => Topic started by: FelixFlywheel on February 10, 2011, 09:11:00 pm

Title: How do you use ASM hack codes?
Post by: FelixFlywheel on February 10, 2011, 09:11:00 pm
Sorry I'm a n00b at this... but I haven't a clue how to use the ASM hack codes... I think it involves something with the emulator debugger, but I don't know exactly what to do... I use the PSXfin emulator...   All I wanna do is disable the BGM in FFT using this code.

SCUS_942.21
0x00033DF4
01000234
0x00033E90
01000234
0x00034010
01000234

Could someone tell how to go about doing this?  Thanks! ^_^
Title: Re: How do you use ASM hack codes?
Post by: philsov on February 11, 2011, 11:20:06 am
the debugger is more for finding out where information is.

To apply ASM hacks, you only need a hex editor (like Winhex) and an extracter/importer (like CDMage).  

You go to those 3 offsets (0x033DF4, for example) and start typing in those numbers, making sure to overwrite as you do so.  You want the same size file as when you started.  

Using the first line, it's a very shortened way of saying:

0x033DF4 -> 01
0x033DF5 - >00
0x033DF6 -> 02
0x033DF7 -> 34

Navigation with a hex editor is quite inutitive.

For example, the square in yellow is 0x04CAB4
http://philsov.ffhacktics.com/Pictures/equipx3.PNG

Meanwhile, to get scus to edit:
http://philsov.ffhacktics.com/Pictures/equipx7.PNG

You extract with CDMage, hex edit the change, save, and then Import the file back in with CDMage.

Remember to keep a backup scus/iso at all times :)
Title: Re: How do you use ASM hack codes?
Post by: FelixFlywheel on February 16, 2011, 06:27:31 pm
This is gonna sound sad, but it's been a week, and I still haven't figured it out...  I don't understand this part.

0x033DF4 -> 01
0x033DF5 - >00
0x033DF6 -> 02
0x033DF7 -> 34

How did you come up with the numbers 01, 00, 02, and 34?

Also... the numbers I'm supposed to type in come in a pair of 8.  How do I fit them into the separate sections of 4?  Or are they supposed to overlap out of that section? 

I'm using the same hex editor as you showed.  I tried a bunch of times, and the file size remained the same... yet the ROM wouldn't start.  >_>  It kept saying "r3000 executed illegal opcode"

When I imported the file back in with the CD Mage, it said "Import file is longer than file in image.  "Import file will be truncated.  Continue?  Okay / Cancel"

@__@
Title: Re: How do you use ASM hack codes?
Post by: philsov on February 16, 2011, 06:56:50 pm
QuoteHow did you come up with the numbers 01, 00, 02, and 34?


From above.  First line:
0x00033DF4
01000234

Only 2 numbers per slot.

At location 33DF4, you put 01 and just keep going.  You'll end the 01000234 sequence at location 33DF7.  Or...

0x033DF4 -> 01
0x033DF5 - >00
0x033DF6 -> 02
0x033DF7 -> 34

Whatever is in location 0x033DF6 changes to 02 (e.g.).  When you overwrite, the file size should stay the same.  If CDMage is telling you that the import size is larger, you're not overwriting and the file size is in fact not remaining the same.
Title: Re: How do you use ASM hack codes?
Post by: FelixFlywheel on February 16, 2011, 09:11:54 pm
Okay, I'm starting to get it for the first code.  But I haven't a clue how to find 33E90's location.  >_>  Because I don't see a 90 at the top... I do see a 9 in one column, and a 0 in the next, and they're close together but not on the same column.  Tried that though, and it didn't seem to work... And there's several 0's in each column. x_x  I'm pretty certain after I figure this out, I'll be able to do other ASM hacks easily.  xD
Title: Re: How do you use ASM hack codes?
Post by: philsov on February 16, 2011, 10:59:07 pm
QuoteBut I haven't a clue how to find 33E90's location.


All the numbers but the last one are on rows on the left.  They are perfectly sequential, and remember, THIS IS HEX.  Base 16.  After 19 is 1A, 1B, 1C, 1D, 1E, and 1F before 20.  

The last number in the location is in the column.  

Change the value at the specified locations.  See pic :)

Title: Re: How do you use ASM hack codes?
Post by: FelixFlywheel on February 17, 2011, 12:53:16 am
I DID IT!!! ^O^ *Phew!*  Thank you so much for taking the time to help me! ^____^

Now it's time for me to rip that Aqua Soul sound effect for RPG Maker! >:]