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 


memory compare not working

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials -> Auto Assembler tutorials
View previous topic :: View next topic  
Author Message
sgsgwv$6263
Advanced Cheater
Reputation: 0

Joined: 05 Aug 2020
Posts: 75

PostPosted: Sun Feb 28, 2021 12:03 am    Post subject: memory compare not working Reply with quote

Code:

[ENABLE]

aobscanmodule(locer,SPEED2.EXE,89 0E 5F 5E 8B E5) // should be unique
alloc(newmem,$1000)
alloc(car,4)
label(code)
label(return)
registersymbol(car)

newmem:
push edx
mov edx,[SPEED2.EXE+42BEDC]
cmp [esi+90],edx
pop edx
jne code
mov [car],esi


code:
  mov [esi],ecx
  pop edi
  pop esi
  mov esp,ebp
  jmp return

locer:
  jmp newmem
  nop
return:
registersymbol(locer)

[DISABLE]

locer:
  db 89 0E 5F 5E 8B E5

unregistersymbol(locer)
dealloc(newmem)
dealloc(car)
unregistersymbol(car)


After activating the script , [car] didnot show anything , it was ?? all the time.
SPEED2.EXE+42BEDC address and esi+90 have the same value for a unique entity.
4 byte value for both addresses are also same everytime, same goes with float.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Sun Feb 28, 2021 3:40 am    Post subject: This post has 1 review(s) Reply with quote

car can never be ?? unless you entered it as a pointer

try adding it as a normal address. e.g. Perhaps your pointer calculation is off and you used an offset where you should have used a relative offset for the base

_________________
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
sgsgwv$6263
Advanced Cheater
Reputation: 0

Joined: 05 Aug 2020
Posts: 75

PostPosted: Sun Feb 28, 2021 5:16 am    Post subject: Reply with quote

yeah sorry ,

after activating the script,
value of car is 0 (because it is allocated and initialized?)
value of [car] is ?? (because cmp in my script always turns on not equal to flag or doesnot turn on equal to flag and also because address of 0 is not valid).

But it should not happen because when I manually compare value of SPEED2.EXE+42BEDC and value of esi+90 ,they are exactly equal.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials -> Auto Assembler tutorials 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