Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • 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.

    D3D framework for D3D8 and D3D9


    Hans211
     Share

    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
    Link to comment
    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
    Link to comment
    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

    Link to comment
    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)

    Link to comment
    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

    Link to comment
    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.

    Link to comment
    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
    Link to comment
    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
    Link to comment
    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

    Link to comment
    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
    Link to comment
    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 ?

    Link to comment
    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

    Link to comment
    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)" (?DeleteDeviceObjects@CD3DFont@@QAEJXZ)

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

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

    d3dbase.obj : error LNK2001: unresolved external symbol "public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice9 *)" (?InitDeviceObjects@CD3DFont@@QAEJPAUIDirect3DDevice9@@@Z)

    d3dbase.obj : error LNK2001: unresolved external symbol "public: __thiscall CD3DFont::CD3DFont(char const *,unsigned long,unsigned long)" (??0CD3DFont@@QAE@PBDKK@Z)

    d3dmenu.obj : error LNK2001: unresolved external symbol "public: long __thiscall CD3DFont::DrawTextA(float,float,unsigned long,char const *,unsigned long)" (?DrawTextA@CD3DFont@@QAEJMMKPBDK@Z)

    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)" (?RestoreDeviceObjects@CD3DFont@@QAEJXZ)" in Funktion ""void __cdecl PostReset(struct IDirect3DDevice9 *)" (?PostReset@@YAXPAUIDirect3DDevice9@@@Z)". d3dbase.obj

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

    Fehler 7 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice9 *)" (?InitDeviceObjects@CD3DFont@@QAEJPAUIDirect3DDevice9@@@Z)" in Funktion ""void __cdecl PostReset(struct IDirect3DDevice9 *)" (?PostReset@@YAXPAUIDirect3DDevice9@@@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)" (?DrawTextA@CD3DFont@@QAEJMMKPBDK@Z)" in Funktion ""public: void __thiscall D3DMenu::Show(class CD3DFont *)" (?Show@D3DMenu@@QAEXPAVCD3DFont@@@Z)". d3dmenu.obj

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

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

     

    Help Pls!! I do warrock Hacks

    Edited by Floster
    Link to comment
    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

    Link to comment
    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

    Link to comment
    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?

    Link to comment
    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

    Link to comment
    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
    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    Loading...
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...