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 


help with pointer in C++

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

Joined: 10 Oct 2012
Posts: 2
Location: sdfd

PostPosted: Wed Oct 10, 2012 7:15 am    Post subject: help with pointer in C++ Reply with quote

Hi Folks,

I have this static memory address. Using CE, CE finds the value pointed by the address. However using my C++ code, it returns zero. Weird because I have multiple addresses that I read and they return values fine. Only this one address I cannot read.

this address should point to another address. I tried all the datatypes. I have other multilevel pointers and I can read them all in my code. But why this one, I can't.

Please help. Does it have something to a memory region that cannot be read. However, why CE can read it? Have anyone experienced it?

Any help will be appreciated much

_________________
Thanks
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Obitio
Advanced Cheater
Reputation: 0

Joined: 09 Apr 2012
Posts: 68
Location: null

PostPosted: Thu Oct 11, 2012 4:07 pm    Post subject: Reply with quote

Post the working Cheat Engine Pointer & your c++ code you used here.I'll see if I can help you.
_________________
Gamer
Back to top
View user's profile Send private message
rantenor
How do I cheat?
Reputation: 0

Joined: 10 Oct 2012
Posts: 2
Location: sdfd

PostPosted: Fri Oct 12, 2012 6:03 am    Post subject: Reply with quote

sasue11 wrote:
Post the working Cheat Engine Pointer & your c++ code you used here.I'll see if I can help you.



Code:

f (GetKeyState(VK_F12) < 0) // Turn On
{

DWORD WH_StartA = *(DWORD*)0x107BF90;
fprintf(stdout, "WAll hack addressA %X \n",  WH_StartA)
DWORD WH_StartB = WH_StartA + 0x40814;

for(tempPtr = WH_StartB; tempPtr<= WH_StartB + 0x40000; tempPtr++)
{
*(DWORD*)tempPtr = 0;
}



WH_StartA returns 0. It should return 0x03****20. When I use CE without GameGuard(GG), it reads the desired value . Please note that I am at the same process as the game and GG is running when I inject this dll. Can GG locks this portion of memory for reading. This is like a stationary memory that game does not need to access from time to time so I think the GG can change protect it? Hope I'm wrong. Please help

_________________
Thanks
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Obitio
Advanced Cheater
Reputation: 0

Joined: 09 Apr 2012
Posts: 68
Location: null

PostPosted: Mon Oct 15, 2012 5:07 pm    Post subject: Reply with quote

rantenor wrote:
sasue11 wrote:
Post the working Cheat Engine Pointer & your c++ code you used here.I'll see if I can help you.



Code:

f (GetKeyState(VK_F12) < 0) // Turn On
{

DWORD WH_StartA = *(DWORD*)0x107BF90;
fprintf(stdout, "WAll hack addressA %X \n",  WH_StartA)
DWORD WH_StartB = WH_StartA + 0x40814;

for(tempPtr = WH_StartB; tempPtr<= WH_StartB + 0x40000; tempPtr++)
{
*(DWORD*)tempPtr = 0;
}



WH_StartA returns 0. It should return 0x03****20. When I use CE without GameGuard(GG), it reads the desired value . Please note that I am at the same process as the game and GG is running when I inject this dll. Can GG locks this portion of memory for reading. This is like a stationary memory that game does not need to access from time to time so I think the GG can change protect it? Hope I'm wrong. Please help

hmm...well try injecting without GG and see if it works.I don't think the cause is GG so also check and make sure the pointer is valid at the time you inject it.And are you sure 107BF90 is the correct addy?Cause the game I play has any addies within the range of about 06000000-19000000 change everytime I restart.

EDIT:
Make sure you put in the pointer correctly.That might also be the cause of the error.

_________________
Gamer
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 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