xxhehe Expert Cheater
Reputation: 0
Joined: 11 Mar 2015 Posts: 171
|
Posted: Fri Jul 17, 2026 6:12 am Post subject: [Lua]The History of opened files list(Ver 2.5.8) |
|
|
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.
| Description: |
|
 Download |
| Filename: |
recentFiles.lua |
| Filesize: |
73.87 KB |
| Downloaded: |
1 Time(s) |
| Description: |
|
 Download |
| Filename: |
recentFiles.lua |
| Filesize: |
66.8 KB |
| Downloaded: |
272 Time(s) |
| Description: |
|
 Download |
| Filename: |
recentFiles.lua |
| Filesize: |
69.2 KB |
| Downloaded: |
299 Time(s) |
| Description: |
|
 Download |
| Filename: |
recentFiles.lua |
| Filesize: |
68.99 KB |
| Downloaded: |
300 Time(s) |
|
|