WiiRd forum

USB Gecko Related => Gecko OS & USB Gecko => Topic started by: willyjo423 on October 04, 2011, 07:45:27 PM

Title: Convert Pal Gecko codes to Us gecko codes
Post by: willyjo423 on October 04, 2011, 07:45:27 PM
Hi there, I just want to know how to convert pal gecko (wiird) codes to us gecko codes? Is there an existing program that does that? If so, what would that be?
Thanks a lot for any information.
Title: Re: Convert Pal Gecko codes to Us gecko codes
Post by: dcx2 on October 04, 2011, 08:30:28 PM
There's no real easy way to do it, AFAIK.  You'll need a hacker's help.

If it's an ASM patch, you'll need dumps from both regions to find the ASM.

If it's a data code, there may or may not be an offset.  Look at existing codes from both regions.  If there is no good offset, it will have to be re-hacked.
Title: Re: Convert Pal Gecko codes to Us gecko codes
Post by: goemon_guy on October 04, 2011, 09:16:20 PM
In some cases, that method doesn't work.
In most cases, it *will* though.

You need two identical codes from each region to do that as well, so it's not as practical all the time.

And, as dcx2 said, if it's an ASM code, (any codes beginning in C2, C3, F2, F3 or F6 and maybe some others) will need memory dumps!
Title: Re: Convert Pal Gecko codes to Us gecko codes
Post by: Bully@Wiiplaza on October 08, 2011, 09:18:31 AM
well, porting is easy and idiot save, if one considers some specific facts.
Note that it´s my way prefered way of doing it when there´s no specific offset for all codes.
There are other possibilities, obviously.

Open the ram dump in a hex editor (or gecko.net if you want to port ASM) and go to the address you want to port (if ASM, go to g.net disassembly).
Look around and spot a few addresses in a row that seem to be rare in memory. (that´s why I prefer porting C2 codes, ASM is awesome for templates since any instruction without big numbers can be taken and verified). Copy and paste your template (shouldn´t contain values looking like addresses or changing values like highscore or something like that) into the search box (on mem. view for asm or on hex editor search). Start searching from the beginning of that memory range (80 or 90). It´s possible to start higher, but one needs to pay attention to not skip the wanted address.

When it´s done, check if your template brought you back to where you copied the values. If it didn´t, try again with different values.
If it succeeds, open the dump from another region. Paste that template and hit search. Navigate to the same spot where your address was and it should look like the other dump there. Copy that address. Replace the new address with the old one in your code. (let´s say there was only one address to port)

Ported! Successrate: 99,9%

I never failed with that method and porting ASM became more convenient than any other code. ;D
I wish there would be a tool that uses my thoughts above to port codes... possible? :confused:
I don´t think that any existing tool can do that well. All of them I´ve seem were error prone and didn´t port correctly. :rolleyes:
Title: Re: Convert Pal Gecko codes to Us gecko codes
Post by: Deathwolf on October 08, 2011, 10:40:15 AM
There's a tool.. it's called "Auto-Porter"
Title: Re: Convert Pal Gecko codes to Us gecko codes
Post by: Bully@Wiiplaza on October 08, 2011, 01:19:44 PM
Quote from: Deathwolf on October 08, 2011, 10:40:15 AM
There's a tool.. it's called "Auto-Porter"
It sucks much since it makes many mistakes on multi line codes and only works for mkwii.
The program doesn´t even accept pastes for me. Useless tool in my opinion.