 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Fatamorgen Cheater
Reputation: 0
Joined: 17 Feb 2021 Posts: 29
|
Posted: Mon Dec 20, 2021 6:29 pm Post subject: Error when creating using a pointer in the auto assembler |
|
|
Hi everyone. I'm having a problem with a pointer I've found. I'm trying to use it with an address that is always accessed by the game in the auto assembler, but everytime it returns an error saying that the address specifier is invalid:
| Code: |
label(stars)
[[[["EotU-Win64-Shipping.exe"+037450E8]+3D4]+5F0]+F390]:
stars:
define(address,"EotU-Win64-Shipping.exe"+63548E)
define(bytes,8B 80 E0 05 00 00)
[ENABLE]
assert(address,bytes)
alloc(newmem,$500,"EotU-Win64-Shipping.exe"+63548E)
label(code)
label(return)
newmem:
code:
mov [stars],1 //The value I want
mov eax,[rax+000005E0] //Original code (not important at all)
jmp return
address:
jmp newmem
nop
return:
[DISABLE]
address:
db bytes
dealloc(newmem)
|
I've saw some topics here but it didn't work. I believe it's something I'm doing that involves the brackets.
| Description: |
|
| Filesize: |
30.69 KB |
| Viewed: |
1420 Time(s) |

|
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25817 Location: The netherlands
|
Posted: Mon Dec 20, 2021 7:05 pm Post subject: |
|
|
firstly use one less bracket
[[["EotU-Win64-Shipping.exe"+037450E8]+3D4]+5F0]+F390
secondly, a notation like this only gets the address at assemble time, if it changes at runtime your script will crash
better would be :
| Code: |
push rax
{$try}
mov rax,["EotU-Win64-Shipping.exe"+037450E8]
mov rax,[rax+3d4]
mov rax,[rax+5f0]
mov [rax+f390],1
{$except}
pop rax
|
_________________
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 |
|
 |
Fatamorgen Cheater
Reputation: 0
Joined: 17 Feb 2021 Posts: 29
|
Posted: Mon Dec 20, 2021 10:08 pm Post subject: RE: |
|
|
Thanks for the explanation, Dark Byte.~
Works like a charm.
|
|
| Back to top |
|
 |
|
|
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
|
|