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 


Noob question about addresses

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

Joined: 05 Jun 2013
Posts: 3

PostPosted: Sat Jun 08, 2013 2:32 pm    Post subject: Noob question about addresses Reply with quote

Before you dismiss my noob issue, remember obvious things are only obvious once they've been pointed out Rolling Eyes Do help me out if you know what's going on.

Okay, so when I click on the address column of my saved addresses (either to look at or change the address) 1 of 2 things can happen for me.

1. I get the actual address (eg. 023097BC)
2. I get something like (eg. "tutorial.exe"+772000D) and 772000D is not the address as I have tried it.

Now scenario 1 is straight forward as obviously it gives my address. But how can I figure out the address when I am given scenario 2? I've recently found my pointer via pointer scan and I cannot for the life of me find the base address so that I can put it into C++.



Any help is appreciated
Thanks

PS - is there any way to control whether scenario 1 or 2 happens? It seems sort of random to me.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sat Jun 08, 2013 3:02 pm    Post subject: Reply with quote

tutorial.exe gets replaced by the address tutorial.exe is loaded in memory
so if it's loaded at 00400000 then the address is 00400000+0772000d=07B2000D

in c++ you either need to find the module base yourself (easiest is toolhelp32 with module32first/next) or just hardcode the address if it's a pretty old game, since those always start at the same address

_________________
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
grasmanek94
Master Cheater
Reputation: 0

Joined: 03 Jun 2008
Posts: 283
Location: The Netherlands

PostPosted: Tue Jun 11, 2013 5:11 pm    Post subject: Reply with quote

I can confirm that 99% of the games have a static base adress of 0x00400000, the base adress can only get randomized if the code decides to, but, I did program my own "HackMe" with different methods to randomize the base addres and there was ALWAYS a pointer to the "base address" at a static virtual address.

The only game you will ever have trouble with is No One Lives Forever 2, the game compiles each mission on the fly into a temporary binary file and runs that, which makes it somewhat impossible to create a static pointer for the weapons or get any valid non-changing opcodes.

(seriously I tried, and for the sake of fun I just used the in-game console cheats..)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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