[Release][C++ Code] GM/AOE/Range

09/09/2012 22:15 MrLovelas#256
Hi Glenox, can you give us source of youre trainer?
09/09/2012 22:17 кev#257
People, people, people. Learn to understand your compiler. Makes your life a lot easier. And everyone else's too. :p

Quote:
Originally Posted by osyris124 View Post
1>------ Build started: Project: v3, Configuration: Debug Win32 ------
1> dllmain.cpp
1>v3.obj : error LNK2005: _DllMain@12 already defined in dllmain.obj
1>v3.obj : error LNK2005: "void __cdecl Start(void)" (?Start@@YAXXZ) already defined in dllmain.obj
1>C:\Users\ChiefInspector\Desktop\v3\Debug\v3.dll : fatal error LNK1169: one or more multiply defined symbols found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Use search, this is the 3rd or 4th time I answer the same question on a same piece of code. Like your compiler is telling you, you've got DllMain defined twice in your source. Another entry is in the file which contents you just pasted and the other one is in "dllmain.cpp". You can delete dllmain.cpp and you're done.

But still, learn to know your compiler and the language before diving in head first.


Quote:
Originally Posted by AshCrocK View Post
@UP delete dllmain.obj
Makes no difference, that's not the cause.

Quote:
Originally Posted by AshCrocK View Post
I have a question... Why everytime I try to activate my injected .dll game closes?
Access violation most likely. Not all memory is readable or writable, check your addresses and offsets.
09/10/2012 06:16 denz0892#258
may i ask, whats wrong with my codes i've just added NSD, heres the code:

#include "stdafx.h"

#include <stdio.h>
#include <stdlib.h>
#include <windows.h>


#define ADDR_GM 0x1076C40
#define ADDR_AOE 0x10C730C
#define ADDR_RANGE 0x10C7308


#define ADDR_NSD 0x0877784



void Start();

BOOL APIENTRY DllMain(HMODULE hModule, DWORD ulReason, LPVOID lpReserved)
{
if (ulReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start, 0, 0, 0);
}

return TRUE;
}

void Start()
{
while (1)
{
if (GetKeyState(VK_F11) < 0) // Turn On
{
*(DWORD*)ADDR_GM = 2;
*(DWORD*)ADDR_AOE = 100;
*(DWORD*)ADDR_RANGE = 7;
}

if (GetKeyState(VK_F12) < 0) // Turn Off
{
*(DWORD*)ADDR_GM = 0;
*(DWORD*)ADDR_AOE = 0;
*(DWORD*)ADDR_RANGE = 0;
}
if (GetKeyState(VK_F5) < 0) // Turn On
{
*(DWORD*)ADDR_NSD = 1;
}
if (GetKeyState(VK_F6) < 0) // Turn Off
{
*(DWORD*)ADDR_NSD = 0;
}

Sleep(1);
}
}
09/10/2012 07:01 osyris124#259
@ sir кev
.. Thank you for your response.. I really have no idea about C++ but im trying to understand it, but it seems its hard to understand.. Hehehe Anyway, ill try it again, ill delete the dllmain.cpp please guide me.. =p
09/10/2012 07:22 genesisVI#260
Quote:
Originally Posted by osyris124 View Post
@ sir кev
.. Thank you for your response.. I really have no idea about C++ but im trying to understand it, but it seems its hard to understand.. Hehehe Anyway, ill try it again, ill delete the dllmain.cpp please guide me.. =p
u know how to make a new project right ?

now here is the trick

make an empty project

right click on the last folder on ur project pane
i think its resource folder or source not sure


then select new item

select a .cpp

now copy paste ur code

u nid to include "windows.h" if u got an error in stdafx.h

then right click on the .cpp select compile

then debug . its the play button on the top ..

then if everything go`s well and the build succeeded after u press the play button it would pop up a warning just ignore it

now go to

Documents. Visual Studio\projects\ur project name\debug

now ull see a dll there.. just inject it and ur done :D
09/10/2012 07:48 exninja#261
tnx ive been trying to learn how you guys make hacks =) i cant believe i was able to compile your code and make it work many thanks men. =)
09/10/2012 15:07 audreyxp2012#262
is the address for combo hack same with the address before it was patch?
09/10/2012 15:18 lowkey04#263
@audreyxp2012
i already answered you question on [Only registered and activated users can see links. Click Here To Register...]. :)
09/10/2012 15:34 audreyxp2012#264
@lowkey04
sir thanks for the reply. i got problem with my combo hack. it doesnt work.

can share me your code for combo hack please.
09/11/2012 05:23 osyris124#265
Thank you Mr.GenesisVI For the reply.. And Thank you, i used to compile now my DLL. :)
Im trying to add some more address for the hack.. Please Guide me again! Haha Thanks!

------------------------------------------

Sir, why is it, when i inject my cabal, the cabal stops? i got error.. :(
09/11/2012 11:07 joshua_1316#266
I need help howto code zoom hack. How can I write the 3 (90 90 90) array of bytes into value?
09/11/2012 11:13 fuckyourass#267
Now i really nid to review my notes and understanding about C++ :D
09/11/2012 11:42 mathoii01#268
hey sir can you teach me how to create it??
09/11/2012 12:31 keypress14#269
Quote:
Originally Posted by joshua_1316 View Post
I need help howto code zoom hack. How can I write the 3 (90 90 90) array of bytes into value?
USED CE TO CONVERT ARRAY OF BYTES - 4BYTES
BUT IT ONLY WORKS IN BYPASS

Quote:
Originally Posted by denz0892 View Post
may i ask, whats wrong with my codes i've just added NSD, heres the code:

#include "stdafx.h"

#include <stdio.h>
#include <stdlib.h>
#include <windows.h>


#define ADDR_GM 0x1076C40
#define ADDR_AOE 0x10C730C
#define ADDR_RANGE 0x10C7308


#define ADDR_NSD 0x0877784



void Start();

BOOL APIENTRY DllMain(HMODULE hModule, DWORD ulReason, LPVOID lpReserved)
{
if (ulReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start, 0, 0, 0);
}

return TRUE;
}

void Start()
{
while (1)
{
if (GetKeyState(VK_F11) < 0) // Turn On
{
*(DWORD*)ADDR_GM = 2;
*(DWORD*)ADDR_AOE = 100;
*(DWORD*)ADDR_RANGE = 7;
}

if (GetKeyState(VK_F12) < 0) // Turn Off
{
*(DWORD*)ADDR_GM = 0;
*(DWORD*)ADDR_AOE = 0;
*(DWORD*)ADDR_RANGE = 0;
}
if (GetKeyState(VK_F5) < 0) // Turn On
{
*(DWORD*)ADDR_NSD = 1;
}
if (GetKeyState(VK_F6) < 0) // Turn Off
{
*(DWORD*)ADDR_NSD = 0;
}

Sleep(1);
}
}
#include "stdafx.h"

#define ADDR_GM 0x1076C40
#define ADDR_AOE 0x10C730C
#define ADDR_RANGE 0x10C7308
#define ADDR_SHOWHP 0x10C7618

int Enabled;
int ShowHP=0;
int SpeedHack=0;


void Start();

BOOL APIENTRY DllMain(HMODULE hModule, DWORD ulReason, LPVOID lpReserved)
{
if (ulReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start, 0, 0, 0);
MessageBoxA(HWND_DESKTOP,"Cheat Injected","By:CyberAngeL",MB_OK);
}
return TRUE;
}

void Start()
{
while (1)
{

if (GetKeyState(VK_F12) < 0) // Turn On
{
*(DWORD*)ADDR_GM = 2;
*(DWORD*)ADDR_AOE = 1500;
*(DWORD*)ADDR_RANGE = 30;
DWORD SPEEDHACK = *(DWORD*)0x0B8CBF0;
*(DWORD*)(SPEEDHACK+0x204) = 1142292480;

Enabled=1;
}

if (GetKeyState(VK_F11) < 0) // Turn Off
{
*(DWORD*)ADDR_GM = 0;
*(DWORD*)ADDR_AOE = 0;
*(DWORD*)ADDR_RANGE = 0;

DWORD SPEEDHACK = *(DWORD*)0x0B8CBF0;
*(DWORD*)(SPEEDHACK+0x204) = 1138819072;

DWORD NODELAY = *(DWORD*)0x0B8CBF0;
*(DWORD*)(NODELAY+0x72d4) = 1236561;

Enabled=0;

}



if (Enabled==1)
{

DWORD NODELAY = *(DWORD*)0x0B8CBF0;
*(DWORD*)(NODELAY+0x72d4) = 1629697; //Freeze 1629697 = NSD (Dance, press D -> SP Eegen)

DWORD COMBO1 = *(DWORD*)0x0B8CBF0;
*(DWORD*)(COMBO1+0x73a0) = 0; //Freeze 0 = Use Whole Combo bar

DWORD COMBO2 = *(DWORD*)0x0B8CBF0;
*(DWORD*)(COMBO2+0x7384) = 0; //Freeze 0 = Always 1 Combo

}
Sleep(1);
}
}
09/11/2012 22:44 jasper324#270
what's GM? i can't seem to understand that o.o