Hello i am trying to make a spy hack for Age of empire 2 .
So i started finding addresses whit Cheat Engine but sadly the game use dynamic addresse's so i moved on and searched base Addresse's
so i found them:
Base: empire.exe(0x400000)+0x2645C4
Offsets : 41c,4c,4,A8,4
on the pic the "Points to is nothing bk i don't started the game "
So i started making it it's all good whit ReadProccessMemory in singel player but when i am going in multyplayer on gameRanger i can't Read them so most probably gameRanger is blcoking the Read/Write .
So i moved on whit dll , and now come's the problem i am geting back alway's 0
Code:
empires2=(DWORD)GetModuleHandleA("empires2.exe");
unsigned int base= *(unsigned int*)(empires2+0x2645C4);
unsigned int base1 = *(unsigned int*)(base +0x41C);
unsigned int base2 = *(unsigned int*)(base1 +0x4C);
unsigned int base3 = *(unsigned int*)(base2 +0x4);
unsigned int base4 = *(unsigned int*)(base3 +0xA8);
unsigned int base5 = *(unsigned int*)(base3 +0x4);
cout<<base5;
I don't Realy use CheatEngine for making hack's so i am not 100% shure how he find out the base addresse's and offset's so maybe somebody who have exp whit CE could help me thx so much