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 


How to find pointers and offset

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

Joined: 16 Jun 2011
Posts: 3

PostPosted: Thu Jun 16, 2011 3:15 am    Post subject: How to find pointers and offset Reply with quote

I have been searching for the past 2 hours now and i kinda got the basic understanding about how to find them but i don`t understand it fully yet
I am using CE to find out the pointers and offset. So i found my health value from the game. I select " Find out what writes to that address" in CE. I select "More information" on the instruction that i need and out comes some info. Now my red highlighted line says mov [edx+edi*4+0.4], eax. Now i understand that the pointer is in register edx and it`s 0DABCB60. And also i understand that the offset is somewhere in the lines of edi*4+0.4 but i don`t know how to find it exactly (EDI = 00000000)

Now i know this isnt the autoit forum but if anyone knows how would i go about writing this in autoit i will be grateful.


$ID = ProcessExists("the game")
If $ID > 0 Then
Global $CurHPOffset[6] = [0, Some offsets i guess? Don`t know how to find them]
$StaticOffset = 0x0DABCB60 ( Is that what i need to put here or something else ? )

$openmem = _MemoryOpen($ID)
$baseADDR = _MemoryGetBaseAddress($openmem, 1)
$finalADDR = "0x" & Hex($baseADDR + $StaticOffset)

$HPread = _MemoryPointerRead($finalADDR, $openmem, $CurHPOffset, "char[10]")
_MemoryClose($openmem)
MsgBox(0, "Info", $HPread[1])

Also for whatever reason my $baseADDR always returns 0 ?
Any help would be greatly appreciated.
Back to top
View user's profile Send private message
JohnT
Expert Cheater
Reputation: 0

Joined: 24 May 2011
Posts: 130
Location: Next To Osama

PostPosted: Thu Jun 16, 2011 4:17 am    Post subject: Reply with quote

look try find the address which leads you to this offset by looking to the address saved in edx and as an offset you will put 0.4
Back to top
View user's profile Send private message Yahoo Messenger
metodski2
How do I cheat?
Reputation: 0

Joined: 16 Jun 2011
Posts: 3

PostPosted: Thu Jun 16, 2011 8:46 am    Post subject: Reply with quote

Yeah that works but autoit still gives me base address 0..
Back to top
View user's profile Send private message
lucidity
Advanced Cheater
Reputation: 0

Joined: 16 Feb 2011
Posts: 91

PostPosted: Thu Jun 16, 2011 8:51 am    Post subject: Reply with quote

Are you sure the nomad/memory AutoIt library you are using isn't broken?
_________________
» Antec Twelve Hundred Full Tower » EVGA E760 CLASSIFIED » EVGA GeForce GTX 580 SuperClocked 1536MB » i7-980XE » CORSAIR DOMINATOR 6GB PC3 12800 DDR3 » OS: Intel X25-M SSD » Game Storage: Raid-0 2 x WD VelociRaptor 10000 RPM » CE Cache Drive: 500GB WD Caviar » Power Supply: OCZ Z Series Gold 1000W
Back to top
View user's profile Send private message
metodski2
How do I cheat?
Reputation: 0

Joined: 16 Jun 2011
Posts: 3

PostPosted: Thu Jun 16, 2011 3:20 pm    Post subject: Reply with quote

As far as i know it isnt broken. I tried narrowing down the code to this simple piece but baseADDR is giving me 0 again

#include <NomadMemory.au3>
#include <MemoryGetBaseAddressUDF.au3>
SetPrivilege("SeDebugPrivilege", 1)

$ID = ProcessExists("_Launcher.exe")

$openmem = _MemoryOpen($ID)
$baseADDR = _MemoryGetBaseAddress($openmem, 1)

MsgBox(0, "Info", $baseADDR)
Back to top
View user's profile Send private message
lucidity
Advanced Cheater
Reputation: 0

Joined: 16 Feb 2011
Posts: 91

PostPosted: Thu Jun 16, 2011 3:44 pm    Post subject: Reply with quote

Do you have _ProcessGetModuleBase in your Nomad.au3?
_________________
» Antec Twelve Hundred Full Tower » EVGA E760 CLASSIFIED » EVGA GeForce GTX 580 SuperClocked 1536MB » i7-980XE » CORSAIR DOMINATOR 6GB PC3 12800 DDR3 » OS: Intel X25-M SSD » Game Storage: Raid-0 2 x WD VelociRaptor 10000 RPM » CE Cache Drive: 500GB WD Caviar » Power Supply: OCZ Z Series Gold 1000W
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