In my first tutorial, I'm trying to explain the most basic way how you can create your own game trainer using C# and CheatEngine. Please, excuse my english and if you have any questions/suggestions you can contact me via skype: matej.tomcik
Download the helper classes: http://casualient.com/2LW2
!!! UPDATE !!!
The code you will download from my server is a newer version. There are few changes in it:
- You no longer use the @ character to separate offsets, use + sign for positive offsets and - for negative offsets
- If the address starts with a module, you have to enclose it in double quotes
- Use IntPtr instead of CheatEngine.ProcessAddress
Example:
Game.exe@001023AF@28@A0 becomes "Game.exe"+001023AF+28+A0
So the code in the video will after modification look like this:
IntPtr address = memory.GetAddress(
"\"FC3_d3d11.dll\"+01E05810+4+14+1ec+8+60");
better approach is to use GetAddress alternative:
IntPtr address = memory.GetAddress("FC3_d3d11.dll", (IntPtr)0x01E05810, new int[] { 0x4, 0x14, 0x1ec, 0x8, 0x60 });
which is GetAddress(module name, base address, offsets)