Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Generate very simple trainer in Cheat Engine?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
DaviFN
Cheater
Reputation: 0

Joined: 23 Oct 2016
Posts: 32

PostPosted: Sat Oct 29, 2016 5:01 pm    Post subject: Generate very simple trainer in Cheat Engine? Reply with quote

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!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites