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 


Pointed Address plus offset

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

Joined: 18 Sep 2022
Posts: 2

PostPosted: Sun Sep 18, 2022 10:16 am    Post subject: Pointed Address plus offset Reply with quote

I've pointer scan for a value multiple times and i got a solid pointer works all the time. I know that if i add some hex to pointed addres like 4, 8, C etc. I get the other values that i'm looking for. So are there a simple way to achieve this automatically?
Like [pointed Address] + 3C4 something like that. For another address and when the process starts cheat engine shows the right values.

If there isn't i tried AOB Injection and getting the value im looking for and store it in allocated newmem but when i try to access stored address lets say its [pHealt] it returns zeros.

I've looked for "find out what accesses this address"


and then "show disassembler" and then "auto assemble" the right addres.

everything is fine (i hope) so far. Below is the script i wrote looking tutorials.

Code:

[ENABLE]

//aobscanmodule(INJECT,Torchlight.exe,D9 9E 94 03 00 00 80) // should be unique

define(INJECT,Torchlight.exe+90A48)
registersymbol(INJECT)

alloc(newmem,$1000)

registersymbol(newmem)
define(pHealth,newmem+100)
registersymbol(pHealth)

label(return)

pHealth:
  dd 0

newmem:
  fstp dword ptr [esi+00000394]
  mov [pHealth],esi
  jmp return

INJECT:
  jmp newmem
  nop
return:
//registersymbol(INJECT)

[DISABLE]

INJECT:
  db D9 9E 94 03 00 00

unregistersymbol(pHealth)
unregistersymbol(newmem)
unregistersymbol(INJECT)
dealloc(newmem)


After i add this script to the address list, i add an address manually to check if i cen get "pHealt".
manually added address : [pHealt] + 3C4
i also use pointer : base [pHealth] offset 3C4
when i activate the script manually added address get: 000003C4

So i assume


Code:
mov [pHealth],esi


this part of the code, when i try to move esi to [pHealth] it gets zeros(00000000) whats the problem here that i cannot see?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4289

PostPosted: Sun Sep 18, 2022 11:16 am    Post subject: Reply with quote

yesil wrote:
I know that if i add some hex to pointed addres like 4, 8, C etc. I get the other values that i'm looking for. So are there a simple way to achieve this
Change the last offset. e.g. if a value you want is located 8 bytes after a value you have a pointer to, add 8 to the last offset: 3C4 + 8 = 3CC.
yesil wrote:
i also use pointer : base [pHealth] offset 3C4
base should be `pHealth`, not `[pHealth]`
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
yesil
How do I cheat?
Reputation: 0

Joined: 18 Sep 2022
Posts: 2

PostPosted: Mon Sep 19, 2022 8:49 am    Post subject: Reply with quote

@ParkourPenguin thank you.
I was ading 4 bytes as another offset to the pointer so that was the problem.
It would be a greater problem to pointer scan one by one for like 8-10 addresses with 4 bytes between each of them. Now i add 4 bytes to the last offset as you said and it works, thank you.
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