Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Finding the function

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
matviy
How do I cheat?
Reputation: 1

Joined: 05 Jun 2011
Posts: 4

PostPosted: Wed Aug 03, 2011 11:29 am    Post subject: Finding the function Reply with quote

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
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8586
Location: 127.0.0.1

PostPosted: Wed Aug 03, 2011 1:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
gaming04
Expert Cheater
Reputation: 0

Joined: 06 Dec 2010
Posts: 190

PostPosted: Fri Aug 05, 2011 12:54 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
SwaggaJackin'
Master Cheater
Reputation: 2

Joined: 06 Nov 2009
Posts: 312

PostPosted: Fri Aug 05, 2011 1:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites