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 


Can you set a variable in addresslist that AA script reads?

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

Joined: 13 Aug 2018
Posts: 44

PostPosted: Thu Apr 14, 2022 3:12 am    Post subject: Can you set a variable in addresslist that AA script reads? Reply with quote

I'm trying to figure out if you can set something like a variable that I can edit by hand in the address list, and when I do, an already running AA script is reading that value in realtime and adjusting accordingly.

This is what I have come up with, pretty much throwing things at the wall to see what sticks. What has to be changed for this script to work as I described? The idea is that the "lites" variable would be able to be an address in the address list that I can edit the value of by hand and this script reads it. In the address list, that address always has ?? value though.

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,"WWE2K19_x64.exe"+7071C2)
label(returnhere)
label(originalcode)
label(exit)
registersymbol(lites)
label(lites)

lites:
dd 01

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
//mov [lites],
movups [rcx+30],xmm1
mov [1425E53CC],[lites]

originalcode:
//movups [rcx+30],xmm1
mov rcx,[rbp+17]

exit:
jmp returnhere

"WWE2K19_x64.exe"+7071C2:
jmp newmem
nop 3
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"WWE2K19_x64.exe"+7071C2:
movups [rcx+30],xmm1
mov rcx,[rbp+17]
//Alt: db 0F 11 49 30 48 8B 4D 17
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Thu Apr 14, 2022 7:19 am    Post subject: Reply with quote

you can't do `mov [1425E53CC],[lites]` but you can do

Code:

push rax
mov eax,[lites]
mov [1425E53CC],eax
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
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4289

PostPosted: Thu Apr 14, 2022 11:32 am    Post subject: Reply with quote

Goat Engine wrote:
Code:
...
label(lites)

lites:
dd 01
...
That label isn't under any address. Put it somewhere under newmem: after the code, and preferably at an aligned address.
Code:
newmem:
  ...
  jmp returnhere

align 4 CC
lites:
  dd 01

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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