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 


Open Source Trainer DLL Library

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
erfg1
Cheater
Reputation: 0

Joined: 14 Jul 2013
Posts: 49

PostPosted: Wed Apr 27, 2016 9:44 am    Post subject: Open Source Trainer DLL Library Reply with quote

For the past several months I've been developing a DLL library file that can assist in making a trainer in C#.

Wiki Documentation
Source Code
Compiled Release DLL
Example Game Trainers
Complex Game Trainer Example

FEATURES
- Read / Write module + memory + offsets or memory + offsets. Not just static memory addresses!
- Memory addresses load from external ini file(s) or internally.
- Inject separate dll files to trigger internal functions.
- Read / Write strings, integers, floats, doubles, byte(s) of any size.
- AoB scans in sections of addresses for fast address locating.

You can keep the same formatting as in Cheat Engine...
module + memory + offsets
EX1: game.exe+0x007F94E8,0x9c
EX2: someLib.dll+0x007F94E8,0x9c,0x8,0x67
EX3: 0x007F94E8,0x9c,0x8
EX4: 0x007F94E8

Here are some more examples:

You can program an address with offsets internally...
Code:
int current_hp = MemLib.readInt("0x007F94E8,0x9c");


Or, make a code ini file...
Code:
int current_hp = MemLib.readInt("godMode", "codeFile.ini");


and in your code ini file...
Code:

[codes]
godMode=0x007F94E8,0x9c


You can do an AoB scan...
Code:
IntPtr myScan = MemLib.AoBScan(0x00500000, 0x300000, "?? 00 ?? 00 00 00 ?? 00 50 00 4B 00 50 00 4B 00 5F 00 73 00 05");
int current_hp = MemLib.readInt(myScan.ToString("X8"));


Or, make a code ini file...
Code:
IntPtr myScan = MemLib.AoBScan(0x00500000, 0x300000, "godMode", "codeFile.ini");
int current_hp = MemLib.readInt(myScan.ToString("X8"));


and in your code ini file...
Code:

[codes]
godMode=?? 00 ?? 00 00 00 ?? 00 50 00 4B 00 50 00 4B 00 5F 00 73 00 05


You can write integers, strings, floats, bytes...
Code:
MemLib.writeMemory("0x007F94E8,0x9c", "int", "1");


Or, with ini format...
Code:
MemLib.writeMemory("godMode", "int", "1", "codeFile.ini");


You can inject your own DLL files...
Code:
InjectDLL("myDllFile.dll")

This will create a new module called "inject"
You can also use ThreadStartClient(object) to create a pipe to your injected game called EQTPipe.

_________________
OPEN SOURCE C# WINDOWS TRAINER DLL: http://forum.cheatengine.org/viewtopic.php?p=5665803

OPEN SOURCE OBJECTIVE-C MACOS TRAINER DYLIB: https://github.com/erfg12/memory-dylib
Back to top
View user's profile Send private message Visit poster's website
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Wed Apr 27, 2016 10:41 am    Post subject: Reply with quote

Nice Smile
_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
ahiddenmessi
How do I cheat?
Reputation: 0

Joined: 22 May 2019
Posts: 1

PostPosted: Wed May 22, 2019 4:49 am    Post subject: Reply with quote

thanks nice one!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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