• Welcome to Final Fantasy Hacktics. Please login or sign up.
 

How do you use ASM hack codes?

Started by FelixFlywheel, February 10, 2011, 09:11:00 pm

FelixFlywheel

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! ^_^

philsov

February 11, 2011, 11:20:06 am #1 Last Edit: February 11, 2011, 11:20:43 am by philsov
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 :)
Just another rebel plotting rebellion.

FelixFlywheel

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"

@__@

philsov

February 16, 2011, 06:56:50 pm #3 Last Edit: February 16, 2011, 06:58:40 pm by philsov
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.
Just another rebel plotting rebellion.

FelixFlywheel

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

philsov

February 16, 2011, 10:59:07 pm #5 Last Edit: February 16, 2011, 11:01:43 pm by philsov
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 :)

Just another rebel plotting rebellion.

FelixFlywheel

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! >:]