Help With "Bar" Health Code [resolved]

Started by J, March 08, 2010, 04:41:27 AM

Previous topic - Next topic

J

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

GMO

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

  • Art of Fighting
  • Art of Fighting 2
    • Fatal Fury
    • Fatal Fury 2
      • Fatal Fury Special
      • Street Fighter Alpha 2
        • Clay Fighter
        • Eternal Champions
          • Doc Louis's Punch-Out!!
          • Legend of Zelda 64
            • Legend of Zelda 64 Master Quest (Inject)
            • King of Fighters '94
              • King of Monsters
              • Wonder Boy
                • Altered Beast
                • Teenage Mutant Ninja Turtles

http://gamemasterzer0.blogspot.com
For Codes, Guides, & Support Codemasters-Project
USB Gecko Facebook Page - My Wii's 4.1 U | 4.0 E

J

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

wiiztec

#3
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
If there's any code at all that you want to be button activated, or even able to toggle on & off, and I have the game, just PM me and I'll make it happen

GMO

What game are you trying to make a health code for?
http://gamemasterzer0.blogspot.com
For Codes, Guides, & Support Codemasters-Project
USB Gecko Facebook Page - My Wii's 4.1 U | 4.0 E

dcx2

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.

J

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! ^-^

schooluser

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!