WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: asianking on May 28, 2009, 07:03:46 PM

Title: Help with Increase Code
Post by: asianking on May 28, 2009, 07:03:46 PM
What if I don't want infinite cash code, but I want to double up the cash earning... So for example let's use "Help Wanted".

You have to do jobs each day to earn money to destroy the metero. Within those job, each day you can earn 200$ if you're good. Otherwise, you earn a low income. I wanted to hack so for example if you earn 200$, it would double up so you get 400$.

Is this a possible solution or the codes only allow infinite cash?
Title: Re: Help with Increase Code
Post by: Romaap on May 28, 2009, 07:32:07 PM
You would have to use ASM.

I will try to explain what you need to do:
Just right click on the address and click "breakpoint", then go to the breakpoint tab and click on the "write" radiobutton and click "set breakpoint".
When the game freezes go to the disassembler tab and go up a few times until you see one of the following instructions:

If it is addi then you just replace the value with another value, click the update button and then right click on the instruction in the right box and click gct code, go to the gct codes tab and replace the first "80" with "04"

If it is add then you have to make an ASM insert. But i can explain that later if you want to, can you tell me if it is an add or addi?

And if you dont understand something just ask :D
Title: Re: Help with Increase Code
Post by: asianking on May 28, 2009, 09:21:26 PM
i haven't found any code yet for that game. Beside, the cash has a cent which my search couldn't find. I don't know how to find a cash value. My current cash is $311.69, I tried float value, exact value ($311), exact cent value (69). Nothing came up yet. When I find the value, I'll repost or if you know how to search for cash value, you can teach me as well. I'm a newbie to this kind of stuff; hope you don't mind.

Thank you for helping....
Title: Re: Help with Increase Code
Post by: Romaap on May 28, 2009, 09:33:41 PM
you can just search for an unknown value, loose some money and search for less than previous value, loose some more money search for less than previous value again, gain some money search for more than previous money... etc.
Title: Re: Help with Increase Code
Post by: asianking on May 29, 2009, 01:41:32 AM
Yeah, I found the value and yet i have to exit the shop to see the update of my cash... Here's an image after breakpoints; I saw addi...

(http://img132.imageshack.us/img132/770/disassemblier.jpg)

The main address search is 8024595C, old value 000376AD, current value 0003017D
Title: Re: Help with Increase Code
Post by: Romaap on May 29, 2009, 09:38:36 AM
what was the instruction that was on top after the break?
because this addi is not the one that is adding the money.
Title: Re: Help with Increase Code
Post by: asianking on May 29, 2009, 12:28:29 PM
22864 is my dollar and cent value. So if thats not it, I'll repost another breakpoint.
Title: Re: Help with Increase Code
Post by: Romaap on May 29, 2009, 12:31:56 PM
can you show me a picture of the breakpoint tab right after it breaks?
Title: Re: Help with Increase Code
Post by: asianking on May 29, 2009, 04:04:51 PM
Game stop when i earn money by fishing

(http://img43.imageshack.us/img43/2341/breakpoint.jpg)
Title: Re: Help with Increase Code
Post by: Panda On Smack on May 29, 2009, 04:30:27 PM
stw r0, 12(r5)

it's storing 19320 (103200 in decimal) to 80245950 + C which is your money address

you would need to backtrack up the disassembler tree to work out when the new amount is being added to your current amount
Title: Re: Help with Increase Code
Post by: asianking on May 29, 2009, 05:02:25 PM
Can u tell what each line means?
C23BAEAC 00000002 -
38000064 9005000C -
60000000 00000000 -

I notice that the first line is the address that was added C2. What about the 0000002 and the rest?
Title: Re: Help with Increase Code
Post by: Panda On Smack on May 29, 2009, 05:21:32 PM
I got that code wrong, I'm new to all this myself but you could do something like:

li r23,100
add r0,r0,r23
stw r0,12(r5)

=

C23BAEAC 00000002
3AE00064 7C00BA14
9005000C 00000000

I have used r23 but you would need to check it's not being used and maybe pick another register. In your screengrab it's all 0's

This code puts the value of 100 in register 23, then it adds r0 and r23 together and puts the result back into r0 then we have the final line stw r0,12(r5) which is the initial bit of code at 803BAEAC

So whenever your money changes and the code at 803BAEAC is executed it takes the value and adds 100 to it
Title: Re: Help with Increase Code
Post by: Romaap on May 29, 2009, 05:46:38 PM
you have to search for an addi r0,rA,value or add r0,rA,rB.
It should be a couple of lines above the one in your picture.

and about that C2 code, you could better use:
addi r0,r0,100
stw r0,12(r5)
Title: Re: Help with Increase Code
Post by: paprika_killer on May 29, 2009, 07:26:57 PM
that would be a bad idea people.
this reading as this breaks when he exits a shop, this could trigger every time entering/exiting
something, making you money increase at unwanted moments
Title: Re: Help with Increase Code
Post by: Panda On Smack on May 30, 2009, 04:59:00 PM
Quote from: Romaap on May 29, 2009, 05:46:38 PM
you have to search for an addi r0,rA,value or add r0,rA,rB.
It should be a couple of lines above the one in your picture.

and about that C2 code, you could better use:
addi r0,r0,100
stw r0,12(r5)


if you put that in asm to wiird it turns the addi r0,r0,100 into a li r0, 100

maybe a bug?

if you use another register it's fine
Title: Re: Help with Increase Code
Post by: Romaap on May 30, 2009, 05:36:03 PM
Quote from: Panda On Smack on May 30, 2009, 04:59:00 PM
if you put that in asm to wiird it turns the addi r0,r0,100 into a li r0, 100

maybe a bug?

if you use another register it's fine
hmm.. you're right.... it only turns into a li if you use r0 for both :\
Title: Re: Help with Increase Code
Post by: paprika_killer on May 30, 2009, 05:48:43 PM
well it isn't usual to use r0 for operations. r3 is the more conventional one.
Title: Re: Help with Increase Code
Post by: Y.S. on June 02, 2009, 01:03:39 PM
Quote from: Gekko user manual page 348
Note that addi uses the
value 0, not the contents of GPR0, if rA = 0.
Title: Re: Help with Increase Code
Post by: Panda On Smack on June 02, 2009, 02:19:15 PM
Thanks Y to the S

Problem is that the documentation is a bit too complex for Joe Simple to read and understand

It's only when you somehow work something out and return back to the documentation you actually understand it

Needs to be re-written really in a way that's easier to understand and have actual code examples but that's a bit of a big job really.