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 


Get values from AOB Injection

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
rurk
How do I cheat?
Reputation: 0

Joined: 17 Jul 2022
Posts: 1

PostPosted: Sun Jul 17, 2022 7:18 am    Post subject: Get values from AOB Injection Reply with quote

I am familiar with AOB injection but not much else with assembly. I have gotten AOB injections to work on the fields I want, but not pointers-- it seems pointers won't work in this situation as I've gone 4+ levels in only to have hundreds of addresses to sift through. As far as hard-coding specific values the AOB scripts work fine, but I'd like to mess around with Lua doing some stuff that relies on what the values are at any given time. Is it possible to extract the targeted value of an AOB injection to use in a Lua script? e.g. if I had an AOB injection script for HP, read the HP value in a Lua script.

Another question I have is if it's possible to have a "dummy record," i.e., a field that isn't really attached to the process that I can just store values in to be read by my Lua scripts. This would make changing things faster than going into and editing scripts, and I could also use it to sort of emulate pointers if I can read from AOB injection as I hope.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4289

PostPosted: Sun Jul 17, 2022 1:07 pm    Post subject: Reply with quote

rurk wrote:
it seems pointers won't work in this situation as I've gone 4+ levels in only to have hundreds of addresses to sift through.
Use the pointer scanner. It's not guaranteed to turn anything up, but it's usually faster than doing it manually.
https://www.youtube.com/watch?v=3dyIrcx8Z8g

rurk wrote:
Is it possible to extract the targeted value of an AOB injection to use in a Lua script?
Search for "injection copy" to find more information.

rurk wrote:
Another question I have is if it's possible to have a "dummy record," i.e., a field that isn't really attached to the process that I can just store values in to be read by my Lua scripts.
Most people would use allocated memory in the target process to store values and register a symbol to access that memory (see the injection copy technique).
_________________
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 -> Cheat Engine Lua Scripting 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