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 


Finding address

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

Joined: 04 Dec 2010
Posts: 7

PostPosted: Sun Dec 05, 2010 8:33 am    Post subject: Finding address Reply with quote

Basicly, what i want to know, is how do i achive this in Delphi;

I have the pointer that ALWAYS points to the right address of my health only, nomatter how many times i reboot the game.

Now how do I achive in Delphi, that the program knows where the dynamic health address is located via the multi-level (4) pointer i've found.
How do I re-direct to the dynamic address pointed to.

A snippet would help me a bunch!

Cheers!

*edit* I accidentally started a new thread, sorry Rolling Eyes
Back to top
View user's profile Send private message
boredtc
How do I cheat?
Reputation: 0

Joined: 04 Dec 2010
Posts: 7

PostPosted: Tue Dec 07, 2010 3:48 pm    Post subject: update Reply with quote

Ok, I've come up with this;

I now know how I get the dynamic health address using the pointers and offsets.
It always shows me an dynamic address, wich I paste in CE by adding address manually, and freeze in CE.
Yes, this freezes my health every time!
Now when I programaticly change this using an previous working template in Delphi, nothing happens!
Below my code;

Code:


var
  hProcess,HandleWindow: THandle;
  ProcessID,temp:cardinal;
  i:integer;

const

   addresses1:array [0..0] of dword=($3E069FFC);
  patches1:array [0..3] of byte=($90,$90,$90,$90);

procedure TForm1.BitBtn2Click(Sender: TObject);
begin
   HandleWindow :=FindWindow('blablawindowname');
  GetWindowThreadProcessId(HandleWindow,@ProcessID);
  hProcess := OpenProcess(PROCESS_ALL_ACCESS,FALSE,ProcessID);
for i:=0 to 2 do  WriteProcessMemory(hProcess,ptr(addresses1),@patches1[i],1,temp);
end;

end.


offcourse the address changes every reboot, but just too make it clear...

So in CE this address freezes like a charm, but in Delphi it doesn't do anything.
This code use to work in Aliens vs Predator 2010 earlier.

Cheers!
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