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 Pointer

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

Joined: 10 Jul 2014
Posts: 9

PostPosted: Thu Jul 10, 2014 9:12 pm    Post subject: Address Pointer Reply with quote

Okay, I have been googling for about two days now, and I'm still unable to figure out why I'm having this problem. Sorry if this has already been answered, but I really did look.
I'm writing a program in C# that edits the memory values of a game. I'm using KryziK's library to edit the values.

I've successfully read and written to addresses and pointers, but I can't get it to read the correct value for a pointer that looks like this: DarkSoulsII.exe+FB3E3C offsets 74 and fc. As far as I know I have to add the base address 400000 and FB3E3C, which comes to 13B3E3C, and then put in the offsets.

I try

Code:
oMemory.ReadInt(0x13B3E3C, new int[] { 0x74 , 0xfc })


but all I get is 2213040636.
The answer is probably stupidly simple, I just can't figure it out. Any help is appreciated.
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: Fri Jul 11, 2014 3:38 pm    Post subject: Reply with quote

Double check and make sure that the base address is correct. You can also use the Process class to obtain the main module base address to ensure that you are getting the proper address each time.

http://msdn.microsoft.com/en-us/library/system.diagnostics.process(v=vs.110).aspx

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Spub
How do I cheat?
Reputation: 0

Joined: 10 Jul 2014
Posts: 9

PostPosted: Fri Jul 11, 2014 3:41 pm    Post subject: Reply with quote

I tried adding 13B3E3C as a pointer in cheat engine with the offsets, and it worked perfectly, so the base address is correct(I double checked though with oMemory.Hex(Omemory.BaseAddress()).
So if the address is correct, maybe I'm not entering the pointers correctly? Or maybe the lib is just messed up.
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: Fri Jul 11, 2014 3:45 pm    Post subject: Reply with quote

Are you missing a pointer like +0 somewhere or something?
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Spub
How do I cheat?
Reputation: 0

Joined: 10 Jul 2014
Posts: 9

PostPosted: Fri Jul 11, 2014 3:47 pm    Post subject: Reply with quote

I don't think so?


halp.png
 Description:
 Filesize:  6.47 KB
 Viewed:  8297 Time(s)

halp.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: Fri Jul 11, 2014 3:52 pm    Post subject: Reply with quote

I don't use the lib you mentioned so not sure on the specifics of it. But perhaps try adding a +0 as the first offset, or a +0 as the last offset to see if it needs to read into the pointer once more or something.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Spub
How do I cheat?
Reputation: 0

Joined: 10 Jul 2014
Posts: 9

PostPosted: Fri Jul 11, 2014 3:54 pm    Post subject: Reply with quote

Nope, nothing.
Is there another lib that does the same thing?
I would write it myself but I am nub hacker and idk how.
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: Fri Jul 11, 2014 4:00 pm    Post subject: Reply with quote

I write all my own stuff, so not sure. I don't use others libs and so on.

You could try going 1 by 1 with the pointer and seeing what the lib gets for each one to see if the values for each thing it should be reading match up properly.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Spub
How do I cheat?
Reputation: 0

Joined: 10 Jul 2014
Posts: 9

PostPosted: Fri Jul 11, 2014 4:08 pm    Post subject: Reply with quote

Ok, I made a pointer is CE with the address 13B3E3C, but no offsets. It points to the address 100A91C0, which has a value of decimal 18216292.

When I try and add that pointer in C#, it reads 2756545297, or A44D8B11 in hex. It seems like it is reading a completely different value than it should.
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: Fri Jul 11, 2014 6:04 pm    Post subject: Reply with quote

Sounds like it may be an issue with that lib or you are attaching to the wrong process.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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