Results 1 to 13 of 13
  1. #1
    eXaLtIc™'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    203
    Reputation
    10
    Thanks
    144

    CodeDemon's Base still dc's

    Ok he told me to add gellins detours in it and i did but it still dc's wdf plz help

  2. #2
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,409
    My Mood
    In Love
    Find a new detour. Dont make threads on mpgh, you'll get flamed or something. You've got me on msn remember?
    No I do not make game hacks anymore, please stop asking.

  3. #3
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,070
    Reputation
    50
    Thanks
    940
    My Mood
    Fine
    Replace
    Code:
    HRESULT WINAPI EndScene(LPDIRECT3DDEVICE9 pDevice)
    {
    	ReFont(pDevice);
    	dMenu.BuildMenu("CodeDemon's Menu Base",0,0,180,200,RED,BLACK,GREEN,pDevice);
    	TestThread();
    	return pEndScene(pDevice);
    }
    with
    Code:
    HRESULT WINAPI Present(LPDIRECT3DDEVICE9 pDevice, CONST RECT *pSourceRect, CONST RECT *pDestRect, HWND hDestWindowOverride, CONST RGNDATA *pDirtyRegion)
    {	
    	ReFont(pDevice);
    	dMenu.BuildMenu("CodeDemon's Menu Base",0,0,180,200,RED,BLACK,GREEN,pDevice);
    	TestThread();
    
    	return pPresent(pDevice, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
    }
    replace(in DemonMenuClass.h):
    Code:
    typedef HRESULT (WINAPI* oEndScene)(LPDIRECT3DDEVICE9 pDevice);
    with

    Code:
    typedef HRESULT ( WINAPI* oPresent ) ( LPDIRECT3DDEVICE9 pDevice, CONST RECT *pSourceRect, CONST RECT *pDestRect, HWND hDestWindowOverride, CONST RGNDATA *pDirtyRegion);
    In your globals(d3dbase.cpp)

    replace
    Code:
    oEndScene pEndScene;
    with

    Code:
    oPresent pPresent;
    add in
    Code:
    CDetour cPresent,cReset;
    go down to the d3d hook and replace
    Code:
    		pReset	  = (oReset)	DetourFunction((PBYTE)vtbl[16]   , (PBYTE)Reset   ,5);
     		pEndScene = (oEndScene)	DetourFunction((PBYTE)vtbl[42], (PBYTE)EndScene,5);
    with

    Code:
    		pReset   = (oReset)cReset.Create    (( BYTE* )vtbl[16],   ( BYTE* )Reset,   DETOUR_TYPE_JMP );
    		pPresent = (oPresent)cPresent.Create(( BYTE* )vtbl[17],   ( BYTE* )Present, DETOUR_TYPE_JMP );

  4. The Following 3 Users Say Thank You to CodeDemon For This Useful Post:

    eXaLtIc™ (10-10-2010),Falingrave (10-10-2010),markoj (10-10-2010)

  5. #4
    eXaLtIc™'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    203
    Reputation
    10
    Thanks
    144
    Ok thanks i got Gellins detours now i just need to do what you said

  6. #5
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,025
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    Really should have been easy to fix.
    Quotes I live by.


    A foolish person learns from his mistakes, I wise person learns from others.
    Quote Originally Posted by AVGN View Post



    mhm

    i live in texas

    i was at the grocery store with my son. He saw a mexican guy, and he said "Look daddy! a mower man!"

    he's 4 yrs old

  7. #6
    scimmyboy's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Location
    https://mpgh.net MPGHCash: $442,596,199
    Posts
    5,645
    Reputation
    26
    Thanks
    896
    My Mood
    Happy
    this method is detected i believe

  8. #7
    eXaLtIc™'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    203
    Reputation
    10
    Thanks
    144
    Quote Originally Posted by scimmyboy View Post
    this method is detected i believe
    Yeah it is i still dc when i put that in

  9. #8
    scimmyboy's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Location
    https://mpgh.net MPGHCash: $442,596,199
    Posts
    5,645
    Reputation
    26
    Thanks
    896
    My Mood
    Happy
    Quote Originally Posted by eXaLtIc™ View Post
    Yeah it is i still dc when i put that in
    yup. This hook method is detected.

  10. #9
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,070
    Reputation
    50
    Thanks
    940
    My Mood
    Fine
    Works fine for me /

  11. #10
    scimmyboy's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Location
    https://mpgh.net MPGHCash: $442,596,199
    Posts
    5,645
    Reputation
    26
    Thanks
    896
    My Mood
    Happy
    idk. This hooking method seems to be unreliable

  12. #11
    zatchbell3's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    186
    Reputation
    14
    Thanks
    47
    My Mood
    Amazed
    try to pack it, with liek themida,i packed my hotkey hack with themida and it didnt disconnect after that

  13. #12
    scimmyboy's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Location
    https://mpgh.net MPGHCash: $442,596,199
    Posts
    5,645
    Reputation
    26
    Thanks
    896
    My Mood
    Happy
    themida crashes the game. HS scans for themida packed modules

  14. #13
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,102
    Reputation
    16
    Thanks
    649
    My Mood
    Cold
    Scrimmy your an asshole to these people atm /

Similar Threads

  1. CodeDemon's D3D Menu Base
    By CodeDemon in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 98
    Last Post: 01-27-2011, 07:28 PM
  2. [Question] FindPattern in CodeDemons D3D Base
    By Alessandro10 in forum Combat Arms Coding Help & Discussion
    Replies: 4
    Last Post: 11-07-2010, 12:18 PM
  3. CodeDemon's Base
    By austen407 in forum Combat Arms Coding Help & Discussion
    Replies: 13
    Last Post: 10-20-2010, 04:09 PM
  4. CodeDemon's Base
    By austen407 in forum Combat Arms Help
    Replies: 2
    Last Post: 10-20-2010, 03:03 PM
  5. Question for codedemons base?
    By eXaLtIc™ in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 37
    Last Post: 09-13-2010, 03:59 PM