PDA

View Full Version : [Beginner] Using the D3D Starter Kit with Microsoft Visual C++ 6.0



Mr. Hasselhoff
03-14-2011, 05:04 PM
***DISCLAIMER - Intellectual Rights***
I wrote this 100% from scratch. If you are going to post this on another forum I would like to be credited by having a link to this thread at the top of your post.

This tutorial will show you how to properly setup and configure Microsoft Visual C++ 6 to work with Azorbix's Direct3D StarterKit.

Things you'll need:

Microsoft Visual C++ 6.0
Microsoft DirectX Software Development Kit (SDK) (http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=3021d52b-514e-41d3-ad02-438a3ba730ba)
Direct3D StarterKit v3.0b (http://hack.zomgstuff.net/Downloads/D3D_Starterkit_v3.0b.zip) by Azorbix



1)
Unzip the entire folder somewhere. You'll have 4 folders inside and a ReadMe. We're going to assume that we're going to be using the D3D starter kit for a DirectX 9 game. The only two folders we care about then are Injector and D3D9.

The Injector folder is going to compile to be an executable (.exe) which will load the actual hack into the game process.
The D3D9 folder is going to compile to be a Dynamic Link Library (DLL) which will contain our actual code that will be injected into the game process by the Injector.

http://hack.zomgstuff.net/Tuts/D3D/Starter%20Kit/1.jpg

2)
Open up the Injector folder and copy the two files inside of old_workspace into the main Injector folder.

http://hack.zomgstuff.net/Tuts/D3D/Starter%20Kit/2.jpg

3)
Double click the TatniumInjector.dsw to open up the project in MS Visual C++ 6. Open up the main.cpp in the editor and towards the top change the "target_application.exe" to the name of the program/process that you'll be using it to inject into.

http://hack.zomgstuff.net/Tuts/D3D/Starter%20Kit/3.jpg

4)
That's all the changes we need for the Injector. To compile go to the Build menu and select "Build TatniumInjector.exe."

Or you can just press F7.

http://hack.zomgstuff.net/Tuts/D3D/Starter%20Kit/4.jpg

5)
Close up MS Visual C++ and go back into the D3D9 folder of the starter kit. Now copy the files over from the old_workspace folder into the main D3D9 folder.

http://hack.zomgstuff.net/Tuts/D3D/Starter%20Kit/5.jpg

6)
Open up TatniumD3D.dsw to open the project in MS Visual C++ 6. The d3d9dev.cpp is the file that you care about. This is where you will be doing all of your coding for implementing DirectX 9.

Some of the most commonly used functions are

EndScene()
DrawIndexedPrimitive
BeginScene
GetViewport
SetViewport


http://hack.zomgstuff.net/Tuts/D3D/Starter%20Kit/6.jpg

7)
Now we have to include the DirectX SDK libraries & includes into our project. To do this go to Tools Menu->Options


http://hack.zomgstuff.net/Tuts/D3D/Starter%20Kit/7.jpg

8)
Go over to the Directories tab and make sure Include Files is selected in the dropdown box.
Now click on the button with 3 dots to add the include files. Select the Include folder from wherever you installed the DirectX SDK and hit Ok.

http://hack.zomgstuff.net/Tuts/D3D/Starter%20Kit/8.jpg

9)
Now we have to do the same thing for the library files. Select Library Files from the dropdown menu and add the library folder.

http://hack.zomgstuff.net/Tuts/D3D/Starter%20Kit/9.jpg

10)
Now you're ready to compile your DLL. Go to Build Menu->Build TatniumD3D.dll or just press F7.

http://hack.zomgstuff.net/Tuts/D3D/Starter%20Kit/10.jpg

10)
The very last step is to copy over the compiled Injector executable file, which you can find in Injector/Release into the Debug folder of the DLL (D3D9/Debug).
Now the injector and the DLL file have to have the same name, so just rename the injector executable to the same name as the DLL and you're good.

http://hack.zomgstuff.net/Tuts/D3D/Starter%20Kit/11.jpg


To run your hack just open up the injector executable before launching your game and you're set!

DaDominator
03-15-2011, 04:33 PM
nais guide man....

What games does this work best for (I'm assuming DX games only of course).

TACO_HATER
03-15-2011, 09:20 PM
nais guide man....

What games does this work best for (I'm assuming DX games only of course).
Only dx9 games.

Mr. Hasselhoff
03-16-2011, 02:14 PM
Only dx9 games.

This^

Here's some stuff I got working with it
http://i.imgur.com/leIeR.jpg
http://i.imgur.com/bgfHz.jpg
http://i.imgur.com/0WifU.jpg