Trying to get a handle on GPF patching.

Started by dagarath, July 05, 2009, 06:52:14 AM

Previous topic - Next topic

dagarath

Hi guys, I wanted to ask something about translations and GPF patches.  I know the basics of patching memory, like hex conversion etc.  I am trying to get a handle on actually creating a GPF patch for Monster Hunter G because I am quite impatient waiting for the guy who is currently working on translating it.  Nobody has heard from him in over a month, and I really just want basic items, monster names, etc. translated for my own playing which I can achieve in only a matter of days(Once I figure this out).

As far as the GPF format goes I am trying to patch Address:0x67C050 from the main.dol which contains  ãƒ‰ã,¹ã,¬ãƒ¬ã,ªã,¹è¨Žä¼è¨"ç·´

with this: 5949414e204b5554204b55  (Comes out as "Yian Kut Ku" without quotes)

From what I understand from the little info out there since the japanese characters take two entries per character this should be what you find in my GPF:  
010067c048000000000000145949414e204b5554204b55000000000000000000 (lots of 0s to clear the leftover characters)

Now since I originally posted this in the wrong place, I've done some reading.  I am using address 0067c048 so that I get the required 8 characters, should I not be using 00? or if I am using 00 do I have to keep my patches to 8bit?

Should I be using something more like this? (My gecko wont load the game anymore atm so I can't test anymore lol)

040467c050000000000000045949414E0467c05800000000000004204b55540467c05c00000000000004000000000467c0600000000000000400000000


This definately doesn't work, can anyone steer me in the right direction?  Sorry for my newbishness.   Thanks in advance for any information that might help me wrap my head around what I am doing wrong.

EDIT: I FINALLY GOT THE GAME WORKING MOMYGIID!!! I mean omigod! Time to test my theory about the patch, will let you all know what happens.

EDIT2: Didn't work, I am gonna start smaller and just patch a single monospace character out of the game lol. That totally worked, now to scale up! It didn't do much as it was only this 018067c038000000026f68 but it applied to the correct area.

EDIT3: Umm... Generally a patch or codes byte length has to be a power of 2 right?

Final Edit: Alright I totally need help.

0680625B5C000000104F6C642080625B60000000107069636B80625B6400000010627865008068396E000000104F6C642080625B62000000107069636B80625B660000001062786500

this is my finished patch...only it doesnt change anything.  I think its being overwritten by the disc after loading up a savegame.  Well I am done, I'm gonna just keep working on my main.dol until I find something or someone to help me get a handle on this.  I don't really understand what the game is doing exactly because I don't have a USB Gecko, o well =/