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 


ASM to LUA pointer transfer

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

Joined: 12 Aug 2021
Posts: 5

PostPosted: Thu Aug 12, 2021 8:12 am    Post subject: ASM to LUA pointer transfer Reply with quote

Hi

How can transfer a pointer/value from AOBSCAN result to LUA script

my goal is to get a pointer with AOBSCAN and write it to cheat table list

thats my try:

Code:

{$asm}
define(fillValue,0x64)
registerSymbol(fillValue)

{$lua}
print(tostring(fillValue))
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Thu Aug 12, 2021 11:05 am    Post subject: Reply with quote

{$lua} blocks are run before pretty much everything else in an AA script. You can't do it like that.

Use the Lua AOBScan function if you want results from an aobscan in Lua.

_________________
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
uragan
How do I cheat?
Reputation: 0

Joined: 12 Aug 2021
Posts: 5

PostPosted: Thu Aug 12, 2021 7:11 pm    Post subject: Reply with quote

thx, got it
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