View previous topic :: View next topic |
Author |
Message |
wazlord Expert Cheater Reputation: 4
Joined: 17 Sep 2012 Posts: 208
|
Posted: Sat May 09, 2015 10:22 am Post subject: How to get address when clicking buttons in game |
|
|
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 |
|
|
STN I post too much Reputation: 42
Joined: 09 Nov 2005 Posts: 2672
|
Posted: Fri May 15, 2015 12:27 pm Post subject: |
|
|
Can you explain it a little better ?.
A button is clicked where ? in the game or on your trainer ?.
_________________
|
|
Back to top |
|
|
wazlord Expert Cheater Reputation: 4
Joined: 17 Sep 2012 Posts: 208
|
Posted: Sat May 16, 2015 4:19 am Post subject: |
|
|
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 |
|
|
atom0s Moderator Reputation: 199
Joined: 25 Jan 2006 Posts: 8519 Location: 127.0.0.1
|
Posted: Sat May 16, 2015 4:22 am Post subject: |
|
|
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 |
|
|
wazlord Expert Cheater Reputation: 4
Joined: 17 Sep 2012 Posts: 208
|
Posted: Sat May 16, 2015 6:57 pm Post subject: |
|
|
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 |
|
|
rawgreaze Expert Cheater Reputation: 0
Joined: 23 May 2009 Posts: 108 Location: United Kingdom
|
Posted: Sat May 16, 2015 7:27 pm Post subject: |
|
|
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 |
|
|
wazlord Expert Cheater Reputation: 4
Joined: 17 Sep 2012 Posts: 208
|
Posted: Sun May 17, 2015 4:47 am Post subject: |
|
|
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 |
|
|
|