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 


Find static address

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

Joined: 08 Sep 2019
Posts: 2

PostPosted: Sun Sep 08, 2019 10:48 pm    Post subject: Find static address Reply with quote

Hello everyone,

I'm trying to find the gold value in UnderMine v0.1.3.4 which obviously works if I search 4 bytes and do some scans.. now I'm trying to find the static address(correct me if I'm wrong here, doing it first time) but everytime I generate the pointermap or do the pointerscan a couple times I end up with no results.

Can someone explain?
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 70

Joined: 14 Jul 2007
Posts: 2178

PostPosted: Mon Sep 09, 2019 12:18 am    Post subject: Reply with quote

A few possibilities:
a. You are not scanning for the right address (does changing it actually give you more gold? try spending/earning some to test)
b. You did not go deep enough and hence, no results. Very game-dependent (well, abstraction-dependent).
c. The gold value does not belong to any specific object. (maybe it's just a variable in a script)
d. The developer made some efforts to hide it.

Instead of looking for a static pointer, try to find a piece of code that reads the value, hook that code with an AOB script (so it will work in future versions, too). In the script, take a copy of the pointer and use that for your sinister purposes Wink
Back to top
View user's profile Send private message
Immusama
How do I cheat?
Reputation: 0

Joined: 08 Sep 2019
Posts: 2

PostPosted: Mon Sep 09, 2019 1:10 am    Post subject: Reply with quote

a. Changing does affect the gold so it's the right one and not the display only one.
b. I think I did? I searched the address opened the debug to see what writes to that address and I saw that it has an offset +38, tried to find the pointer with given informations but still doesn't show anything.
c. Not experiences enough to know what to do
d. Maybe

I literally started doing this yesterday so I don't know what I'm doing to be honest..
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 70

Joined: 14 Jul 2007
Posts: 2178

PostPosted: Mon Sep 09, 2019 2:04 am    Post subject: Reply with quote

Before that +38, there's a register.
That's the value of the pointer, save that to a variable of your own.

Select that instruction in the Memory Viewer, then go to:
Tools->Auto Assemble->Template
Pick AOB injection.

1.
Below these lines:
label(code)
label(return)

Put:
label(pGold)
registersymbol(pGold)

2.
Below the instruction of yours, put:
mov dword ptr [pGold],xxx -> xxx is the name of the register

3.
Below these lines:
return:
registersymbol(INJECT)

Put:
pGold:
dd 0

4.
Below this line:
unregistersymbol(INJECT)

Put:
unregistersymbol(pGold)

When you enable the script pGold will eventually take the pointer's value.
Go to the address list and click the button above: "Add address manually".
Put [pGold]+38 into into the address field and Gold into description and click ok.
Now you should see the gold in the table.
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 Discussions 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