What's the Problem?

Posts 1–13 of 13 · Page 1 of 1
What's the Problem?
help i got error.. im not sure with this i just follow the instruction from last post... which is the title of the topis is d3d no such file directory

PICTURE:





its electro d3d and did u added CH_NFD in int.h?
Post source and i post it back fixed ..

And about Control Vk its VK_CONTROL

Now about Nfd do int CH_NFD = 0;

Btw b4 i leave here is advice work on nomenu first ..
Quote Originally Posted by nielshetschaap View Post
its electro d3d and did u added CH_NFD in int.h?
yes it is...

base.cpp
Code:
#include <d3d9.h>
#include <d3dx9.h>
#include "Quelle.h"
#include "color.h"
#include "detour.h"
#include "int.h"
#include "Hacks.h"
#include "d3dmenu.h"
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "D3DX9.LIB")

D3D9Menu *Bl4ck = NULL;
CD3DFont*  pFont;

bool Color = true;
bool Create;

char *folder[]	= {"[+]", "[-]"};
char *onoff[]	= {"[OFF]", "[ON]"};
char *jump[]	= {"[OFF]", "[500]", "[2500]", "[5000]"};

void RebuildMenu(void)
   {
   Bl4ck->AddFolder("Player Hacks", folder, &folder1, 2);
   if (folder1)
   {
   Bl4ck->AddItem	 (" NoFallDamage",onoff, &CH_NDF, 2);
   Bl4ck->AddItem	 (" SuperJump",onoff, &CH_SuperJump, 4);
}
   {
   Bl4ck->AddFolder("Server Hacks", folder, &folder2, 2);
   if (folder2)
   {
   Bl4ck->AddItem	 (" 5th Slot",onoff, &CH_5thSlot, 2);
}
}
}

typedef HRESULT ( WINAPI* oPresent ) ( LPDIRECT3DDEVICE9 pDevice, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion);
oPresent pPresent;

HRESULT WINAPI myPresent ( LPDIRECT3DDEVICE9 pDevice, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)
{
	pFont = new CD3DFont("Arial", 8, D3DFONT_BOLD);
	pFont->InitDeviceObjects(pDevice);
	pFont->RestoreDeviceObjects();

	if(Bl4ck == NULL)
		{
			Bl4ck = new D3D9Menu("Vanerv10 D3D");
		}else{
			Bl4ck->MenuShow(12,10,pFont,pDevice);
			if(Bl4ck->Mmax==0) RebuildMenu();
			Bl4ck->MenuNav();
		
		}

	Hacks();
	
	delete pFont;

	return pPresent(pDevice, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
}

DWORD dwDrawindexedprimitive_ret;

HRESULT WINAPI myDrawIndexedPrimitive(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE Type, UINT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount)
{	  
  LPDIRECT3DVERTEXBUFFER9 Stream_Data;
  UINT Offset = 0;
  UINT m_Stride = 0;


  if(pDevice->GetStreamSource(0, &Stream_Data, &Offset, &m_Stride) == D3D_OK)
  Stream_Data->Release();

//D3D Funcs
 __asm
   {
    popad
       jmp dwDrawindexedprimitive_ret;

   }
}

int D3D(void)
{
	HINSTANCE	hD3D;
	DWORD		vTable[105];
	hD3D=0;
	do {
		hD3D = GetModuleHandle("d3d9.dll");
		if (!hD3D) Sleep(10);
	} while(!hD3D);

	if (D3Ddiscover((void *)&vTable[0],420)==0) return 0;
	{

		pPresent = (oPresent)DetourCreate((DWORD)vTable[17], (DWORD)myPresent,12);

			
		Sleep(100);
	}

	return 0;
}	


BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
	if (dwReason == DLL_PROCESS_ATTACH) 
	{	HideModule(hDll);
		EraseHeaders(hDll);               
	    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)D3D, NULL, NULL, NULL);
	}
	return TRUE;
}
hacks.h
Code:
#include "Addies.h"

void Hacks()
{
	DWORD Player = *(DWORD*) ADR_PlayerPointer;
	DWORD Server = *(DWORD*) ADR_ServerPointer;

	if (Player != 0)
	{
		//PlayerHacks
		if (CH_NFD == 1)
		{
			*(float*)(Player+OFS_NFD) = -20000;
		}

		if (CH_SuperJump !=0)
		{
			if (GetAsynKeyState (VK_Control)&1)
			{
				switch (CH_SuperJump)
				{
				case 1: *(float*)(Player+OFS_Y) = 500;break;
					case 2: *(float*)(Player+OFS_Y) = 2500;break;
						case 3: *(float*)(Player+OFS_Y) = 5000;
				}}}
		//PlayerHacks ends
	}

	if (Server != 0)
	{
		//ServerHacks
		switch (5thSlot)
		{
		case 1: *(long*)(Server+Slot5) = 1;
		}
		//ServerHacks ends
	}

}
int.h

Code:
//Folder
int folder1			=0;
int folder2			=0;

//Items
int CH_NDF			=0;
int CH_5thSlot      =0;
int CH_SuperJump    =0;
Quote Originally Posted by R3dLine View Post
Post source and i post it back fixed ..

And about Control Vk its VK_CONTROL

Now about Nfd do int CH_NFD = 0;

Btw b4 i leave here is advice work on nomenu first ..

i already done to make a no menu hack and its work...

Code:
1>------ Build started: Project: ELExTrO D3D, Configuration: Release Win32 ------
1>Compiling...
1>Base.cpp
1>d:\mydocuments\my pictures\stock images\elextro d3d\elextro d3d\Hacks.h(13) : error C2065: 'CH_NFD' : undeclared identifier
1>d:\mydocuments\my pictures\stock images\elextro d3d\elextro d3d\Hacks.h(20) : error C3861: 'GetAsynKeyState': identifier not found
1>d:\mydocuments\my pictures\stock images\elextro d3d\elextro d3d\Hacks.h(34) : error C2059: syntax error : 'bad suffix on number'
1>d:\mydocuments\my pictures\stock images\elextro d3d\elextro d3d\Hacks.h(34) : error C2146: syntax error : missing ')' before identifier 'thSlot'
1>d:\mydocuments\my pictures\stock images\elextro d3d\elextro d3d\Hacks.h(34) : error C2059: syntax error : ')'
1>d:\mydocuments\my pictures\stock images\elextro d3d\elextro d3d\Hacks.h(35) : error C2065: 'thSlot' : undeclared identifier
1>d:\mydocuments\my pictures\stock images\elextro d3d\elextro d3d\Hacks.h(35) : error C2143: syntax error : missing ';' before '{'
1>d:\mydocuments\my pictures\stock images\elextro d3d\elextro d3d\Hacks.h(36) : error C2046: illegal case
1>Build log was saved at "file://d:\MyDocuments\My Pictures\Stock Images\ELExTrO D3D\ELExTrO D3D\Release\BuildLog.htm"
1>ELExTrO D3D - 8 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
FIXED !

Code:
void RebuildMenu(void)
   {
   Bl4ck->AddFolder("Player Hacks", folder, &folder1, 2);
   if (folder1)
   {
   Bl4ck->AddItem	 (" NoFallDamage",onoff, &CH_NDF, 2);
   Bl4ck->AddItem	 (" SuperJump",onoff, &CH_SuperJump, 4);
}
   
   Bl4ck->AddFolder("Server Hacks", folder, &folder2, 2);
   if (folder2)
   {
   Bl4ck->AddItem	 (" 5th Slot",onoff, &CH_5thSlot, 2);
}
}

FIXED !


Code:
int Slot5=0;
int CH_NFD=0;
int CH_SuperJump=0;

FIXED !

Code:
 
void Hacks()
{
	DWORD Player = *(DWORD*) ADR_PlayerPointer;
	DWORD Server = *(DWORD*) ADR_ServerPointer;

	if (Player != 0)
	{
		//PlayerHacks
		if (CH_NFD == 1)
		{
			*(float*)(Player+OFS_NFD) = -20000;
		}

		if (CH_SuperJump !=0)
		{
			if (GetAsyncKeyState(VK_CONTROL))
			{
				switch (CH_SuperJump)
				{
				case 1: *(float*)(Player+OFS_Y) = 500;break;
					case 2: *(float*)(Player+OFS_Y) = 2500;break;
						case 3: *(float*)(Player+OFS_Y) = 5000;
				}}}
		//PlayerHacks ends
	}


	if (Server != 0)
	{
		//ServerHacks
		switch (Slot5)
		{
		case 1: *(long*)(Server+Slot5) = 1;
		}
		//ServerHacks ends
	}

}
Sry if i was late i was on job ... and here is deal next time Don't start with numb at first like 5Slot na its wrong so correct is -> Slot5 or anything but don't start with number , And make sure u code super jump correct again u made lots mistakes
Is it fixed yet? If yes. Req is to close :3
ERROR
Quote Originally Posted by MH4CKER View Post
Is it fixed yet? If yes. Req is to close :3
Code:
1>Base.cpp
1>.\Base.cpp(34) : error C2065: 'CH_5thSlot' : undeclared identifier
1>Build log was saved at "file://d:\MyDocuments\My Pictures\Stock Images\ELExTrO D3D\ELExTrO D3D\Release\BuildLog.htm"
1>ELExTrO D3D - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
i got one error

Change &CH_5thSlot into &Slot5...

and i agree with R3d you should make no menu first
Quote Originally Posted by bananegel1 View Post
Change &CH_5thSlot into &Slot5...

and i agree with R3d you should make no menu first
i change it. but again its error... lolz i already done to make a no menu hack... and its work great...
Quote Originally Posted by vanerv10 View Post
i change it. but again its error... lolz i already done to make a no menu hack... and its work great...
I wonder how you fixed errors in no menu because this is the easiest error to fix ..


Just int CH_5thSlot
Change it to Slot5
fixed close...
read the whole base and see how it works and wat things do what. Then after you understand, recode the base from scratch with just reference. After doing that and reading alot, attempt to code it from scratch with NO reference
Posts 1–13 of 13 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us