Excellzone

Forum and disscussions since 2010


You are not connected. Please login or register

View previous topic View next topic Go down Message [Page 1 of 1]

#1
CodeAngel

avatar
CA Coder/Admin
CA Coder/Admin
C 2008, 2010 (not matter)

Direct 3D Starter Kit (Here my upload: Download the atthament, in there's link. this prevent leeching)

Setting up C
Note if you do this wrong you will get d3d9.lib linker and d3d9.h not found errors, do not even bother to ask me how to fix them. The only reason it doesn't work, it's because you didn't do it right you douche.

First copy the workspacesm
Open folder "D3DKit\D3D_Starterkit_v3.0b\D3D9\old_workspac e"
Select the two files: TatniumD3D.dsp and TatniumD3D.dsw

Copy these two files to "D3DKit\D3D_Starterkit_v3.0b\D3D9"
And double click on the workspace named TatniumD3D.dsw

We need to set the directories, if we don't all the files that are needed for this to work will not be found and c is going to yell at you.

Goto tools at the very top of your screen and move down to options
Next hit the tab with the caption "Directories"



Next click the create new button circled in red above, once a 'editable' field is added into the list type the location of your directx sdk installation \Include.

Mine is: D:\Program Files\Microsoft DirectX SDK (June 2006)\Include (Don't got much space on c)

Next hit the "Show Directories for:" combo list and go down to "Library files"

This time instead of adding "your_sdk_installation \Include":

If you have a 32 bit system installed add "your_sdk_installation \Lib\x86"
If you have a 64 bit system installed add "your_sdk_installation \Lib\x64"



Press OK

Adding code to the kit

In the very left expand the "TatniumD3D" then expand "Source Files" then "d3d9_C" now that you see a list of .cpp files click "d3d9dev.cpp"



We will be adding code to this file, the following sections are how to add cheats to your dll

Changing your team mates / enemies / or any other object in the game to be pink
Make a variable right after all the includes at the very top, this is so we create the textures only once
Code:

int a=1;

The following is for D3DXCreateTextureFromFileInMemory, right after you variable a put this new declaration for your pink color:
Code:
LPDIRECT3DTEXTURE9 xxxPink;

Now declare and assign bPink (It's the pink color duh)
Code:
const BYTE bPink[58] =
{
0x42, 0x4D, 0x3A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x80, 0x00, 0xFF, 0x00
};

Notice, we can't use RGB or Long colors here

Ok now we do this:
Now find the following code in the kit:
Code:

HRESULT APIENTRY hkIDirect3DDevice9::BeginScene()
{

}


Add above return m_pD3Ddev->BeginScene();
Code:
if (a==1) //Thank you gc_Admin, I pmed him for this with a big thanks
{
D3DXCreateTextureFromFileInMemory(m_pD3Ddev,(LPCVO ID)&bPink,58,&xxxPink);
a=0;
}

Ok now let's go to
Code:
HRESULT APIENTRY hkIDirect3DDevice9:rawIndexedPrimitive(D3DPRIMIT IVETYPE Type,INT BaseVertexIndex,UINT MinVertexIndex,UINT NumVertices,UINT startIndex,UINT primCount)
{

return m_pD3Ddev->DrawIndexedPrimitive(Type,BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
}

ight before the return add this:
Explanation for NumVertices, each game has different Vertices for different objects. The following collection of Vertices are for the American Team for battlefield 2. This will draw all bf2 american players as pink helping you to distingiush your enemy better

Code:
{
m_pD3Ddev->SetTexture(0,xxxPink);
return m_pD3Ddev->DrawIndexedPrimitive(Type,BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
} else {
return m_pD3Ddev->DrawIndexedPrimitive(Type,BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
}

--End Bitchez--

Forcing the game to run in wireframe mode
If you want wall hack add this into

Code:
m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
m_pD3Ddev->DrawIndexedPrimitive(Type,BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, D3DZB_TRUE);


If you want to change textures add this
..

Compiling

Simple,


Click the bulid button

You debug window (the one at the bottom) should show this:
Code:
--------------------Configuration: TatniumD3D - Win32 Debug--------------------

Compiling...
d3d9dev.cpp
Linking...

yourdll.dll - 0 error(s), 0 warning(s)

Note: You can goto project then settings and click on the link tab to change the dll name

To find your compiled dll name goto the newly created "/debug/" folder in the "D3DKit\D3D_Starterkit_v3.0b\D3D9" directory.. tada!

Have fun =] :belial:





IF YOU DONT YOU NO WHAT WILL HAPPEN ..>>

Click [You must be registered and logged in to see this link.] for the best free vip hack ever
View user profile

#2
killaadress

avatar
Level 0
Level 0
What a Face Question

View user profile

#3
CodeAngel

avatar
CA Coder/Admin
CA Coder/Admin
??





IF YOU DONT YOU NO WHAT WILL HAPPEN ..>>

Click [You must be registered and logged in to see this link.] for the best free vip hack ever
View user profile

#4
Keila

avatar
Combat Arms Moderator
Combat Arms Moderator
Credits???????

View user profile

#5
Sponsored content


View previous topic View next topic Back to top Message [Page 1 of 1]


Permissions in this forum:
You cannot reply to topics in this forum