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't use symbol via lua "registerSymbol" in addre

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

Joined: 25 Feb 2025
Posts: 2

PostPosted: Tue Feb 25, 2025 9:15 am    Post subject: Can't use symbol via lua "registerSymbol" in addre Reply with quote

Hey, I am trying to export a symbol in an autoassembler script with the lua "registerSymbol" function and then use that in the address list, however I can't seem to get it to work.

The reason for that is that I have a DLL that's already injected in the target process, which exports a value I'd like to edit via CE. I can get the address to that just fine via "getAddressSafe", print it and then add the address to the list manually, but that's obviously not what I want.

This is the autoassembler script I'm trying:
Code:

[ENABLE]
{$lua}
errorOnLookupFailure(true)
reinitializeSymbolhandler()

local addr = getAddressSafe("EXPORTED_VALUE_FROM_DLL")
registerSymbol("dll_value", addr)

[DISABLE]
{$lua}
unregisterSymbol("dll_value")


Any ideas?
Back to top
View user's profile Send private message  
ParkourPenguin
I post too much
Reputation: 150

Joined: 06 Jul 2014
Posts: 4657

PostPosted: Tue Feb 25, 2025 2:43 pm    Post subject: Reply with quote

You can use EXPORTED_VALUE_FROM_DLL as the address of the memory record
_________________
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  
ViRazY
How do I cheat?
Reputation: 0

Joined: 25 Feb 2025
Posts: 2

PostPosted: Wed Feb 26, 2025 7:03 pm    Post subject: Reply with quote

Thank you, that works perfectly!

I believe I tried that in the past without success, but I guess I made a typo or the DLL failed to inject.
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