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 


Simple readmem

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
xUnknownHostX
Newbie cheater
Reputation: 0

Joined: 22 May 2019
Posts: 10

PostPosted: Mon Jun 24, 2019 5:42 am    Post subject: Simple readmem Reply with quote

Hi there everyone,

Got an issue and can't figure out what it is, not even getting an error, but with commenting out line by line I found where the issue is being caused, but do not know what, any ideas?

What I'm trying to do: Save the value from the appointed address into healthOriginal to later on return to the value after being disabled or triggered by a 0 and 1 trigger. - However the script won't activate at all as soon as I try to make the real appointed address to readmem. (Using AoB injection btw)

Code:
healthOriginal:
readmem("TAT-Win.exe"+9F9E47+0,4)


Code:
"TAT-Win.exe"+9F9E47+0:
readmem(healthOriginal,4) // uncommenting this line makes the script activate and deactivate, however keeping that line does not allow me to activate the script.



Labels & Allocs [ENABLE]:

Code:
alloc(newmem,$100)

label(code)
//label(infPHealth)
//label(infinity)
label(return)
alloc(healthOriginal,4)
//registersymbol(infPHealth)



And in [DISABLE]

Code:
unregistersymbol(INJECT)
dealloc(newmem)
dealloc(healthOriginal)


What can be the issue that I cannot activate the script as soon as I try to read the mem from
Code:
healthOriginal
?

Thanks in advance
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Mon Jun 24, 2019 6:31 am    Post subject: Reply with quote

Try registersymbol healthOriginal
_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
xUnknownHostX
Newbie cheater
Reputation: 0

Joined: 22 May 2019
Posts: 10

PostPosted: Mon Jun 24, 2019 11:48 am    Post subject: Reply with quote

Thank you for your reply,

I did try that earlier by my own and I managed to have it unregister and work perfectly when I disable and enable the script, however I cannot have the code i mentioned earlier within the enable part. (Using flags to turn on and off script while keeping the script enabled)
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