The MatriX
  • Welcome To Ghbsys
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site

Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.

Sign in to follow this  
Hans211

D3D framework for D3D8 and D3D9

Recommended Posts

This is a complete D3D framework containing:

- D3D Base, all basic stuff, hooks, font manipulation

- D3D Menu with folders

- Transparent Background function

- Optimized D3Dfont, centered and right aligned text,

- Code works for d3d8 or d3d9 (define it in d3dbase.h)

- test programs for d3d8 and d3d9

- All within a 9.5 kb dll

 

Used existing code parts for the framework from:

- Azorbix: DetourFunc

- Dominik or Patrick: FindPattern

- Gordon : device pointer signature

- Microsoft: Fonts

 

e0svgk.jpg

 

The zip file contains:

- all source files

- d3d8 and d3d9 prebuild dll

- d3d8 and d3d9 test program

- dll injector

 

To build a new version :

- create an empty c++ project for a multithreaded dll

- make sure your c++ finds the directx sdk files

- add the files: d3dbase.*, d3dmenu.* and hackbase.cpp

- DON'T include the d3dfont files in your project !!

- edit the d3dbase.h and select for which version

- build it

 

Have fun !

 

D3Dbase.zip

Edited by Hans211
  • Upvote 2

Share this post


Link to post
Share on other sites
Deleting intermediate files and output files for project 'Hack - Win32 Debug'.

--------------------Configuration: Hack - Win32 Debug--------------------

Compiling...

d3dbase.cpp

main.h : Building for D3D9

d3dfont8.cpp

c:\users\myname\desktop\hack\d3dfont8.cpp(12) : fatal error C1083: Cannot open include file: 'D3DX8.h': No such file or directory

d3dfont9.cpp

d3dmenu.cpp

main.h : Building for D3D9

hackbase.cpp

main.h : Building for D3D9

Error executing cl.exe.

 

Hack.exe - 1 error(s), 0 warning(s)

 

I make it in Microsoft Visual C++ 6.0

I have Microsoft DirectX 9.0 SDK Update (December 2004)

Edited by lumota

Share this post


Link to post
Share on other sites
I make it in Microsoft Visual C++ 6.0

I have Microsoft DirectX 9.0 SDK Update (December 2004)

- Remove all d3dfont*.* from your project, the correct one will automatically be compiled

- if the above does not solve it, check your SDK if it is in there, otherwise the error message makes sense

Share this post


Link to post
Share on other sites

ok

 

I have deleted all d3dfont and added libraries with Microsoft DirectX 9.0 SDK Update (Summer 2004) (Include and Lib)

 

Now this problem is

Deleting intermediate files and output files for project 'Hack - Win32 Debug'.

--------------------Configuration: Hack - Win32 Debug--------------------

Compiling...

d3dbase.cpp

main.h : Building for D3D9

d3dmenu.cpp

main.h : Building for D3D9

hackbase.cpp

main.h : Building for D3D9

Linking...

LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main

Debug/Hack.exe : fatal error LNK1120: 1 unresolved externals

Error executing link.exe.

 

Hack.exe - 2 error(s), 0 warning(s)

Share this post


Link to post
Share on other sites
ok

 

I have deleted all d3dfont and added libraries with Microsoft DirectX 9.0 SDK Update (Summer 2004) (Include and Lib)

 

Now this problem is

You need to make a dll not a exe

Share this post


Link to post
Share on other sites
Hans211 you say why after 1 minute if i work with endscene the menù disappears?

Well if you try it on the d3d_test program it won't disappear....

So I think you are trying it on Warrock/CA ?

 

Ever heard of Hackshield ?

You can't put normal hooks on the d3d functions if there is an anti cheat protection active.

 

So the only thing is, in that case, that you hook it differently.

Share this post


Link to post
Share on other sites
Well if you try it on the d3d_test program it won't disappear....

So I think you are trying it on Warrock/CA ?

 

Ever heard of Hackshield ?

You can't put normal hooks on the d3d functions if there is an anti cheat protection active.

 

So the only thing is, in that case, that you hook it differently.

 

yes i try with warrock i resolved to add the menushow at mypresent becouse with endscene menù disappear good work very thank's hans

Edited by Resurrect

Share this post


Link to post
Share on other sites

Great work Hans

 

how could i make this work with op7, because just before i get to server selection screen it crashes

Help would be much appreciated as your base is very nice

Edited by Adrenaline

Share this post


Link to post
Share on other sites
Great work Hans

 

how could i make this work with op7, because just before i get to server selection screen it crashes

Help would be much appreciated as your base is very nice

 

In the d3dbase.cpp add in the D3Dinit funtction this while loop before checking the d3dx.dll

So it looks like this:

	
int D3Dinit(void)
{
DWORD		hD3D, adr, *vtbl;

// --- wait for home key to start
while ((GetAsyncKeyState(VK_HOME)&0x8000)==0)  Sleep(200);
// wait for the d3dx dll
hD3D=0;
do {
	hD3D = (DWORD)GetModuleHandle(D3Ddllname);
	Sleep(10);
} while(!hD3D);
// ....

 

Now it waits with hooking until you press the HOME key

I don't have op7 anymore on my computer, so i can't test it

Share this post


Link to post
Share on other sites
In the d3dbase.cpp add in the D3Dinit funtction this while loop before checking the d3dx.dll

So it looks like this:

	
int D3Dinit(void)
{
DWORD		hD3D, adr, *vtbl;

// --- wait for home key to start
while ((GetAsyncKeyState(VK_HOME)&0x8000)==0)  Sleep(200);
// wait for the d3dx dll
hD3D=0;
do {
	hD3D = (DWORD)GetModuleHandle(D3Ddllname);
	Sleep(10);
} while(!hD3D);
// ....

 

Now it waits with hooking until you press the HOME key

I don't have op7 anymore on my computer, so i can't test it

 

Thanks a lot hans

 

worked perfectly, just as i expected from you xD

Edited by Adrenaline

Share this post


Link to post
Share on other sites

Its work xD

 

but my hack is disappearing on 10 sek the access to the game

 

what to do so that he doesn't disappear ?

Share this post


Link to post
Share on other sites
Its work xD

 

but my hack is disappearing on 10 sek the access to the game

 

what to do so that he doesn't disappear ?

which game

Share this post


Link to post
Share on other sites

C++ 6 (SDK Summer : 2004)

 

--------------------Configuration: Hans211 Menu - Win32 Debug--------------------

Compiling...

d3dbase.cpp

main.h : Building for D3D9

hackbase.cpp

main.h : Building for D3D9

d3dmenu.cpp

main.h : Building for D3D9

Linking...

d3dbase.obj : error LNK2001: unresolved external symbol "public: long __thiscall CD3DFont::DeleteDeviceObjects(void)" ([email protected]@@QAEJXZ)

d3dbase.obj : error LNK2001: unresolved external symbol "public: long __thiscall CD3DFont::InvalidateDeviceObjects(void)" ([email protected]@@QAEJXZ)

d3dbase.obj : error LNK2001: unresolved external symbol "public: long __thiscall CD3DFont::RestoreDeviceObjects(void)" ([email protected]@@QAEJXZ)

d3dbase.obj : error LNK2001: unresolved external symbol "public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice9 *)" ([email protected]@@[email protected]@@Z)

d3dbase.obj : error LNK2001: unresolved external symbol "public: __thiscall CD3DFont::CD3DFont(char const *,unsigned long,unsigned long)" ([email protected]@[email protected]@Z)

d3dmenu.obj : error LNK2001: unresolved external symbol "public: long __thiscall CD3DFont::DrawTextA(float,float,unsigned long,char const *,unsigned long)" ([email protected]@@[email protected])

Debug/Hans211 Menu.dll : fatal error LNK1120: 6 unresolved externals

Error executing link.exe.

 

Hans211 Menu.dll - 7 error(s), 0 warning(s)

 

C++ 2008 (SDK Summer 2004)

 

Warnung 1 warning LNK4229: Ungültige /OPT:NOWIN98-Direktive gefunden; wird ignoriert. d3dbase.obj

Warnung 2 warning LNK4229: Ungültige /OPT:NOWIN98-Direktive gefunden; wird ignoriert. d3dmenu.obj

Warnung 3 warning LNK4229: Ungültige /OPT:NOWIN98-Direktive gefunden; wird ignoriert. hackbase.obj

Fehler 10 fatal error LNK1120: 6 nicht aufgelöste externe Verweise. .\Debug/Hans211 Menu.dll

Fehler 6 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: long __thiscall CD3DFont::RestoreDeviceObjects(void)" ([email protected]@@QAEJXZ)" in Funktion ""void __cdecl PostReset(struct IDirect3DDevice9 *)" ([email protected]@[email protected]@@Z)". d3dbase.obj

Fehler 5 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: long __thiscall CD3DFont::InvalidateDeviceObjects(void)" ([email protected]@@QAEJXZ)" in Funktion ""void __cdecl PreReset(struct IDirect3DDevice9 *)" ([email protected]@[email protected]@@Z)". d3dbase.obj

Fehler 7 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice9 *)" ([email protected]@@[email protected]@@Z)" in Funktion ""void __cdecl PostReset(struct IDirect3DDevice9 *)" ([email protected]@[email protected]@@Z)". d3dbase.obj

Fehler 9 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: long __thiscall CD3DFont::DrawTextA(float,float,unsigned long,char const *,unsigned long)" ([email protected]@@[email protected])" in Funktion ""public: void __thiscall D3DMenu::Show(class CD3DFont *)" ([email protected]@@[email protected]@@Z)". d3dmenu.obj

Fehler 4 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: long __thiscall CD3DFont::DeleteDeviceObjects(void)" ([email protected]@@QAEJXZ)" in Funktion ""void __cdecl PreReset(struct IDirect3DDevice9 *)" ([email protected]@[email protected]@@Z)". d3dbase.obj

Fehler 8 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall CD3DFont::CD3DFont(char const *,unsigned long,unsigned long)" ([email protected]@[email protected]@Z)" in Funktion ""void __cdecl PostReset(struct IDirect3DDevice9 *)" ([email protected]@[email protected]@@Z)". d3dbase.obj

 

Help Pls!! I do warrock Hacks

Edited by Floster

Share this post


Link to post
Share on other sites
C++ 6 (SDK Summer : 2004)

C++ 2008 (SDK Summer 2004)

Help Pls!! I do warrock Hacks

 

Well it seems you have problems with the d3dfont.

 

Things to check/try:

- Are the d3dfont files in the source directory ? They should be there

- Are they named in your project ? they should not

 

in the d3dbase.cpp in the top it says :

#ifdef FOR_D3D8
#include "d3dfont8.cpp"
#else
#include "d3dfont9.cpp"
#endif

This should automatic compile the correct version with the d3dbase.cpp

 

If you still have problems, remove or comment those lines and

include in your project the d3dfont9.cpp

And try again, but this should not be necessary

Share this post


Link to post
Share on other sites
why cant we use the D3D8font ?

For a d3d9 project ?

It automatically uses the correct d3dfont file

The d3dfont it uses are adapted for right aligned text

Share this post


Link to post
Share on other sites

thats nice well I already made my hack and i use my base but i cant make ur background work... when i press insert the background wont dissapear and thats annoying xD can u help me?

Share this post


Link to post
Share on other sites
thats nice well I already made my hack and i use my base but i cant make ur background work... when i press insert the background wont dissapear and thats annoying xD can u help me?

So does the background function shows a background ?

If no, try to to do a pFont->DrawText(1.0f,1.0f,0,"",0); before it (if pFont is your font)

 

if the background does not disappear, you don't use the correct if statement, you need to check your code

Share this post


Link to post
Share on other sites

wow nice Hans it work thanks xD dude one question where do i put the bypass at ur base, at d3dbase.cpp? below D3Dinit? or below *DetourCreate?

Edited by ZWE47

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.