Azruine How do I cheat? Reputation: 0
Joined: 18 Jan 2023 Posts: 1
|
Posted: Wed Jan 18, 2023 1:42 am Post subject: alloc not working |
|
|
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?
|
|