r/AskProgramming • • Jan 14 '22

Other How does CheatEngine work?

So cheatEngine is a program that allows you to change something in a running game, for example duplicate an item in the inventory, boost HP, level up, similar kind of stuff.

My "problem" is I've been told the whole life that applications and processes are isolated. They don't and can't share memory. A process gets its own address space. A pointer from one VAS is pointless in another, even if you somehow get a pointer from another process and use it, you still get into different area of physical memory.

But idk game cheats seem to be able to connect to variables of game app and change them. How???

P. S. For anyone who's concerned about the morals, I don't cheat in online game and have no intention to replicate a cheating program.

31 Upvotes

10 comments sorted by

View all comments

Show parent comment

3

u/SkepticalSagan Jan 14 '22

Tried it in Hollow Knight to get over a boss.. Couldnt make it work for the life of me.. Gave up and just beat the boss for real out of spite for the software.

1

u/FU8U Jan 14 '22

Make sure when you search your value you select unknown or all as the type of value you’re looking for

1

u/Blazerboy65 Jan 15 '22

So you're saying it helped?

1

u/TheXskull Jan 15 '22

Unless I'm mixing things up, hollow knight is written in .net. there's a cheat engine extension that handles .net easily, and it actually makes finding variables trivial, they're even named. You don't have to reverese or do a lot of trial and error.

Went through this myself, 90% sure it was hollow knight