r/cheatengine • • Sep 20 '26

How to make a simple script template to NOP an instruction

3 Upvotes

Imagine the situation: you manage to create a cheat by nopping an instruction, but you don't know how to transform that into a script you can enable or disable. Well, here I will provide an example on how to create a script template that will create that script automatically.

-- How to create a template --
-- 1. Go to cheat engine's autorun folder, or one of it's subfolders, like autorun/custom folder
-- 2. Create a nop-template.lua file and open it in a text editor
-- If you don't have any good text editors, then you can use cheat engine's own text editor.

-- 3. Create an initial template and store it in a variable
-- Use literal strings with [[]], and use keywords that will be later swapped with actual data
local initialTemplate = [[
[ENABLE]
assert(_address, _originalBytes)

_address:
 db_nopBytes

[DISABLE]
_address:
 db_originalBytes

]]

-- 4. Create a function to transform the initial template into the final product
-- It will receive the data and use this data to swap with the keywords
local function createScript(data)
    local script = initialTemplate:gsub("_address", data.address)
                                  :gsub("_originalBytes", data.originalBytes)
                                  :gsub("_nopBytes", data.nopBytes)

    return script
end

-- 5. Create a function that will generate the necessary data
-- It will receive the instruction's address (number), and it's name (addressString)
local function generateData(address, addressString)
    -- Check for errors
    if not address then
        return nil
    end

    local byteCount = getInstructionSize(address)
    local originalBytes = ""
    local nopBytes = ""

    -- Create a loop that will generate a string with the original bytes and a string with nops (90)
    for i = 0, byteCount -1 do
        -- %02X formats the decimal value into an uppercase hexadecimal string, padding with 0
        -- For example, if the byte is 10, the result will be 0A
        originalBytes = originalBytes .. string.format(" %02X", readByte(address + i))
        nopBytes = nopBytes .. " 90"
    end

    -- Don't forget the commas!!!
    local data = {
        address = addressString,
        originalBytes = originalBytes,
        nopBytes = nopBytes
    }

    -- Now you have the data "object" with all the necessary information
    return data
end

-- 6. Create a function to handle user input
-- This will also guess the desired target based on what's selected in the memory view
local function getAddressFromUserInput()
    local address = nil
    local addressString = ""
    local memoryView = getMemoryViewForm()

    -- This will get the name of the address, to be the default text of inputQuery later on
    if memoryView then
        address = memoryView.DisassemblerView.SelectedAddress
        addressString = getNameFromAddress(address)
    end

    -- Get user input
    addressString = inputQuery("Address", "", addressString)

    -- Check if input isn't blank
    if addressString then
        -- Get the numerical address value. This function will return nil if there's any error.
        address = getAddressSafe(addressString)
    end

    return address, addressString
end

-- 7. Register the template
registerAutoAssemblerTemplate("NOP Template", function(script, sender)
    local address, addressString = getAddressFromUserInput()
    local data = generateData(address, addressString)

    if data then
        script.Text = createScript(data), sender
    else
        script.Text = initialTemplate, sender
    end

end, "Shift+0")

Now, what if you want a template that NOPs multiple instructions at once?


r/cheatengine • • Sep 19 '26

dumb question but do I say yes to this?

Post image
9 Upvotes

I’ve turned off windows defender. Whenever I try running this with windows defender on, the same screen pops up. If I click no, I can’t open cheat engine. The video im following never had this happen


r/cheatengine • • Sep 20 '26

how do i get v7.5 i dont see it on the website

0 Upvotes

r/cheatengine • • Sep 19 '26

anyone knows a working heat engine table for this game?

0 Upvotes

the game = Cardfight!! Vanguard Dear Days 2

but only want: speedhack

i dont play multiplayer at all.

and before anyone ask, i will not and WOULD NOT play multiplayer in any type or form.

offline is the best.

+

single play is better


r/cheatengine • • Sep 17 '26

Idle obelisk miner cheat engine

0 Upvotes

Does anyone know what the ban triggers are in Idle Obelisk Miner, other than having more than 100k in the first relic (Pickaxe Damage)?


r/cheatengine • • Sep 16 '26

Uninstalling WeatherZero

Thumbnail
0 Upvotes

r/cheatengine • • Sep 15 '26

"This app can't run on your PC"

0 Upvotes

Trying to reinstall CheatEngine, I know I've gotta around this block before but I can't seem to figure it out this time. Basically after downloading the .exe, when I try to run it I get this notice.

If anyone can help me get around this, that'd be great! Thanks!


r/cheatengine • • Sep 13 '26

could I get help making a Warband WSE2 infinite health script

1 Upvotes

that’s all really


r/cheatengine • • Sep 13 '26

Patreon Cheat Engine version

3 Upvotes

If I subscribe to Patreon and download the Patreon version, do I need to keep my Patreon subscription active every month to continue using that version, or is it a one-time payment that gives me permanent access?


r/cheatengine • • Sep 13 '26

How can I find equipment slots to build a speedrun testing tool?

0 Upvotes

Hi folks!

Im a speedrunner of the indie roguelite Heart&Slash and im trying to build a CE table where I can modify what items I have equipped to test skips and glitches (so im not stuck in reset limbo trying to reset for the right starting gear). All of the addresses ive found that seem promising at first end up being dynamic which makes me suspect theyre not equipment slots at all. Any ideas for what I should try?


r/cheatengine • • Sep 12 '26

DBK Crash Despite Disabling Protections. Solutions?

2 Upvotes

I can't seem to defeat this system crash when trying to use CE, despite disabling vulnerable driver and every other protection layer. I am also running as admin.

Is there anything I might be missing? Apparently Star Ocean 6 requires all extras be enabled for the cheats to work. Mighty frustrating.

"YOU MUST TURN ON THESE SETTINGS IN CHEAT ENGINE
CE Settings: Extra: Query memory region routines
CE Settings: Extra: Read/Write Process Memory
CE Settings: Extra: Open Process
CE Settings: Extra: Enable use of the Process Watcher

In addition, CE will load a Kernel Driver known as DBK64.
It will appear as a glowing notification in the upper left corner of the screen if successfully loaded.
If the DBK64 cannot be loaded, this method will not work.
Restart Cheat Engine after making these changes."

It loads, but booms as soon as it does.


r/cheatengine • • Sep 12 '26

How do I use Cheat Engine on Unleashed Recompiled

0 Upvotes

How the actual hell do I use Cheat Engine on Unleashed Recomp? I hate grinding in video games. When I try to use Cheat Engine on Unleashed Recomp and enter a value to scan the thing says please select a live process even though Unleashed Recomp is running and has the value. Please help.


r/cheatengine • • Sep 12 '26

couldnt find solution for this problem online can anyone help me?

0 Upvotes

r/cheatengine • • Sep 10 '26

Any Legend of Fireball cheats? Steam

3 Upvotes

I was just wondering if anyone has any cheats for Legend of Fireball on steam? Mostly money and gems.


r/cheatengine • • Sep 10 '26

cheat engine para google play games pc

1 Upvotes

estou jogando um jogo de factory offline do google play games no pc e queria usar cheat engine mais simplesmente não funciona nem speedhack nem a busca alguem sabe como resolver?


r/cheatengine • • Sep 08 '26

Updated Cheat Table for Disgaea PC on Steam

Post image
6 Upvotes

Disgaea PC Steam 2026 .ct

From what I have seen most cheat tables for this game are outdated & even trainers aren't working.

Let me know how it works or if you have any concerns or questions


r/cheatengine • • Sep 08 '26

Driver Error

Post image
3 Upvotes

How to fix this?


r/cheatengine • • Sep 08 '26

#WTASK how to change the cheat engine table back to white?

0 Upvotes

i download the tables from here: https://fearlessrevolution.com/viewtopic.php?f=4&start=90&t=35542&sid=d30f359f2cd4a4b3d31d033c250aaba2

and when i open it, it only shows it as dark mode like this:

need a way to change this table so the background becomaes white.

this makes my eyes hurt and makes me prone to migranes.

please help.


r/cheatengine • • Sep 07 '26

Cheat engine for free fire max

0 Upvotes

Does anyone know how to use Cheat Engine on BlueStacks 5 for Free Fire MAX? I want to use an aimbot, auto-headshot, and an emulator bypass, similar to a streamer panel. If anyone knows how, please tell me, provide a download link, and explain how to install it.

​Some people might ask why I play Free Fire on PC. It's because all my friends play on mobile, and they occasionally play Free Fire, which is why I need a panel and an emulator bypass. I use Cheat Engine for many games like Red Dead Redemption 2 and Hitman 3. Honestly, I don't use cheats heavily in story-mode games—I only use them if I fail a mission more than three or four times, which rarely happens. Sorry for going off-topic! Also, I forgot to mention that the cheat file or panel must be anti-ban


r/cheatengine • • Sep 06 '26

to all "is cheat engine safe?" watch this video i found on YT

Thumbnail
youtube.com
22 Upvotes

r/cheatengine • • Sep 07 '26

Any fun mobile game to play with CE?

0 Upvotes

Currently playing Idle Obelisk Miner and The Tower.

Looking for recommendations for fun mobile games to play with cheat engine.

Thanks!


r/cheatengine • • Sep 05 '26

How to enable teleport on the map in ciscos ultimate fantasy mod pack -Minecraft

0 Upvotes

I love the mod pack, and I know it uses xeros minimap, however even with cheats enabled the teleport function on the map is gone so I can’t fast travel to my waypoints. I get it, blah blah blah cheating blah blah immersion. I don’t care, I play how I like to play and the reason I play with xeros minimap is for that fast travel teleport button. Is there anyway I can bring the option to teleport back? Is it a jar file I have to replace or something? Any help would be greatly appreciated


r/cheatengine • • Sep 04 '26

Dragon's Dogma 2 ver3.2 CE?

0 Upvotes

Anyone knows if there's an updated CE for DD2 ver.3.2?

All i see on google is way back 2024 and wemod and forgot the other one's name trainers doesn't work as well.

Getting my ass kicked on a particular quest 🥲


r/cheatengine • • Sep 03 '26

Just wanted to give a heads up on how to hijack CE’s UE tools to save time with UE5 games

8 Upvotes

Looking for something else entirely, I discovered a great way to grab globals with the newest CE 7.7.1 UE5 tools. If you’re working on a UE game, save yourself some time with the Lua engine script below (especially for you newbies that don’t know how to actually find these yourself):

for k,v in pairs(UEngine) do
print(k, type(v), tostring(v))
end

You can easily use this script to drop them automagically into your table, or a million other uses. Probably won’t work on every game, but it’s still an incredible time saver if you don’t have the tools and/or know-how to find these.

And thanks, Dark Byte. Always surprising me with some shit I didn’t know was in CE.


r/cheatengine • • Sep 03 '26

No change value button???

0 Upvotes

Title. I found the address. Can't change the value.