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 


"app.dll"+offset pointing to a weird location? (Me

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

Joined: 29 Aug 2015
Posts: 4

PostPosted: Sat Aug 29, 2015 9:46 am    Post subject: "app.dll"+offset pointing to a weird location? (Me Reply with quote

Hello everybody!
I am new to all of this and been lurking around for the past days to gather as much information as possible. Because of that I must say I am a bit uneasy asking this probably absolutely noobish question.

I found the address of a value I want to change, I found the Base Address using pointer scans which is "app.dll" + myOffset.

I managed to get the base address of the module in c++ and double checked with the Memory Viewer in Cheat Engine, the address seems to be correct. However, when I simply add the Offset to the base of my module I get access violations.

I checked the memory (ctrl+g and put in "app.dll" + myOffset) and indeed the only thing there is an add operation. While this explains why I cannot read from this memory region I fail to see where I can get the actual address from that I am searching for.

Best Regards,
Tri
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25796
Location: The netherlands

PostPosted: Sat Aug 29, 2015 10:40 am    Post subject: Reply with quote

read the 4 byte value at "app.dll" + myOffset
http://forum.cheatengine.org/viewtopic.php?t=422516

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Triclone
How do I cheat?
Reputation: 0

Joined: 29 Aug 2015
Posts: 4

PostPosted: Sat Aug 29, 2015 11:31 am    Post subject: Reply with quote

Sadly it appears that I am doing something wrong, perhaps casting it to LPCVOID changes the actual address im trying to access and thus I get the following results? Also, on the right side is what I was expecting to get.

puu. sh/jSRse/8a661c375e.png
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat Aug 29, 2015 11:35 am    Post subject: Reply with quote

Check the return of ReadProcessMemory, perhaps you do not have permission to read the value or the handle is invalid.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Triclone
How do I cheat?
Reputation: 0

Joined: 29 Aug 2015
Posts: 4

PostPosted: Sat Aug 29, 2015 11:42 am    Post subject: Reply with quote

Oh thank you atoms... Should have been the first thing I did. Tried to feed the function the window handle of the application, not the process handle.

Thanks! I think this can be closed now. :facepalm:
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 programming 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