Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
Programming for Beginners This section is for those just beginning in the programming world.
You are Unregistered, please register to gain Full access.
Hey, I was making a trainer I understand the code but I can't get the fcking STATIC addresses. I get the ones from cheatengine but they change after game restart -.-
here's the code of my trainer:
PHP Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ProcessMemoryReaderLib;
namespace Trainer
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnHP_Click(object sender, EventArgs e)
{
System.Diagnostics.Process[] myprocess = System.Diagnostics.Process.GetProcessesByName("BFBC2Game"); // the process
ProcessMemoryReaderLib.ProcessMemoryReader preader = new ProcessMemoryReaderLib.ProcessMemoryReader();
preader.ReadProcess = myprocess[0];
preader.OpenProcess();
int byteswritten;
int bytesread;
int value;
int pointerbase;
byte[] memory;
memory = preader.ReadProcessMemory((IntPtr)0xStatic Address here, 4, out bytesread); // can't get the static address -.-
pointerbase = BitConverter.ToInt32(memory, 0);
pointerbase += 0xPointer; // no idea where to get it from.
value = 100;
memory = BitConverter.GetBytes(value);
preader.WriteProcessMemory((IntPtr)pointerbase, memory, out byteswritten);
}
}
}
So the problem is that I can't get the static addresses or offsets + pointers for my trainer. So if anyone can explain how to get the static offsets and pointers please post. I will be very grateful.
Last edited by monster1777; 03-08-2010 at 06:49 PM.
If you've found the value in cheat engine again, right klick on it and choose
"Find out what access this address", then you should see some assambler code, maybe that will help you
Ahhh this... Yea I made it, but sometimes I get just eax+1c or something like that ebx+1c or eax+00000000080 and I don't know what is the right pointer. The whole shit or just 1 number. And I don't know what to do later :S
Then, trace it all obviously ... 1c would be your offset, and EAX holds the value. Add that, and it should be the pointer to your DMA. Kindly do the Cheat Engine tutorial, it'll help you loads.
I have the address 0386272C and the pointer is 1c. It says that it is ebx+1c so it's value is 03862610. In the tut it says I have to do new scan with 03862610. But when I do this nothing shows, no addresses. Now I'm stuck and really don't know what to do next.
It looks like ebx is calculated from edi (just a guess).
Try searching for edi's value (in hex!).
My assumption:
edi = 03862500 : contains a pointer to an array (or vector) of player structs (or classes)
ecx = 5 : which element of the array (or vector)
ebx = edi + ecx * 0x50 (80dec)
ammo = ebx + 0x1C
Code:
public struct PLAYER
{
public byte[28] unknown1;
public decimal ammo;
public byte[48] unknown2;
}