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 


alloc not working

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

Joined: 18 Jan 2023
Posts: 1

PostPosted: Wed Jan 18, 2023 1:42 am    Post subject: alloc not working Reply with quote

Hi, I'm trying to update old ct file up to date, and alloc is not working

following is part of code

Code:

[ENABLE]
// ADeformTool::HandleTerrainTool
aobscanmodule(BrushDigCodeAddr,Astro-Win64-Shipping.exe,74 56 F2 0F 10 55 90) // should be unique
alloc(newmem,$100,BrushDigCodeAddr)

newmem:
  je BrushDigCodeAddr+5C // the game wants brush not moving then jmp+5C
  cmp [bFreezeBrushDigging],#1
  je BrushDigCodeAddr+5C // if we want brush not moving then jmp+5C
  movsd xmm2,[rsp+58]
  jmp return
bFreezeBrushDigging:
  dd 0

BrushDigCodeAddr:
  jmp newmem
  nop 3
return:
registersymbol(BrushDigCodeAddr)
registersymbol(bFreezeBrushDigging)

[DISABLE]

BrushDigCodeAddr:
  db 74 56 F2 0F 10 55 90

unregistersymbol(*)
dealloc(newmem)



turn on/off this script does not affect to memory.

Does anyone know why this is not working?
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 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