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 


[Lua]The History of opened files list(Ver 2.1.33

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
xxhehe
Expert Cheater
Reputation: 0

Joined: 11 Mar 2015
Posts: 162

PostPosted: Fri Jul 17, 2026 6:12 am    Post subject: [Lua]The History of opened files list(Ver 2.1.33 Reply with quote

Feature Summary (v2.1.33)

✅ Auto‑load matching CT table on process switch: attempts in order: Rule Match → Fuzzy Match → Latest Record.
✅ Rule Match: user can set a window title substring rule for a specific CT table.
✅ Fuzzy Match: intelligent word segmentation (English words + Chinese single characters), requires at least 2 common words and a similarity score ≥ 0.4.
✅ Recent record management: grouped by process, keeps up to 5000 entries (configurable), automatically removes invalid paths.
✅ Pop‑up interaction:
• Double‑click or click "Load" to open a CT table and record it as the latest.
• Multi‑select and delete records.
• Set/modify match rule (pre‑fills current window title, supports partial matching).
✅ Custom open: overrides CE's "Open" button/menu; does not record on cancel.
✅ Custom save: uses window title as default filename; cancelling does not trigger CE's default save.
✅ Menu extensions: inserts "Switch Recent CT" and "Clear Recent File List" items into the File menu and main menu bar.
✅ Process name normalisation: automatically strips .exe and version number suffixes.
✅ Title preprocessing: removes dynamic info like FPS, and extracts game name for Dolphin emulator.

🔧 Optional tweaks (no code change needed, adjustable per preference)
recentFiles.NumberOfEntries = 5000 – change to your desired record limit.
recentFiles.BLACKLIST – add CT filenames you never want auto‑loaded (e.g., generic templates).
recentFiles.AUTO_LOAD_LATEST = true – set to false to only show the list on process switch without auto‑loading.



-----------------------
v2.1.33 – What's New

Smart Save – added recentFiles.SMART_SAVE (default true). When enabled, the script compares the current CT filename with the window title using the same fuzzy matching logic.

If they match, saving overwrites the current file (native behaviour).

If they don't match, saving creates a new file with a name derived from the window title.

This is useful when the auto‑loader mistakenly loads the wrong CT for a new game; smart save helps you start a fresh file without accidentally overwriting an existing one.

v2.1.32 – What's New

Fixed CurrentFilePath not updating after auto‑load – the three auto‑load paths (rule match, fuzzy match, latest) now call onPostLoadTable() to correctly record the loaded file path for save operations.

v2.1.31 – What's New

Configurable save behaviour – added recentFiles.ENABLE_CUSTOM_SAVE (default false).

When false (default): saving overwrites the currently open CT file (native CE behaviour).

When true: saving creates a new file with a name derived from the window title (previous custom behaviour).

Track current file path – recentFiles.CurrentFilePath is now updated on every load, used to pre‑fill the save dialog.

Form destroy on close – added OnClose handler to the selection dialog to prevent memory leaks.

v2.1.28 – What's New

Fixed splitCamelCase corruption – the CamelCase splitter now only processes ASCII alphanumeric blocks, leaving non‑English (UTF‑Cool characters untouched. This prevents breaking Chinese/Japanese/Korean text when CamelCase splitting is enabled.



recentFiles.lua
 Description:
2.1.33

Download
 Filename:  recentFiles.lua
 Filesize:  38.12 KB
 Downloaded:  2 Time(s)


recentFiles.lua
 Description:
2.1.32

Download
 Filename:  recentFiles.lua
 Filesize:  34.91 KB
 Downloaded:  5 Time(s)


recentFiles.lua
 Description:
2.1.28

Download
 Filename:  recentFiles.lua
 Filesize:  33.4 KB
 Downloaded:  8 Time(s)

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