WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: Nutmeg on June 11, 2010, 08:36:00 PM

Title: Porting Pointers
Post by: Nutmeg on June 11, 2010, 08:36:00 PM
I don't know how to port pointers, and I want to learn how to.  So, if anybody would like to help me out, that would be great!  Here is what I am working with:

Item modifier *working on every stadium* [mdmwii] PAL
28585EE2 YYYYXXXX
48000000 806DF9D8
1400008C 000000ZZ
E0000000 80008000

I want to port it to NTSC-US.  I have a USB Gecko, but I can't find pointers with it yet.  So, if somebody who knows how to port pointers could teach me, I'd be very thankful.

-Thanks
Title: Re: Porting Pointers
Post by: Deathwolf on June 12, 2010, 08:25:01 AM
I'm not sure if it works on pointers but NTSC to PAL = +64

806DF9D8 + 64 = 806DFA3C

PAL version:

48000000 806DFA3C
1400008C 000000ZZ
E0000000 80008000
Title: Re: Porting Pointers
Post by: hetoan2 on June 12, 2010, 10:48:44 PM
Thats game specific that any offset like that works.

The real way to do it involves getting a USB gecko and creating the pointer manually by finding the address. IF the addresses for the pointers aren't the same.

depending on the game the assembly instructions can be region free and even early regions of the memory, but this is probably not the case here.

Its usually best to just go about remaking the code if you cannot find the pointer.
Title: Re: Porting Pointers
Post by: Nutmeg on June 13, 2010, 11:37:02 PM
I have a USB Gecko, but I'm pretty newbie... I'll try to make button activators for this game, but there are no code that I have to test the activators on.  So, for my first code, or code porting, I think it will be basic with just a base address.  I've read about pointers, but don't understand them too well.  If the code was already out, it would make it a lot easier for me to test the button activators.  But, button activators are useless without a code.  Which came first? (The chicken or the egg?)  Anyways, I don't know how to remake this code.  But if I had an attempt, this is what I would do:

1.  Search Type: 32 bits and specific value (because the values have already been found and given)

2.  Search for the base address of the item que using search type specific value and compare type equal, until I find the base address for "The Vice," or whatever is considered level one.

3.  Choose a different stadium.  I don't know which one to choose.  I'm stuck here.

4.  Find the address for the item que in the new stadium.

5.  |ba1-ba2| That is absolute value of base address one and base address two.  In other words, find the offset.

6.  Start setting up the code.


48000000 XXXXXXXX <--- Load into pointer
14YYYYYY 000000ZZ <--- write to pointer (32 bits)
E0000000 80008000 <--- Full terminator

X is the first base address and Y is the offset. |ba1-ba2|
ZZ is already given in the first code.

Where I am really unsure, is the X and Y values.  Also, #5 is confusing for me, so if somebody could critique that for me, I could learn a lot.

~Thanks
Title: Re: Porting Pointers
Post by: Nutmeg on June 19, 2010, 06:57:12 AM
My first code! Credits to mdmwii and Bully@Wiiplaza. The code is based on the original PAL version.

[NTSC-US]
Item Modifier *WORKING IN ALL STADIUMS* [Nutmeg]
28586F94 XXXXXXXX
8000000E 000000ZZ
E0000000 00000000
28586F94 XXXXXXXX
8000000E 000000ZZ
E0000000 00000000
28586F94 XXXXXXXX
8000000E 000000ZZ
E2000001 00000000
48000000 806E0BA8
DE000000 80008180
9421000E 0000024C
E0000000 80008000

NTSC-US Button Activator [Nutmeg]
28586F94 XXXXXXXX

I made the code, but don't know where to post it.  Also, I have more codes coming, but I can't get hacker status because I don't have the Legend of Zelda.  Is there any other way I can get hacker rank?

-Thanks Mathew_Wi for teaching me about pointers.
Title: Re: Porting Pointers
Post by: dcx2 on June 20, 2010, 02:22:18 AM
If you post enough codes that you make all on your own, a moderator can grant you hacker status.  We just need enough evidence to show you have a USB Gecko and you know how to use it.
Title: Re: Porting Pointers
Post by: Nutmeg on June 20, 2010, 05:15:56 AM
OK.  Thanks.  So for now, I'll post the codes that I make in this thread.

Another question about pointers now:

How is a double pointer written?  I have gotten this far:

48000000 XXXXXXXX  <---- First pointer (That will be the address of the first pointer)
DE000000 80008180  <---- Checks to make sure that the X value is between 80000000 and 81800000
58010000 YYYYYYYY  <---- Y value is (the value at ba X) + (offset to next po)  I'm not sure about the 5801. ???
DE000000 80008180  <---- Checks to make sure that (value at X) + (Y) is between 80000000 and 81800000
1400ZZZZ XXXXXXXX  <---- Z is the offset and X is the value.  (This is for a 32 bit value)
E0000000 80008000  <---- Resets the pointer and the base address.

Also, I'm a little bit unclear on when a double pointer is used.  My understanding is that it is used when the ba of a pointer (that is pointing to a changing address that you want to fill) is also moving.  So you find a po that points to the moving pointer. ???

Am I missing anything?  Feel free to critique it.    :cool:
Title: Re: Porting Pointers
Post by: Nutmeg on June 23, 2010, 11:53:11 PM
Home Team Score Modifier [Nutmeg]
48000000 80CFB33C
DE000000 80008180
140001C4 0000XXXX
E0000000 80008000

XXXX = home team score (in hex!)

This is been made already here: http://wiird.l0nk.org/forum/index.php/topic,1116.0.html
But... that code didn't work for me.  I found different addresses for different stadiums, so I don't know how that would work with that type of format.
Title: Re: Porting Pointers
Post by: Nutmeg on July 12, 2010, 07:33:58 AM
I shouldn't get banned for this code, even though it is wifi, because the code is NOT sent to the servers.  Yeah, it's pretty useless.

REMOVED- is IS sent to the server... XD

Have I posted enought codes to get permission to post in the USA wii codes section and in the database?  It feels awkward bumpingt this topic over and over... Much appreciated!

-Thanks
Title: Re: Porting Pointers
Post by: dcx2 on July 12, 2010, 01:26:45 PM
I'm pretty sure you only need Hacker status to post *new* Topics in the Wii Code forums.  Anyone can reply to an already existing topic.

Also, anyone can create new topics in the Wii Code Support forums.

Title: Re: Porting Pointers
Post by: Anarion on July 13, 2010, 10:25:43 PM
Hey Nutmeg, what game are you hacking?
Title: Re: Porting Pointers
Post by: Nutmeg on July 14, 2010, 06:37:44 AM
Hey Jay, and it is the Nutmeg you are thinking of.  The one that is also known as Username:

-Super Mario Strikers Charged
Title: Re: Porting Pointers
Post by: Anarion on July 14, 2010, 10:04:56 PM
yes I know its you.

MSC, eh? ok  :P
Title: Re: Porting Pointers
Post by: Nutmeg on July 15, 2010, 01:21:16 AM
I don't think I can "reply to topics in the "Codes" section.  Are you sure I don't need a rank or a certain number of posts?