Porting Codes

Started by kats, October 29, 2008, 07:15:40 AM

Previous topic - Next topic

kats

Hi I'm kind of new to hacking and I wish to know how to port codes from the GCN PAL version of Twilight Princess to the Wii PAL version, any tips in the right direction would be much appreciated.

hetoan2

first convert the GCN code to a WiiRD one
then find an offset from a code that's already been ported.

pray to god that it works and if it does you're in the clear.

if it's an ASM code you're pretty much screwed without a usbgecko

kats

Ok thats all cool and all but what is an offset code and whats an asm code?

Igglyboo

LOL
You cannot port a gamecube codes to wii codes, even if its the same game.

biolizard89

Quote from: kats on November 02, 2008, 02:06:39 AM
Ok thats all cool and all but what is an offset code and whats an asm code?
Well, I am not an expert in this, but as I understand it, when you are porting codes, you are hoping that the code you want to port is very close in RAM to another code that already exists for both regions/versions of the game you are porting between.  For example, let's say I'm looking for the XYZ coordinates in the PAL version of a game, but I have the XYZ coords for USA, and I have the XYZ velocity for both USA and PAL.  And let's say that velocity occurs 24 bytes after the coords on the USA version.  I'm going to hope that the offsets are the same, and check the address 24 bytes before the PAL velocity address in the PAL game.  If it works, then the port was successful.  If not, try finding an offset from a different code.

Hope I explained that okay -- anyone is welcome to correct me if I made a mistake.

Oh, and actually, it is indeed possible to port codes between platforms.  It requires that the developers didn't rewrite the code dealing with the variable you're looking for when they switched platforms, and that the SDK compilers didn't mess with it differently.  It often doesn't work, but sometimes it's fine.

kats

Woah ok, maybe I just won't try this seems way over my head, essentially I want to port what I call the ninja codes from the GC version Twilight Princess, such as black zore tunic, mask always on etc etc etc

Igglyboo

He is trying to port from Gamecube TP to Wii TP, which is not possible.

kats

Why isn't it possible? I can convert them to wiird codes I just don't know how to make them work for the WII version of TP

biolizard89

I don't know about the particular game in question, so I won't argue there, but in some games, it is possible to port codes between platforms.  It depends on how the developers ported the game.

Converting codes from AR format to WiiRD format has nothing to do with porting the codes; all you have done is changed the format in which the same codes are stored.  To port the codes, you need to find the new RAM address where the variables reside (based on the offset from an existing code).

Warchamp7

Quote from: biolizard89 on November 02, 2008, 03:02:13 AM
I don't know about the particular game in question, so I won't argue there, but in some games, it is possible to port codes between platforms.  It depends on how the developers ported the game.

The game world is flipped completely between both versions of the game so I'm sure a number of factors were altered

biolizard89

Quote from: Warchamp7 on November 02, 2008, 04:34:22 AM
Quote from: biolizard89 on November 02, 2008, 03:02:13 AM
I don't know about the particular game in question, so I won't argue there, but in some games, it is possible to port codes between platforms.  It depends on how the developers ported the game.

The game world is flipped completely between both versions of the game so I'm sure a number of factors were altered
Okay, yeah, sounds like porting would be unlikely to work in that case.