WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: J on March 08, 2010, 04:41:27 AM

Title: Help With "Bar" Health Code [resolved]
Post by: J on March 08, 2010, 04:41:27 AM
So I'm new to the USB Gecko and I want to create an "infinite" health code for a game. So far, when searching in 32bit, I am left with these addresses (for one game level) :

80BA790C  C2891EB8 *
80BA792C  428A3D70
80BA7940  C2891EB8 *
80BA7B2C  C2891EB8
80BA7B4C  428A3D70 *
80BA7B60  C2891EB8

* - it seems that these addresses are for the display of the health bar. (i may be wrong about the specific addresses for the bar display). health bar is green. when health is lost, the green bar is decreased with each hit and you see a red bar behind it. if no further health is lost, the red bar decreases and displays the same amount as the green one and red will no longer be visible until further damage is taken. (i hope you get the picture lol)
- and it seems one address is for the size of the health bars. i played around with said address and the bar became longer.


Its been about 11 hours over the course of 2 days. I can't find the address for the health. Its not in MEM2 because I searched there and found nothing. I suspect that its all 3 of the other addresses. I feel like a failure. :( So. This is where "help" comes in. (i hope) xD
Title: Re: Help With "Bar" Health Code
Post by: GMO on March 08, 2010, 05:45:23 AM
This might be able to steer you into the right direction
http://www.mediafire.com/?myzy2hjzmmf (Work-In Progress; Adding more examples to it)

This will give you the basic concept to help with your search

Using this I was able to make Health codes for
Title: Re: Help With "Bar" Health Code
Post by: J on March 08, 2010, 06:28:59 AM
your tutorial looks great and whatnot but the thing with the game that i wanna create the code for is that the game doesn't use the same address for health in every level. i know pointers will be involved in the code i wanna create but i just don't know what to do with the 6 addresses that i posted in 1st post. i don't know how to make progress from that. :-\
Title: Re: Help With "Bar" Health Code
Post by: wiiztec on March 08, 2010, 06:35:52 AM
Maybe you should search in mem2 again this time under the assumption that health is not health but rather damage taken, like you search greater than when the health goes down

also you might want to use ASM instead of pointers often you can just nop the asm instruction that writes to the address and have an easier time making a shorter code
Title: Re: Help With "Bar" Health Code
Post by: GMO on March 08, 2010, 03:27:27 PM
What game are you trying to make a health code for?
Title: Re: Help With "Bar" Health Code
Post by: dcx2 on March 08, 2010, 04:11:01 PM
J - use poking to make sure that you're setting the real health value.  I would shoot for the green bar first.  Take a lot of damage, til you have like 1/4 of your health left.  Poke the health value back to full.  Now take 3/4 damage again.  If you die, then you weren't touching the real health.

Once you know you have the right health address, set a write breakpoint on it and find the instruction that's writing the new health value in.  Change the stw or stfs or sth or whatever to a nop.
Title: Re: Help With "Bar" Health Code
Post by: J on March 09, 2010, 07:24:23 PM
thank you wiiztec and dcx2 for your suggestions.
problem solved :]
just needed to search MEM2 again.

anyways, thanks to those of you who tried to help. this is a great forum. i'm still new and learning with the USB Gecko but i hope i eventually learn what i need to do to create the codes.

thanks again! ^-^
Title: Re: Help With "Bar" Health Code [resolved]
Post by: schooluser on March 10, 2010, 05:12:54 AM
I think the information in this thread should be stickied because it just explained more to me about health bars in text that I can go back and read over again while I'm doing it, and now it seems like something I can do pretty easily. Kudos to everyone for helping with this one!