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 


How to get address when clicking buttons in game

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials
View previous topic :: View next topic  
Author Message
wazlord
Expert Cheater
Reputation: 4

Joined: 17 Sep 2012
Posts: 208

PostPosted: Sat May 09, 2015 10:22 am    Post subject: How to get address when clicking buttons in game Reply with quote

Hi,

Is there a tutorial available on how to trace the address and trace whats the code does after the button is clicked?

thx
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Fri May 15, 2015 12:27 pm    Post subject: Reply with quote

Can you explain it a little better ?.

A button is clicked where ? in the game or on your trainer ?.

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
wazlord
Expert Cheater
Reputation: 4

Joined: 17 Sep 2012
Posts: 208

PostPosted: Sat May 16, 2015 4:19 am    Post subject: Reply with quote

Looking for a way to hook when a button in game is pressed.

like, "End Turn" or "OK" etc

What i would like to do is to start the trace on what its doing after the button is clicked, eg: calculate the final value for resources from multiple city ingame, etc

assuming the final value is unknown and not shown anywhere in game, so wanted to trace from the start point when the button is clicked
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Sat May 16, 2015 4:22 am    Post subject: Reply with quote

Look for things that happen when the button is pressed. For example, if pressing a button would heal you, look for your health, once you find that set a break point on it then press the button. Your break point should be triggered then you can trace the stack to find which function was ultimately invoked when the button was pressed.

In some cases this may be a bit more tedious or threading may be involved which will kill stack tracing. All depends on the game and how its coded.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
wazlord
Expert Cheater
Reputation: 4

Joined: 17 Sep 2012
Posts: 208

PostPosted: Sat May 16, 2015 6:57 pm    Post subject: Reply with quote

well, in this case that the value isnt shown anywhere in the game, so you have no way to confirm the value and i believe its just code where it did a cmp function.
Back to top
View user's profile Send private message
rawgreaze
Expert Cheater
Reputation: 0

Joined: 23 May 2009
Posts: 108
Location: United Kingdom

PostPosted: Sat May 16, 2015 7:27 pm    Post subject: Reply with quote

wazlord wrote:
well, in this case that the value isnt shown anywhere in the game, so you have no way to confirm the value and i believe its just code where it did a cmp function.

Can you get the value by scanning for 1 when it's your turn, then 0 when it's not?

_________________
Do not ask Dark Byte about online cheats. He doesn't know any and wont help finding them.[center]
[/center]
Back to top
View user's profile Send private message
wazlord
Expert Cheater
Reputation: 4

Joined: 17 Sep 2012
Posts: 208

PostPosted: Sun May 17, 2015 4:47 am    Post subject: Reply with quote

taking one of the example.

On the main page to create custom faction, there are some attributes that we can select.
Each attribute have either +ve value or -ve value.
And it have the max limit that you need to meet before can create this Custom Faction.

So i managed to get the address for the value shown but the problem is when i click "OK" Button, it seems to recalculate maybe using other registers and get back to the creation page.

So i am trying to find out what happened after the button is clicked and to find that address or pointer its using to recalculate the total points(which in this case went way beyond the limit) although on the page its staying at 0.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials 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