How to make your own WireFrame

08/25/2010 21:04 nikonix04#61
does this work on window 7??.. coz SDK summer 2004 is only compatible in older OS??... sorry for noob question..
08/25/2010 22:27 nikonix04#62
Quote:
Originally Posted by grandfenrirstooth View Post
Compiling...
wallhacka.cpp
c:\documents and settings\pc9\my documents\visual studio 2008\projects\wallhacka\wallhacka\wallhacka.cpp(6) : fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory
Build log was saved at "file://c:\Documents and Settings\pc9\My Documents\Visual Studio 2008\Projects\wallhacka\wallhacka\Debug\BuildLog.h tm"
wallhacka - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
having also the same problem as this one...
i dont know what went wrong but i carefully follow the instrctions said...

and this is the code i use.. any one can tell if i am wrong..


// WF2.cpp : Defines the exported functions for the DLL application.
//

#include "stdafx.h"
#include <d3d8.h>
#include <windows.h>
#pragma comment(lib, "d3d8.lib")
int m_Stride;
int WireFrame;
int nNumVertices; // to define wireframe or the player
int nPrimitiveCount; // to define also wireframe or the player
LPDIRECT3DTEXTURE8 texRed;
LPDIRECT3DTEXTURE8 texYellow;
LPDIRECT3DTEXTURE8 texGreen;
LPDIRECT3DTEXTURE8 texBlue;
LPDIRECT3DTEXTURE8 texPurple;
LPDIRECT3DTEXTURE8 texOrange;
LPDIRECT3DTEXTURE8 texPink;
//==========================Colored WireFramez by elitehack========================================= =============================================
typedef HRESULT ( WINAPI* oDrawIndexedPrimitive ) ( LPDIRECT3DDEVICE8 pDevice, D3DPRIMITIVETYPE pType, UINT nMinIndex, UINT nNumVertices, UINT nStartIndex, UINT nPrimitiveCount );
oDrawIndexedPrimitive pDrawIndexedPrimitive, OriginalDrawIndexedPrimitive;
HRESULT WINAPI myDrawIndexedPrimitive(LPDIRECT3DDEVICE8 pDevice, D3DPRIMITIVETYPE pType, UINT nMinIndex, UINT nNumVertices, UINT nStartIndex, UINT nPrimitiveCount)
{
if(wireframe) // if wireframe on
{

if (m_Stride==40) // worldwireframe
{
DWORD dwZEnable = D3DZB_TRUE;
pDevice->SetTexture(0, texGreen);// color of back chams
pDevice->SetRenderState(D3DRS_FILLMODE, D3DFILL_WIREFRAME);
pDevice->GetRenderState(D3DRS_ZENABLE, &dwZEnable);
pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
pDevice->DrawIndexedPrimitive(Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
pDevice->SetRenderState(D3DRS_ZENABLE, dwZEnable);
pDevice->SetTexture(0, texYellow);} // color of front chams
else{
m_pD3Ddev->SetRenderState( D3DRS_FILLMODE, D3DFILL_SOLID );
}
}
if (GetAsyncKeyState(VK_F1)&1) // If you press F1
{ //ThEn
wireframe = !wireframe; //wireframe = on
} // 3nd 0f Th3N :D im a jejemon XD
if (GetAsyncKeyState(VK_F2)&1) // if you press f2
{ // the
PlayerWireFrame = !PlayerWireFrame; // player wireframe on
} //end
08/26/2010 11:05 nikonix04#63
Quote:
Originally Posted by amped02 View Post
hey bro
what is the link of the Visual C++ 2008
please give the link :))

i download mine in microsoft website.. you can also google the visual c++
08/26/2010 12:53 Ovenran#64
Quote:
Originally Posted by nikonix04 View Post
having also the same problem as this one...
i dont know what went wrong but i carefully follow the instrctions said...

and this is the code i use.. any one can tell if i am wrong..


// WF2.cpp : Defines the exported functions for the DLL application.
//

#include "stdafx.h"
#include <d3d8.h>
#include <windows.h>
#pragma comment(lib, "d3d8.lib")
int m_Stride;
int WireFrame;
int nNumVertices; // to define wireframe or the player
int nPrimitiveCount; // to define also wireframe or the player
LPDIRECT3DTEXTURE8 texRed;
LPDIRECT3DTEXTURE8 texYellow;
LPDIRECT3DTEXTURE8 texGreen;
LPDIRECT3DTEXTURE8 texBlue;
LPDIRECT3DTEXTURE8 texPurple;
LPDIRECT3DTEXTURE8 texOrange;
LPDIRECT3DTEXTURE8 texPink;
//==========================Colored WireFramez by elitehack========================================= =============================================
typedef HRESULT ( WINAPI* oDrawIndexedPrimitive ) ( LPDIRECT3DDEVICE8 pDevice, D3DPRIMITIVETYPE pType, UINT nMinIndex, UINT nNumVertices, UINT nStartIndex, UINT nPrimitiveCount );
oDrawIndexedPrimitive pDrawIndexedPrimitive, OriginalDrawIndexedPrimitive;
HRESULT WINAPI myDrawIndexedPrimitive(LPDIRECT3DDEVICE8 pDevice, D3DPRIMITIVETYPE pType, UINT nMinIndex, UINT nNumVertices, UINT nStartIndex, UINT nPrimitiveCount)
{
if(wireframe) // if wireframe on
{

if (m_Stride==40) // worldwireframe
{
DWORD dwZEnable = D3DZB_TRUE;
pDevice->SetTexture(0, texGreen);// color of back chams
pDevice->SetRenderState(D3DRS_FILLMODE, D3DFILL_WIREFRAME);
pDevice->GetRenderState(D3DRS_ZENABLE, &dwZEnable);
pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
pDevice->DrawIndexedPrimitive(Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
pDevice->SetRenderState(D3DRS_ZENABLE, dwZEnable);
pDevice->SetTexture(0, texYellow);} // color of front chams
else{
m_pD3Ddev->SetRenderState( D3DRS_FILLMODE, D3DFILL_SOLID );
}
}
if (GetAsyncKeyState(VK_F1)&1) // If you press F1
{ //ThEn
wireframe = !wireframe; //wireframe = on
} // 3nd 0f Th3N :D im a jejemon XD
if (GetAsyncKeyState(VK_F2)&1) // if you press f2
{ // the
PlayerWireFrame = !PlayerWireFrame; // player wireframe on
} //end
just install sdk summer 2004 and Remove the
Code:
if (GetAsyncKeyState(VK_F2)&1) // if you press f2
{ // the
 PlayerWireFrame = !PlayerWireFrame; // player wireframe on
} //end
bcause you did not put the playerwireframe code and defines to make it playerwireframe...
08/26/2010 16:17 nikonix04#65
Ovenran.. i think this is the last problem..

1>------ Build started: Project: Wire, Configuration: Debug Win32 ------
1>Compiling...
1>Wire.cpp
1>c:\users\nico\documents\visual studio 2008\projects\project1\wire\wire\wire.cpp(38) : error C4716: 'myDrawIndexedPrimitive' : must return a value
1>Build log was saved at "file://c:\Users\Nico\Documents\Visual Studio 2008\Projects\Project1\Wire\Wire\Debug\BuildLog.ht m"
1>Wire - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
08/26/2010 16:28 Ovenran#66
remove this line
Code:
typedef HRESULT ( WINAPI* oDrawIndexedPrimitive ) ( LPDIRECT3DDEVICE8 pDevice, D3DPRIMITIVETYPE pType, UINT nMinIndex, UINT nNumVertices, UINT nStartIndex, UINT nPrimitiveCount );
oDrawIndexedPrimitive pDrawIndexedPrimitive, OriginalDrawIndexedPrimitive;
if still cant compile ... means somethings problem ... > it compiles fine on me ... why?
08/26/2010 19:11 Match*Star.#67
Quote:
Originally Posted by amped02 View Post
hey bro
what is the link of the Visual C++ 2008
please give the link :))
`Here is the link of Visual C++ 2008. [Only registered and activated users can see links. Click Here To Register...]
08/27/2010 16:45 virgildomalaoco#68
` Sir can you give me the link of the install of SDK summer 2004
` please?
` Does the Visual C++ 2008 Express Edition Works in Windows 7?
08/28/2010 03:52 Match*Star.#69
Quote:
Originally Posted by virgildomalaoco View Post
` Sir can you give me the link of the install of SDK summer 2004
` please?
` Does the Visual C++ 2008 Express Edition Works in Windows 7?
`You can download SDK Summer 2004 here. [Only registered and activated users can see links. Click Here To Register...]
08/28/2010 05:18 Ovenran#70
hey don't download C++ 2008 express edition that is for making d3d hacks only and injectors...

Download vc redist x86/x64 2008 not c++ 2008 express
08/28/2010 11:45 Match*Star.#71
`Download this. [Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
08/28/2010 12:09 Ovenran#72
hey .. your multi-posting ...
08/28/2010 12:58 Match*Star.#73
`Sorry, it is just because of my slow net.
09/16/2010 05:29 bloodmaker17#74
1>------ Build started: Project: Pitus_WireFrame, Configuration: Debug Win32 ------
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>Pitus_WireFrame.cpp
1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\pitus_wireframe\pitus_wireframe\pitu s_wireframe.cpp(5) : fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory
1>Build log was saved at "file://c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\Pitus_WireFrame\Pitus_WireFrame\Debu g\BuildLog.htm"
1>Pitus_WireFrame - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
09/18/2010 10:34 Zhina_Shines#75
Quote:
Originally Posted by bloodmaker17 View Post
1>------ Build started: Project: Pitus_WireFrame, Configuration: Debug Win32 ------
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>Pitus_WireFrame.cpp
1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\pitus_wireframe\pitus_wireframe\pitu s_wireframe.cpp(5) : fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory
1>Build log was saved at "file://c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\Pitus_WireFrame\Pitus_WireFrame\Debu g\BuildLog.htm"
1>Pitus_WireFrame - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
i just said that you must install first SDK why you did not read all the instructions? maybe you just copy-paste it?

btw, this is ovenran ;)