Porting codes between Regions of Brawl (US ---> JPN)

Started by shadowofchaos, February 08, 2009, 07:20:46 AM

Previous topic - Next topic

shadowofchaos

Anyway I've gotten a code in both regions...

And had the offset...

Allow Replays Longer Than Three Minutes [brkirch] (US)
040EB804 60000000
To save the replay, just press the button you normally would to save replays (the save replay button will not appear on screen.)

I'm aware that this isn't the updated version... but it's a code that's exactly the same as the one for the JPN Version:

Allow Replays Longer Than Three Minutes [brkirch] (JPN)
040EB87C 60000000
To save the replay, just press the button you normally would to save replays (the save replay button will not appear on screen).

I got an offset between them by subtracting...

Wait... I got a wrong offset by using Brkirch's updated version... it's different from this one... (That might have just solved my problem.. LOL)

Anyway... if the offsets don't work for the code (I'm trying unrestricted pause camera and such)... should I move UP or DOWN in memory each time? That's my real question...

Romaap

You can try to get an Memdump for both regions, then open them in a hexeditor.

if the code you want to port is 040EB804 60000000, it writes to the address 800EB804.
so in the hexeditor go to 0EB804 and copy the whole line thats in there.
it will be something like this:
000EB804   3F 70 00 03 81 76 00 90 41 39 01 29

then search in the other region's memdump for 3F 70 00 03 81 76 00 90 41 39 01 29, it will give you an address that is mostly pretty close to the original one.

shadowofchaos

#2
DUDE!!! Thank you!!!!

That's my first ever successful port!!! YES!!!!



Allow Replays over 3 minutes (Updated) [original by brkirch] (ported by shadowofchaos)
040E5D80 60000000
04952CC4 60000000
04952D64 60000000

Now... for ASM code though... I would have need of help from that...

I think I saw something by Black_Wolf already in that sense...

I got this:

No Closeups (Phantom Wings) (Attempted JPN Port)
C20AA628 00000002
3C60805B 38636D80
C0030010 00000000
C20A9EB4 00000002
3C60805B 38636D80
60000000 00000000


From this:

No Closeups [Phantom Wings] (USA)
C20AA690 00000002
3C60805B 38636D80
C0030010 00000000
C20A9F1C 00000002
3C60805B 38636D80
60000000 00000000

I "kind of" got is as the camera zooms in to the center though...

From the USA Code when I put it in ASM Wiird converter... I got this:

lis r3,-32677
addi r3,r3,28032
nop


But when I load it back in the other way... it comes out as this:

C20A9F1C 00000002
3C60805B 38636D80
60000000 00000000


What's the function of the two lines that are missing in the converter?

And where did he get the values from to load for the camera?

Edit:

I'm also having problems with this code:

Copy Submit Data (US) [Spunit 262]
2119E99C 4182001C
0519E99C 60000000
21196C99 40800244
05196C98 40800008
E0000000 80008000


Copy Submit Data [spunit262] (port attempt by shadowofchaos)
2119E528 4182001C
0519E528 60000000
211967FD 40800244
051967FC 40800008
E0000000 80008000

Doesn't seem to work... however... I took a look at memory viewer into the address 8119E528 and found that it has a different value than the "check" on the US Version... 40820008 instead of 4182001C...

That results in EVERYTHING being unable to be "managed"...

Question is... what about the second part of the code?


Almas

The Phantom Wings code posted is actually two ASM codes written back to back. Separate the codes, and run them through Link's converter one by one.

ASM Codes tend to be a lot easier to port (since they access fewer memory values directly, using a relative method instead which is usually consistent across regions), although it can be tricky to find where the break should be without a hex viewer to sift through some memory dumps.

shadowofchaos

Okay  :)

Thank you again!!!

I looked at it and put the first three lines into the converter... and then the other three lines... yay!!!

I'll attempt to port it again later after I get back from school...

However, I'm still stumped on the "Copy Submit Data"...