 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Tarnum75 How do I cheat?
Reputation: 0
Joined: 06 Jan 2022 Posts: 6
|
Posted: Tue Oct 21, 2025 4:16 am Post subject: AutoUpdate1.CT and AutoUpdate2.CT |
|
|
| 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 |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 39
Joined: 16 Feb 2017 Posts: 1572
|
Posted: Tue Oct 21, 2025 7:36 am Post subject: Re: AutoUpdate1.CT and AutoUpdate2.CT |
|
|
| 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!
This code is provided as an example for developers who want to update their tables remotely.
_________________
|
|
| Back to top |
|
 |
Tarnum75 How do I cheat?
Reputation: 0
Joined: 06 Jan 2022 Posts: 6
|
Posted: Wed Apr 08, 2026 3:21 am Post subject: AutoUpdate1.CT and AutoUpdate2.CT |
|
|
Hi, sorry for the long absence. AylinCE, I have the Age of Empires Definitive Edition cheat table version 97361, but I don't have version 97381. Can you help me with the steps, please? here for example GodMode <?xml version="1.0" encoding="utf-8"?>
<CheatTable>
<CheatEntries>
<CheatEntry>
<ID>229</ID>
<Description>"[X] <==spaghetti monsterMode"</Description>
<Options moHideChildren="1" moDeactivateChildrenAsWell="1"/>
<Color>C08000</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[enable]
{$LUA}
writeInteger("iEnableGMD",1)
memrec.Color=0x0004000
{$ASM}
[disable]
{$LUA}
writeInteger("iEnableGMD",0)
memrec.Color=0x0c08000
{$ASM}
</AssemblerScript>
</CheatEntry>
</CheatEntries>
</CheatTable>
|
|
| Back to top |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 39
Joined: 16 Feb 2017 Posts: 1572
|
Posted: Wed Apr 08, 2026 3:50 am Post subject: |
|
|
In my last observation, I saw that there's an admin (Table creator/code finder) who creates and shares versions on their own sharing site.
In this case, it seems the table doesn't belong to you, and you can only access it via the link provided when it's published (Free or VIP).
The issue I'm discussing, however, and the code and article I published, is about automatically uploading and using new versions of your own tables through the Trainer Forms you create.
In your case, what you need to do is send a message to the table designer and request the download link for the latest version, if available.
_________________
|
|
| Back to top |
|
 |
|
|
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
|
|