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 


CE Lua Syntax (Popup)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
AylinCE
Grandmaster Cheater Supreme
Reputation: 39

Joined: 16 Feb 2017
Posts: 1574

PostPosted: Sat Nov 23, 2024 12:06 pm    Post subject: CE Lua Syntax (Popup) Reply with quote



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.

_________________
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
asdasd123
How do I cheat?
Reputation: 0

Joined: 07 Mar 2025
Posts: 6

PostPosted: Fri Mar 07, 2025 10:41 am    Post subject: Reply with quote

GOOD IDEA
BUG TOO MANY BUG
EG :
nil value in local c
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 39

Joined: 16 Feb 2017
Posts: 1574

PostPosted: Fri Mar 07, 2025 11:30 am    Post subject: Reply with quote

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?

_________________
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
wbx001
How do I cheat?
Reputation: 0

Joined: 23 Apr 2026
Posts: 2

PostPosted: Thu Apr 23, 2026 9:10 am    Post subject: Reply with quote

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
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
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