DEV Community

Breno Alvim
Breno Alvim

Posted on

I added an AI assistant to Cheat Engine for when Next Scan returns zero

You open Cheat Engine, type 1000 because that's what the game shows, spend some coins, type 950, hit Next Scan and get zero results. Most of the time the value sits in memory. It just lives in a different format than the one you typed, or in a different process than the one you opened.

A game that shows 1000 may store 2000, 100 or 1000.0. A browser game runs inside an iframe, and Chrome puts that iframe in another process. A game with a launcher runs as a child process. If you've hit this, you know the fix: try type after type, process after process, until something sticks.

I forked Cheat Engine 7.5 and added an AI Assistant button that does that trial and error for you.

What it does

  1. Identifies the game from the process you open. It reads the executable, its version, the window title and the loaded modules. For a browser game it reads the tab titles and asks the AI which one is the game.
  2. Guesses how the number is stored. It scans 4 bytes, 8 bytes, float and double at several scales in one pass.
  3. Looks elsewhere when the value is missing. It tries the browser iframe next to the tab, the launcher's child processes and other executables from the same folder. Then it widens to 35 formats, and only then asks the AI for new ideas.
  4. Lets you pick the address. When few results are left, double click one to add it to the address list, same as stock Cheat Engine.
  5. Remembers the path. When you add an address, it saves which process held the value and in which format. Next search in the same game tries that path first.

Cheapest AI first

Step When Cost
Saved knowledge Game already seen Free, instant
NVIDIA Nemotron New game, NVIDIA_NIM_API_KEY set Free, about 10 s
Claude Haiku with web search Free model missing or failed About US$0.01 per game
Built-in formats No AI available Free

The assistant researches each game once. After that, searches run without AI. The Claude step reuses the Claude Code CLI you already have, calling it like this:

claude -p --model haiku --tools "WebSearch,WebFetch" --strict-mcp-config --no-session-persistence --disable-slash-commands
Enter fullscreen mode Exit fullscreen mode

What reaches the AI

Process name, executable path, window titles (the tab titles for browsers), loaded module names and whatever you type in the Details field. Memory contents never leave your machine. What it learns stays in %LOCALAPPDATA%\cheatengine-ia-jogos.lua; delete that file and it forgets everything.

Scope

Single player and offline games, your own software, classes and CTFs. Online games and anything with anti-cheat stay out.

Try it

Copy Cheat Engine/bin/autorun/aiassistant.lua from the repo into the autorun folder of your Cheat Engine 7.5 (usually C:\Program Files\Cheat Engine 7.5\autorun) and restart it. The button shows up next to Memory View and turns on once you open a process.

Without Claude Code or a NIM key it still runs on the built-in formats. It's a 942-line Lua script with tests in ai-assistant/check.lua, MIT licensed; Cheat Engine keeps its original terms. Windows only, and heads up: the UI is in Portuguese for now. An English UI is the next thing I'd add if people want it.

Repo: https://github.com/obrenoalvim/cheat-engine/tree/ai-assistant

Which game gave you the most zero-result Next Scans?


P.S.: I'm also building BloodLink, a free platform that connects blood donors to donation campaigns.

Top comments (0)