D3D9 Chams Tutorial

Posts 16–30 of 66 · Page 2 of 5
Quote Originally Posted by timmyeo View Post
can you help me/us by tellign us how to add the SDK, the D3D9 cpp and headers, and what type of file to make. thanks O_O
You must do a dll.
How to add the things to a project, I think that will vary from compiler to compiler
i don't have the .dll option in my compiler...
i use microsoft visual c++ 2005 express edition =(

Please show a code.
Can someone please post the code that it is suppose to look like before we "build" the program...? thanks if you do :P
I dont get it do i just copy and paste this all?
I've compiled this correctly but when i press insert it doesnt work. Is this for CSS and if not what are the css player strides? thx
Quote Originally Posted by Synns View Post
This is a D3D9 chams tutorial.

Defines -

Code:
bool Chams;
UINT m_Stride;
LPDIRECT3DTEXTURE9    texGreen;
LPDIRECT3DTEXTURE9    texYellow;

Above Initialize() -

Code:
HRESULT GenerateTexture(IDirect3DDevice9 *pD3Ddev, IDirect3DTexture9 **ppD3Dtex, DWORD colour32)
{
	if( FAILED(pD3Ddev->CreateTexture(8, 8, 1, 0, D3DFMT_A4R4G4B4, D3DPOOL_MANAGED, ppD3Dtex, NULL)) )
		return E_FAIL;
	
	WORD colour16 =	((WORD)((colour32>>28)&0xF)<<12)
			|(WORD)(((colour32>>20)&0xF)<<8)
			|(WORD)(((colour32>>12)&0xF)<<4)
			|(WORD)(((colour32>>4)&0xF)<<0);

	D3DLOCKED_RECT d3dlr;    
	(*ppD3Dtex)->LockRect(0, &d3dlr, 0, 0);
	WORD *pDst16 = (WORD*)d3dlr.pBits;

	for(int xy=0; xy < 8*8; xy++)
		*pDst16++ = colour16;

	(*ppD3Dtex)->UnlockRect(0);

	return S_OK;
}


Initialize() -

Code:
GenerateTexture(m_pD3Ddev, &texYellow,D3DCOLOR_ARGB(255,255,255,0));
GenerateTexture(m_pD3Ddev, &texGreen,D3DCOLOR_ARGB(255,0,255,0));
DrawIndexedPrimitive -

Code:
	if (Chams) 
	{
		if (m_Stride == 44)
		{
             DWORD dwOldZEnable = D3DZB_TRUE;
             m_pD3Ddev->SetTexture(0, texYellow);
             m_pD3Ddev->GetRenderState(D3DRS_ZENABLE, &dwOldZEnable);
             m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
			 m_pD3Ddev->DrawIndexedPrimitive(Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
             m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, dwOldZEnable);
             m_pD3Ddev->SetTexture(0, texGreen);
}
	}
SetStreamSource -

Code:
if( StreamNumber == 0 ){m_Stride = Stride;}
BeginScene -

Code:
		if (GetAsyncKeyState(VK_INSERT)&1)
{
	Chams = !Chams;
}
What you need?

C++ , MS Visual Studio

A SDK , I use august 2007

The stride is the CA main player stride, the hotkey is insert if you successfully make chams and compile!

Post all errors and questions I WILL help ~~~~
If i knew what this was then i would try it
ok when i compile the project i get the following errors
Code:
1>------ Build started: Project: TatniumD3D, Configuration: Debug Win32 ------
1>Compiling...
1>d3d9tex.cpp
1>c:documents and settingsadmin installerdesktopd3d_starterkit_v3.0bd3d_starterkit_v3.0bd3d9d3d9.h(8) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
1>d3d9int.cpp
1>c:documents and settingsadmin installerdesktopd3d_starterkit_v3.0bd3d_starterkit_v3.0bd3d9d3d9.h(8) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
1>d3d9dev.cpp
1>c:documents and settingsadmin installerdesktopd3d_starterkit_v3.0bd3d_starterkit_v3.0bd3d9d3d9.h(8) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
1>main.cpp
1>c:documents and settingsadmin installerdesktopd3d_starterkit_v3.0bd3d_starterkit_v3.0bd3d9d3d9.h(8) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
1>d3d9.cpp
1>c:documents and settingsadmin installerdesktopd3d_starterkit_v3.0bd3d_starterkit_v3.0bd3d9d3d9.h(8) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
1>Generating Code...
1>Creating browse information file...
1>Microsoft Browse Information Maintenance Utility Version 9.00.30729
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>BSCMAKE: error BK1506 : cannot open file '.Debugmain.sbr': No such file or directory
1>Build log was saved at "file://c:Documents and Settingsadmin installerDesktopD3D_Starterkit_v3.0bD3D_Starterkit_v3.0bD3D9DebugBuildLog.htm"
1>TatniumD3D - 6 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
how do i fix this
I keep getting 1 error.

1>Compiling...
1>Charms.cpp
1>c:\users\guy\desktop\charms\charms\charms.cpp(6 ) : fatal error C1083: Cannot open include file: 'main.h': No such file or directory
1>Build log was saved at "file://c:\Users\Guy\Desktop\Charms\Charms\Debug\BuildLog. htm"
1>Charms - 1 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
dude if the chasm doesn't work what do i need to change?
Oh nevermind, i fixed the error. The charms work =P
thx this will help me out..i have a friend trying to teach me this..thx
Ok... When i got C.A with the charms, it sometimes randomly crashes?

And no i can't post script =P
i cant get this to work

ive compiled both a dll and an exe
i put them both in the combat arms folder, i launch the injector it says click ok to inject i do, it closes i go into combat arms no chams!

ive tried injecting with stealth injector no go either
Thank you Longevity. I whish I could give you a trilion thanks. THis will help so much with the chams im making
Posts 16–30 of 66 · Page 2 of 5
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us