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.5.8)

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

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

The core functionality of recentFiles.lua is only one: universal automatic loading of CT tables.
(Auto-Load Corresponding Cheat Table On Attach)

Install the script
Place recentFiles.lua in CE's autorun or autorun\custom folder, then restart Cheat Engine.

Open your game and its CT table
Attach CE to the game process and load the corresponding CT file (e.g., VampireSurvivors1.1.4.CT).

Save that CT table once
Use CE's "Save" or "Save As" (even if you don't change anything, just save it).

The script learns the association
From then on, whenever you open that game process again, the script loads the most recent CT for that process.

-------------------------------------------------------

CE version: ≥ 7.5 (requires extractFilePath and fileExists support).

Operating System: Windows (relies on user32 API)


--------------------------------------------------------
-- Version: 2.5.8
-- [This file = v2.5.7 + Save Dialog inherits directory + Migrate Old Rules]
--
-- v2.5.8 patches:
-- Save Dialog: when taking the "create new from window title" branch, also inherit
-- the current CT's directory.
-- New menu item: Migrate Old Rules (one-time rewrite of old rules using current TITLE_CLEANUP).
--
-- Actual patches effective in v2.5.7:
-- H4 : safeLoadTable records loadTable return value type (DEBUG output only).
-- M1 : extractVersion supports v2/v10 without decimal point (excludes 4-digit years).
-- UX : Switch CT menu gives user feedback when there are no records.
-- PROCESS_NORMALIZE: switched to string.byte byte-by-byte processing,
-- no longer relies on character class patterns.

Version: 2.5.6
changes:
1. getSignificantTitle reuses the TITLE_CLEANUP cache from getCurrentWindowTitle
2. matchByRule changed to bidirectional containment (title contains rule OR rule contains title)
3. AddEntry adds skipSave parameter; multi-select batch load writes to disk once at the end
4. Disable "Overwrite Load" button in multi-select mode, to avoid "overwrite" literal
conflicting with "first overwrite, rest merge" behavior
hot-reload removed, simplified version
Notes:
This version does not support hot-reload (restart CE to reload).
After modifying the script, fully close CE and restart it.
Kept: AddEntry index fix, TITLE_CLEANUP extensions, OnClick/OnExecute field distinction.
Fixed: "Clear Recent File List" insertion position changed to before "Exit".
Improved: Switch CT dialog now provides "Overwrite Load" and "Merge Load" dual buttons at the bottom,allowing user to explicitly specify the load method.



recentFiles.lua
 Description:
2.5.8

Download
 Filename:  recentFiles.lua
 Filesize:  73.87 KB
 Downloaded:  1 Time(s)


recentFiles.lua
 Description:
2.5.6

Download
 Filename:  recentFiles.lua
 Filesize:  66.8 KB
 Downloaded:  272 Time(s)


recentFiles.lua
 Description:
2.4.2

Download
 Filename:  recentFiles.lua
 Filesize:  69.2 KB
 Downloaded:  299 Time(s)


recentFiles.lua
 Description:
2.4.1

Download
 Filename:  recentFiles.lua
 Filesize:  68.99 KB
 Downloaded:  300 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