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 


Error when creating using a pointer in the auto assembler

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Fatamorgen
Cheater
Reputation: 0

Joined: 17 Feb 2021
Posts: 29

PostPosted: Mon Dec 20, 2021 6:29 pm    Post subject: Error when creating using a pointer in the auto assembler Reply with quote

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.



cchase31.png
 Description:
eg.
 Filesize:  30.69 KB
 Viewed:  1420 Time(s)

cchase31.png


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Mon Dec 20, 2021 7:05 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Fatamorgen
Cheater
Reputation: 0

Joined: 17 Feb 2021
Posts: 29

PostPosted: Mon Dec 20, 2021 10:08 pm    Post subject: RE: Reply with quote

Thanks for the explanation, Dark Byte.~
Works like a charm.
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