List the files that nothing uses anymore, without deleting ones built from a pattern
After weeks of changes the game folder is full of pictures and sounds nobody uses, but deleting by hand is risky, since some are loaded by a name the game builds on the fly. This entry shows how to list the true leftovers and spot patterns that match nothing.
Why this works
A file can be used without its name ever appearing, because the game builds the name as it goes. So the list of what is in use must allow patterns, and a pattern that matches nothing is itself a clue to a typo or a deleted file.
When not to use it
Skip it when names are built from data you cannot list, such as files a player adds or names fetched from a server. A report would call needed files unused. Keep those in a folder the check never touches, and never delete straight from the result.
In the full entry
- What to build, step by step
- Starting values and the reason for each
- 4 common mistakes and the fix
- 21 lines of example code with 3 checks that pass
- How your AI shows you that it works
Say this to your AI
Use the Spielerando entry "List the files that nothing uses anymore, without deleting ones built from a pattern" (read_entry unused-assets-with-name-patterns) in my game. Build it step by step, and show me how you checked that it works.Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP