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 


This is driving me nuts!

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

Joined: 13 Dec 2006
Posts: 10

PostPosted: Wed Dec 13, 2006 7:23 pm    Post subject: This is driving me nuts! Reply with quote

Okay... I know how to get a pointer address e.g. static addy:

Find DMA value,
Scan Write/Read.

Scan for hex addy: 29F592B4

Get: 00340394

Add pointer with that value and add 4c to it.

Whammo I get a pointer which works fine......

Now 003403E0 is the address I should be adding to my trainer that I wrote in C++

The pointer's value can be changed from 1, 2, 3... and so on.

So... I want to change the value of the pointer to 1 in byte 2 so I:

if (WriteProcessMemory(hHandle, LPVOID(0x3403E0), LPVOID(0x01), 2, NULL))

It doesn't work... I've been messing with it all day and I'm about to loose it. Mad
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Thu Dec 14, 2006 2:27 am    Post subject: Reply with quote

WriteProcessMemory(processhandle,addresstowriteto,addresstoreadfrom,nrofbytes,addresstowritenrwrittenbytesto)

WriteProcessMemory(hHandle, LPVOID(0x3403E0), LPVOID(0x01), 2, NULL)
so:
processhandle=hHandle
addresstowriteto=0x3403e0
addresstoreadfrom=0x01
nrofbytes=2
addresstowritenrwrittenbytesto=NULL

So, this means that you are writing the 2 bytes at address 0x01 to 0x3403e0. I somehow doubt 0x01 is a valid 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
steelblob
Newbie cheater
Reputation: 0

Joined: 13 Dec 2006
Posts: 10

PostPosted: Thu Dec 14, 2006 10:08 am    Post subject: Reply with quote

Uhhhh, its:

BOOL WriteProcessMemory(
HANDLE hProcess,
LPVOID lpBaseAddress,
LPCVOID lpBuffer,
SIZE_T nSize,
SIZE_T* lpNumberOfBytesWritten
);


lpBuffer is what you are talking about, and in that the value of what I want the value of the address changed to.

I am trying to change the vaule of 0x3403E0 which resolves to 29F592B4 (DMA) to value 1.

I don't know what I am doing wrong :S
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