Help with Increase Code

Started by asianking, May 28, 2009, 07:03:46 PM

Previous topic - Next topic

asianking

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?

Romaap

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:

  • add  rD, rA, rB
  • addi  rD, rA, value

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

asianking

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....

Romaap

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.

asianking

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...



The main address search is 8024595C, old value 000376AD, current value 0003017D

Romaap

what was the instruction that was on top after the break?
because this addi is not the one that is adding the money.

asianking

22864 is my dollar and cent value. So if thats not it, I'll repost another breakpoint.

Romaap

can you show me a picture of the breakpoint tab right after it breaks?

asianking

Game stop when i earn money by fishing


Panda On Smack

#9
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

asianking

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?

Panda On Smack

#11
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

Romaap

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)

paprika_killer

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
[SIGPIC][/SIGPIC]

Panda On Smack

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