| View previous topic :: View next topic |
| Author |
Message |
matviy How do I cheat?
Reputation: 1
Joined: 05 Jun 2011 Posts: 4
|
Posted: Wed Aug 03, 2011 11:29 am Post subject: Finding the function |
|
|
I have a game that has characters. When i click on one of the characters, a little window pops up with this character's statistics.
If i understand correctly, there has to be some function that opens up this window, and at least one of it's parameters should be the ID of the character that i clicked.
I'm trying to use OllyDbg, but i can't seem to figure out any way to find out which function this is. There arn't any text strings or anything that i can follow.
Any help?
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8586 Location: 127.0.0.1
|
Posted: Wed Aug 03, 2011 1:00 pm Post subject: |
|
|
Another method you could use is attempting to locate the unique ID for each character. If you can find that, set a breakpoint on the ID (hardware on access) and then target the character you should get some hits as to where its being accessed from then.
_________________
- Retired. |
|
| Back to top |
|
 |
gaming04 Expert Cheater
Reputation: 0
Joined: 06 Dec 2010 Posts: 190
|
Posted: Fri Aug 05, 2011 12:54 am Post subject: |
|
|
| I've done something like this before on Dragon Age Origins. Find a value that is being read inside that window you were looking for, and back trace it to the point where there is a jump test before the code is read. Never knew how to properly use functions, so I never went further than that. Hope that's a good start for you.
|
|
| Back to top |
|
 |
SwaggaJackin' Master Cheater
Reputation: 2
Joined: 06 Nov 2009 Posts: 312
|
Posted: Fri Aug 05, 2011 1:05 am Post subject: |
|
|
A long, but time consuming method is to find something to break at, such as when the cursor is moved in the menu (break when the cursor moves, or better yet when the menu appears).
Verify you've found the address by setting a breakpoint and press the menu button and see if the game breaks. If it does, you can start a trace and immediately hit the menu button and have the game break and end the trace, you'll know for sure that the code that brings up the menu will be in that trace log (although it'll most likely be hundreds or thousands of lines long) and you can just work backwards from the break point in the trace log to see if anything sticks out.
|
|
| Back to top |
|
 |
|