| View previous topic :: View next topic |
| Author |
Message |
AylinCE Grandmaster Cheater Supreme
Reputation: 39
Joined: 16 Feb 2017 Posts: 1574
|
Posted: Sat Nov 23, 2024 12:06 pm Post subject: CE Lua Syntax (Popup) |
|
|
Optional pop-up syntax hint (Auto-completion) window integrated into Lua Script.
Although there is not much syntax, Lua + CE syntax takes up 5,800 lines.
Also, please specify in the comments any tips that are not on the list or that you want to fix or add.
For their contributions to this project;
@DarkByte, @atom0s (Lua syntax and the stages of integration into the source used.)
@panraven (Word selection in the source, "Caret" coordinate codings.)
@ParkourPenguin (Lua, integration tests and other tips - corrections.)
We thank you for your contributions and advice.
You can make recommendations to this project and offer correction ideas to fix its deficiencies.
Download and use:
https://www.mediafire.com/file/wqfegw2vtwl588j/CE_Lua_Syntax1.rar/file
Download the rar package, open it and drop the 2 files (LoadLibrary.txt, celua_syntax.lua) into the CE - autorun folder.
You can optionally open and close the hint window in the CE Lua Script menu.
Of course, you can edit and add shortcuts that you use very often and are not in the list (LoadLibrary.txt) according to your usage.
There is also a "CELua Library" menu for advanced search options where you can search for syntax and usage hints in "celua", "defines" and google.
As always; Enjoy it until we meet again on a different topic.
_________________
|
|
| Back to top |
|
 |
asdasd123 How do I cheat?
Reputation: 0
Joined: 07 Mar 2025 Posts: 6
|
Posted: Fri Mar 07, 2025 10:41 am Post subject: |
|
|
GOOD IDEA
BUG TOO MANY BUG
EG :
nil value in local c
|
|
| Back to top |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 39
Joined: 16 Feb 2017 Posts: 1574
|
Posted: Fri Mar 07, 2025 11:30 am Post subject: |
|
|
| asdasd123 wrote: | GOOD IDEA
BUG TOO MANY BUG
EG :
nil value in local c |
This is a tested script. Since it has not been tested on different devices. Can you show the error with an image?
_________________
|
|
| Back to top |
|
 |
wbx001 How do I cheat?
Reputation: 0
Joined: 23 Apr 2026 Posts: 2
|
Posted: Thu Apr 23, 2026 9:10 am Post subject: |
|
|
The getCheatTableScriptScreen function fails to identify the script form on non-English versions of Cheat Engine because the window caption is translated (e.g., "Lua 脚本: 脚本表" in Chinese). This causes FF to be nil, eventually leading to a nil value (local 'c') error in findMemoText at line 748.
Proposed Fix:
Instead of matching the Caption string, use Property Checking or ClassName to identify the form. This makes the script language-agnostic.
Revised Code for getCheatTableScriptScreen:
| Code: |
local function getCheatTableScriptScreen()
local frm = nil
for i = 1, GetFormCount() do
local f = GetForm(i - 1)
-- Identify the form by its unique property or class name instead of Caption
if f.Assemblescreen or f.ClassName == "TLuaScriptForm" then
frm = f
break
end
end
if not frm then
return nil, "not found"
else
return frm.Assemblescreen, frm, frm.Assemblescreen.Lines.Text:len()
end
end
|
|
|
| Back to top |
|
 |
|