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 


Sync table address to Lua scrip

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

Joined: 03 Nov 2023
Posts: 4

PostPosted: Sun May 18, 2025 1:49 pm    Post subject: Sync table address to Lua scrip Reply with quote

Hi

I have 2 questions about lua script

In my script I have an input address as
local inputAddress = 0x1234567
Every match this address change
Is it possible sync script with a value added to addresses table?
For example I added an address to Adresstable and put a description “my address”
Edit in the script something like :
local inputAddress = table”my address”

1ST [Solved]

local baseEntry = getAddressList().getMemoryRecordByDescription("InputBase")
if baseEntry then
inputAddress = baseEntry.CurrentAddress
print(string.format("Address found: 0x%X", inputAddress))
else
showMessage("Error: cant find 'InputBase' on address table.")
return
end

2nd question
Is it possible terminate script without close CE? At terminal console or a shortcut. I need close & reopen CE free every match.

2nd [Solved] adding a hot key

createHotkey(function()
if customTimer then
customTimer.destroy()
customTimer = bill
print (“Script Terminated”)
end
end, VK_F10)

Maybe this are a stupid easy question but I’m newbie scripting

Thanks in advance
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