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 


Address + Offset

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Murded
Newbie cheater
Reputation: 0

Joined: 16 Nov 2015
Posts: 14

PostPosted: Mon Nov 16, 2015 7:19 pm    Post subject: Address + Offset Reply with quote

Okay so after looking for a little while and trying out a few solutions myself I've decided to finally make a post about this.

Okay so if you take a look at the image below, I am trying to access the address using the details Underlined. (Ignore the points to, I have confirmed these details are correct I just didn't have time to do a new pointer scan)

Base Address : Interfaces.dll + 00031940
Offset 0 : 84
Offset 1: 120
Offset 2: 0
Offset 3: 6C

(See attachment 1)

Now heres the code i have writte to try and do this, however the end result address doesn't point to the correct value when entered into cheat engine.

(See attachment 2)


Any and all help would be much appreciated



attach2.png
 Description:
 Filesize:  14.42 KB
 Viewed:  3186 Time(s)

attach2.png



attach1.png
 Description:
 Filesize:  11.33 KB
 Viewed:  3186 Time(s)

attach1.png


Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Mon Nov 16, 2015 8:38 pm    Post subject: Reply with quote

Read: forum index->coding->general programming->FAQ: How to use a pointer (it's a sticky). If the OP isn't clear enough, read the 7th post on page 3.
_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4719

PostPosted: Mon Nov 16, 2015 8:38 pm    Post subject: Reply with quote

I'm not that experienced in editing memory with stuff other than CE, but I'm pretty sure the problem is that you're not dereferencing the pointers after you add the offset to the base address.

(assume all values are in hex unless otherwise specified)
For example, let's say the module Interfaces.dll is loaded at 07000000, and that the value at the address Interfaces.dll+31940 is 0021ACDC. Therefore, Interfaces.dll+31940 points to the address 0021ACDC, not the address 07031940- that's the location of the pointer itself. What you're doing in your code is taking 07000000 and adding 31940, 84, 120, 0, and 6C to it. This ends up at the address 07031B50. The odds of this being where the pointer was suppose to point are infinitesimally low.

So, you should have something like this pseudocode:
Code:
DWORD dll = (DWORD) (address+offset0)
dll = (DWORD) (valueAtAddress(dll)+offset1)
dll = (DWORD) (valueAtAddress(dll)+offset2)
dll = (DWORD) (valueAtAddress(dll)+offset3)
dll = (DWORD) (valueAtAddress(dll)+offset4)

...where valueAtAddress(DWORD addr) returns the DWORD stored at the address given.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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