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 


Automatically Update to Latest Cheat Table
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
Tarnum75
How do I cheat?
Reputation: 0

Joined: 06 Jan 2022
Posts: 6

PostPosted: Tue Oct 21, 2025 4:16 am    Post subject: AutoUpdate1.CT and AutoUpdate2.CT Reply with quote

Please explain to me how to do it with the Lua code of "AutoUpdate1.CT" to adapt for the 97361 of the cheat table and instead of downloading "AutoUpdate2.CT" to insert the download link for the 97381, please explain to me how to do it so I can not make mistakes.
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1526

PostPosted: Tue Oct 21, 2025 7:36 am    Post subject: Re: AutoUpdate1.CT and AutoUpdate2.CT Reply with quote

Tarnum75 wrote:
Please explain to me how to do it with the Lua code of "AutoUpdate1.CT" to adapt for the 97361 of the cheat table and instead of downloading "AutoUpdate2.CT" to insert the download link for the 97381, please explain to me how to do it so I can not make mistakes.


************************************************
I think @Zanzer provided an example for at least intermediate users.
That's why he posted a code example instead of explaining it.

Here's a more descriptive example of client-side code that updates ".CT" and ".CETRAINER."

What you need to do:

1) You need a Google account. Or, you can try another server that provides alternative features.
2) Create a new page in Google Docs.
https://docs.google.com/
(Click "Blank document" on the homepage.)
Give the new document a name in the top left corner.
Enter the information in the order listed, starting with blank lines.
Example:

-------------
12345
myGame_v2.CT
http://forum.cheatengine.org/download.php?id=119714

Click the "Share" button in the top right corner. In the window that opens, click "Restricted" under "Public access." Select "Anyone with the link." Confirm "Can view." Grab the link from the "Copy link" button and click "Done."

From the link you copied, take the section shown below ( ... Docs ID ... ) and replace it with the same section from the "version_url" given in the code.

https://docs.google.com/document/d/ ... Docs ID ... /edit?usp=sharing

3) After this step, your code is likely ready, and you can complete the following function to run when the table is opened or activated with a button.

Trigger the following function to run the code: checkVer(version_url)

************************************************
Here's the ready-to-use code:
(Edit the version URL as described above.)

************************************************

Complete the steps above correctly and create your own server.
Next:
Add the following code to both version tables.

For Table 1 (AutoUpdate1.CT), "local TABLE_VERSION = 97361"
For Table 2 (AutoUpdate2.CT), "local TABLE_VERSION = 97381"

Note: The "AutoUpdate1.CT"s mentioned are examples. You should associate the codes with your own tables, not with these.

*************************************************

Code:
local version_url = "https://docs.google.com/document/d/1YuhwVpUjjxNlDTcS2tMOaG_rbvMFkp3q2vyaUc3rBdk/export?format=txt"
local TABLE_VERSION = 1

local path = TrainerOrigin or MainForm --The last location where the user opened the table.
if path==nil then path = os.getenv("TEMP") end
print(path)
mf = MainForm
local sd = mf.SaveDialog1
local od = mf.OpenDialog1
local filefullpath

tr1 = createTimer()
tr1.Interval=3000
tr1.OnTimer=function(t)
filefullpath = sd.Filename or od.Filename or ''
print(filefullpath)
t.Destroy()
end
tr1.Enabled=true

local version, newname, table_url = 0, "", ""

function loadTbl(tblUrl,name)
local http = getInternet()
local latest = http.getURL(tblUrl)
  if latest ~= nil then
     fullpath = path .. "\\" .. name
     ss=createStringStream(latest)
     loadTable(ss)
     os.rename(filefullpath,fullpath)
     saveTable(fullpath)
     ss.destroy()
  else
     messageDialog("Failed to load the new table!", mtError, mbOK)
  end
 http.destroy()
end

function checkVer(verUrl)
local http = getInternet()
local result = http.getURL(verUrl)
sl = createStringList()
 if result then
  sl.Text = result
  for i=1, sl.count - 1 do
      version = tonumber(sl[1])
      newname = sl[2]
      table_url = sl[3]
  end

  if version > TABLE_VERSION then
    local answer = messageDialog("There is a newer version of this table.\nWould you like to download it now?", mtWarning, mbYes, mbNo)
    if answer == mrYes then
      messageDialog("Be sure to save the new table!", mtInformation, mbOK)
      --print("Loaded Table start!")
      loadTbl(table_url,newname)
    end
  else
    messageDialog("You currently have the latest version!", mtInformation, mbOK)
  end
 else
  messageDialog("Failed to find latest version!", mtError, mbOK)
 end
 http.destroy()
 sl.destroy()
end

checkVer(version_url)


********************************************

Ahh... Of course, I'm assuming you have version "97381" and that you're the admin who created these versions.

Otherwise, this code won't crawl the web for you and generate version "97381" and show it to you! Smile

This code is provided as an example for developers who want to update their tables remotely.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Tarnum75
How do I cheat?
Reputation: 0

Joined: 06 Jan 2022
Posts: 6

PostPosted: Sun Oct 26, 2025 4:41 am    Post subject: AutoUpdate1.CT and AutoUpdate2.CT Reply with quote

Hi, you have to go to the site called Recifense Cheers and once there you will see the cheat tables including Age of Empires Definitive Edition 97361, I downloaded it there, how to switch to 97381?
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 Extensions All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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