DaviFN Cheater
Reputation: 0
Joined: 23 Oct 2016 Posts: 32
|
Posted: Sat Oct 29, 2016 5:01 pm Post subject: Generate very simple trainer in Cheat Engine? |
|
|
Hello!
I was developing a trainer in C++ (wait, this has nothing to do with C++), and everything was fine, except for one thing: I couldn't use a function called WriteProcessMemory(), which, of course, unabled me to edit the target process.
So I tried everything, but nothing worked. When I was almost giving up, I realized the only thing in the universe that could edit the process memory of that game was Cheat Engine Kernel's mode. Nice.
My plan is to create a very simple pseudo-trainer in the lua script (form etc.) in order to inject a C++ DLL into the process and, from there, be able to manipulate the memory and use my C++, but the problem is that I don't know how to do it, and I've tried a little bit and nothing worked.
So please gimme instructions of how to make a trainer like this:
- If possible, hide completely the form window, but this is not necessary
- Auto-attach to process when executed, and, after that, auto-inject my dll
(I tried using openProcess() and injectDLL(), but I don't know where to place them, and every try was resulting in a Lua Engine window with errors on it)
- Show a message or something if the game process is not running
- Immediately close the trainer after successfully injecting the DLL (idk why when I tried to normally close the form, it closed but the process was still running in the task manager)
Thank you!
|
|