Results 1 to 11 of 11
  1. #1
    Sydney's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Germany...
    Posts
    1,358
    Reputation
    37
    Thanks
    1,144
    My Mood
    Amused

    Whits Combined keeps Crashing

    Well i am using whits combined base but it keeps crashing.Someone said i have to update the CDetours, but i dunno.

    My Base.cpp Code

    [php]#include "Base.h"
    #include "Menu.h"
    LPDIRECT3DDEVICE9 g_pDevice = 0;

    float ScreenCenterX = 0.0f;//Horizontal Position
    float ScreenCenterY = 0.0f;//Vertical Position

    //Menu Position
    int menux = 820;
    int menuy = 60;

    //Hack Variables
    int nxchams = 0;
    int sjump = 0;
    int knock = 0;
    int worldwf = 0;

    //Menu Groups
    int misc = 0;
    int removals = 0;
    int visual = 0;
    int semiGhost = 0;
    int Viper = 0;
    int others = 0;




    void cMenu::RenderMenu(void)
    {


    AddItem("[ Visuals ]", Opt_Folder, &visual, 2, MENUFOLDER);
    if(visual){
    AddItem(" Satellite Chams" , Opt_on_off , &nxchams , 2 , MENUITEM);

    AddItem(" World WireFrame" , Opt_on_off , &worldwf , 2 , MENUITEM);

    }

    AddItem("[ Removals ]", Opt_Folder, &removals, 2, MENUFOLDER);
    if (removals) {

    AddItem(" No Knockback" , Opt_on_off , &knock , 2, MENUITEM);

    }
    AddItem("[ Misc ]", Opt_Folder, &misc, 2, MENUFOLDER);
    if (misc) {

    AddItem(" Super Jump" , Opt_3_2_1_off , &sjump , 4, MENUITEM);
    }


    }



    cBase Base;

    void cBase::Update(){
    while(true){

    }
    }


    void __cdecl cBase::Command(const char* PushToScreen )
    {
    DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
    if( dwCShell != NULL )
    {
    DWORD *client = ( DWORD* )( 0x377C8550 );
    void* PushMe = ( void* )*( DWORD* )( *client + 0x208 );
    __asm
    {
    push PushToScreen;
    call PushMe;
    add esp, 4;
    }
    }
    }

    void cBase::RenderFrame(LPDIRECT3DDEVICE9 pDevice)
    {
    if (g_pDevice != pDevice)
    {
    g_pDevice = pDevice;
    try
    {
    if (Directx.pFont != 0)
    Directx.pFont->Release();
    } catch (...) {}
    Directx.pFont = 0;


    D3DXCreateFontA(pDevice, 15, 0, FW_BOLD, 0, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial", &Directx.pFont );


    }
    if(Directx.pFont == NULL)
    D3DXCreateFontA(pDevice, 15, 0, FW_BOLD, 0, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Comic Sans MS", &Directx.pFont );
    if (Mmax==0) Menu.RenderMenu();
    if(Mvisible){

    if( worldwf > 0 ){

    Command("WireFrame 1");
    } else {

    Command("WireFrame 0");
    }


    if( nxchams > 0 ){

    Command("SkelModelStencil 1");
    } else {

    Command("SkelModelStencil 0");
    }


    if( knock > 0 ){

    Command("KnockBack 0");
    } else {

    Command("KnockBack 1");
    }


    if( sjump == 0 ){
    Command("JumpVel 300.000000");

    }
    if( sjump == 1 ){
    Command("JumpVel 600.000000");
    }
    if( sjump == 2 ){
    Command("JumpVel 750.000000");
    }
    if( sjump == 3 ){
    Command("JumpVel 800.000000");
    }



    DrawBox(menux,menuy,177,610,Black,Blue,pDevice);

    }
    Menu.MenuShow(menux,menuy,Directx.pFont);
    Menu.MenuNav();
    }


    DWORD cBase::GetPointer(int index)
    {
    DWORD* devicePtr = ***(DWORD****)0x909EF8;

    if( devicePtr == NULL )
    return 0;

    return devicePtr[index];
    }


    bool cBase::IsGameReadyForHook(void)
    {
    if( GetModuleHandle( "d3d9.dll" ) != NULL
    && GetModuleHandle( "cshell.dll" ) != NULL
    && GetModuleHandle( "ClientFx.fxd" ) != NULL )
    return true;

    return false;
    }


    DWORD WINAPI dwMainThread(LPVOID)
    {
    while ( !Base.IsGameReadyForHook() )
    Sleep(iWaitTime);
    Directx.Hook();

    return 0;
    }

    DWORD WINAPI dwHackThread(LPVOID)
    {
    while ( !Base.IsGameReadyForHook() )
    Sleep(iWaitTime);
    Base.Update();
    return 0;
    }


    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);

    if ( dwReason == DLL_PROCESS_ATTACH )
    {

    #ifdef LOG
    DeleteFile(LogPath);
    #endif
    CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
    CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
    }
    return TRUE;
    }
    void FillRGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice )
    {
    if( w < 0 )w = 1;
    if( h < 0 )h = 1;
    if( x < 0 )x = 1;
    if( y < 0 )y = 1;

    D3DRECT rec = { x, y, x + w, y + h };
    pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, color, 0, 0 );
    }

    void DrawBorder( int x, int y, int w, int h, int px, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice )
    {
    FillRGB( x, (y + h - px), w, px, BorderColor, pDevice );
    FillRGB( x, y, px, h, BorderColor, pDevice );
    FillRGB( x, y, w, px, BorderColor, pDevice );
    FillRGB( (x + w - px), y, px, h, BorderColor, pDevice );
    }

    void cBase:rawBox( int x, int y, int w, int h, D3DCOLOR BoxColor, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice )
    {
    FillRGB( x, y, w, h, BoxColor, pDevice );
    DrawBorder( x, y, w, h, 1, BorderColor, pDevice );

    }

    void cBase:rawXHair(LPDIRECT3DDEVICE9 pDevice, D3DCOLOR color)
    {
    D3DVIEWPORT9 viewP;
    pDevice->GetViewport( &viewP );
    DWORD ScreenCenterX = viewP.Width / 2;
    DWORD ScreenCenterY = viewP.Height / 2;

    D3DRECT rec1 = {ScreenCenterX-25, ScreenCenterY, ScreenCenterX+ 25, ScreenCenterY+1};
    D3DRECT rec2 = {ScreenCenterX, ScreenCenterY-25, ScreenCenterX+ 1,ScreenCenterY+25};

    pDevice->Clear( 1, &rec1, D3DCLEAR_TARGET, color, 0, 0 );
    pDevice->Clear( 1, &rec2, D3DCLEAR_TARGET, color, 0, 0 );
    } [/php]

    If anyone can help i would be very thankfull + rep.

    BTw i am ca eu so dont wonder about the LTC.

    Thanks Cosmos


  2. #2
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,035
    Reputation
    340
    Thanks
    2,784
    My Mood
    Sad
    Is your DirectX hook working? (try removing all interactions with the game, etc, LTClient / Console commands) and leave the DirectX hook only, and see if it crashes. If it does, then that's the reaosn.

  3. #3
    Sydney's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Germany...
    Posts
    1,358
    Reputation
    37
    Thanks
    1,144
    My Mood
    Amused
    Quote Originally Posted by freedompeace View Post
    Is your DirectX hook working? (try removing all interactions with the game, etc, LTClient / Console commands) and leave the DirectX hook only, and see if it crashes. If it does, then that's the reaosn.
    will try it. But if i remove the ltc and and and...then it will sure crash because no ltc

    Thanks Cosmos


  4. #4
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,103
    Reputation
    16
    Thanks
    646
    My Mood
    Cold
    Can someone please explain why i cant draw ANYTHING on the screen??

  5. #5
    Dewerong's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Inside a Packet
    Posts
    59
    Reputation
    10
    Thanks
    2
    I'm not sure when your hooking DirectX to a game you need a offset. If so, make sure you got the updated offset. Look around.

  6. #6
    scimmyboy's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Location
    http://mpgh.net MPGHCash: $442,596,199
    Posts
    5,649
    Reputation
    26
    Thanks
    894
    My Mood
    Happy
    Quote Originally Posted by Mr.Magicman View Post
    Can someone please explain why i cant draw ANYTHING on the screen??
    cuz ca is overwriting ur font

  7. #7
    inliner's Avatar
    Join Date
    Jun 2008
    Gender
    male
    Location
    d
    Posts
    64
    Reputation
    10
    Thanks
    11
    Quote Originally Posted by kongamonga View Post
    Well i am using whits combined base but it keeps crashing.Someone said i have to update the CDetours, but i dunno.

    My Base.cpp Code

    [php]#include "Base.h"
    #include "Menu.h"
    LPDIRECT3DDEVICE9 g_pDevice = 0;

    float ScreenCenterX = 0.0f;//Horizontal Position
    float ScreenCenterY = 0.0f;//Vertical Position

    //Menu Position
    int menux = 820;
    int menuy = 60;

    //Hack Variables
    int nxchams = 0;
    int sjump = 0;
    int knock = 0;
    int worldwf = 0;

    //Menu Groups
    int misc = 0;
    int removals = 0;
    int visual = 0;
    int semiGhost = 0;
    int Viper = 0;
    int others = 0;




    void cMenu::RenderMenu(void)
    {


    AddItem("[ Visuals ]", Opt_Folder, &visual, 2, MENUFOLDER);
    if(visual){
    AddItem(" Satellite Chams" , Opt_on_off , &nxchams , 2 , MENUITEM);

    AddItem(" World WireFrame" , Opt_on_off , &worldwf , 2 , MENUITEM);

    }

    AddItem("[ Removals ]", Opt_Folder, &removals, 2, MENUFOLDER);
    if (removals) {

    AddItem(" No Knockback" , Opt_on_off , &knock , 2, MENUITEM);

    }
    AddItem("[ Misc ]", Opt_Folder, &misc, 2, MENUFOLDER);
    if (misc) {

    AddItem(" Super Jump" , Opt_3_2_1_off , &sjump , 4, MENUITEM);
    }


    }



    cBase Base;

    void cBase::Update(){
    while(true){

    }
    }


    void __cdecl cBase::Command(const char* PushToScreen )
    {
    DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
    if( dwCShell != NULL )
    {
    DWORD *client = ( DWORD* )( 0x377C8550 );
    void* PushMe = ( void* )*( DWORD* )( *client + 0x208 );
    __asm
    {
    push PushToScreen;
    call PushMe;
    add esp, 4;
    }
    }
    }

    void cBase::RenderFrame(LPDIRECT3DDEVICE9 pDevice)
    {
    if (g_pDevice != pDevice)
    {
    g_pDevice = pDevice;
    try
    {
    if (Directx.pFont != 0)
    Directx.pFont->Release();
    } catch (...) {}
    Directx.pFont = 0;


    D3DXCreateFontA(pDevice, 15, 0, FW_BOLD, 0, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial", &Directx.pFont );


    }
    if(Directx.pFont == NULL)
    D3DXCreateFontA(pDevice, 15, 0, FW_BOLD, 0, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Comic Sans MS", &Directx.pFont );
    if (Mmax==0) Menu.RenderMenu();
    if(Mvisible){

    if( worldwf > 0 ){

    Command("WireFrame 1");
    } else {

    Command("WireFrame 0");
    }


    if( nxchams > 0 ){

    Command("SkelModelStencil 1");
    } else {

    Command("SkelModelStencil 0");
    }


    if( knock > 0 ){

    Command("KnockBack 0");
    } else {

    Command("KnockBack 1");
    }


    if( sjump == 0 ){
    Command("JumpVel 300.000000");

    }
    if( sjump == 1 ){
    Command("JumpVel 600.000000");
    }
    if( sjump == 2 ){
    Command("JumpVel 750.000000");
    }
    if( sjump == 3 ){
    Command("JumpVel 800.000000");
    }



    DrawBox(menux,menuy,177,610,Black,Blue,pDevice);

    }
    Menu.MenuShow(menux,menuy,Directx.pFont);
    Menu.MenuNav();
    }


    DWORD cBase::GetPointer(int index)
    {
    DWORD* devicePtr = ***(DWORD****)0x909EF8;

    if( devicePtr == NULL )
    return 0;

    return devicePtr[index];
    }


    bool cBase::IsGameReadyForHook(void)
    {
    if( GetModuleHandle( "d3d9.dll" ) != NULL
    && GetModuleHandle( "cshell.dll" ) != NULL
    && GetModuleHandle( "ClientFx.fxd" ) != NULL )
    return true;

    return false;
    }


    DWORD WINAPI dwMainThread(LPVOID)
    {
    while ( !Base.IsGameReadyForHook() )
    Sleep(iWaitTime);
    Directx.Hook();

    return 0;
    }

    DWORD WINAPI dwHackThread(LPVOID)
    {
    while ( !Base.IsGameReadyForHook() )
    Sleep(iWaitTime);
    Base.Update();
    return 0;
    }


    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);

    if ( dwReason == DLL_PROCESS_ATTACH )
    {

    #ifdef LOG
    DeleteFile(LogPath);
    #endif
    CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
    CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
    }
    return TRUE;
    }
    void FillRGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice )
    {
    if( w < 0 )w = 1;
    if( h < 0 )h = 1;
    if( x < 0 )x = 1;
    if( y < 0 )y = 1;

    D3DRECT rec = { x, y, x + w, y + h };
    pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, color, 0, 0 );
    }

    void DrawBorder( int x, int y, int w, int h, int px, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice )
    {
    FillRGB( x, (y + h - px), w, px, BorderColor, pDevice );
    FillRGB( x, y, px, h, BorderColor, pDevice );
    FillRGB( x, y, w, px, BorderColor, pDevice );
    FillRGB( (x + w - px), y, px, h, BorderColor, pDevice );
    }

    void cBase:rawBox( int x, int y, int w, int h, D3DCOLOR BoxColor, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice )
    {
    FillRGB( x, y, w, h, BoxColor, pDevice );
    DrawBorder( x, y, w, h, 1, BorderColor, pDevice );

    }

    void cBase:rawXHair(LPDIRECT3DDEVICE9 pDevice, D3DCOLOR color)
    {
    D3DVIEWPORT9 viewP;
    pDevice->GetViewport( &viewP );
    DWORD ScreenCenterX = viewP.Width / 2;
    DWORD ScreenCenterY = viewP.Height / 2;

    D3DRECT rec1 = {ScreenCenterX-25, ScreenCenterY, ScreenCenterX+ 25, ScreenCenterY+1};
    D3DRECT rec2 = {ScreenCenterX, ScreenCenterY-25, ScreenCenterX+ 1,ScreenCenterY+25};

    pDevice->Clear( 1, &rec1, D3DCLEAR_TARGET, color, 0, 0 );
    pDevice->Clear( 1, &rec2, D3DCLEAR_TARGET, color, 0, 0 );
    } [/php]

    If anyone can help i would be very thankfull + rep.

    BTw i am ca eu so dont wonder about the LTC.
    maybe its the ptc? i didnt look the new ones but the one i use is
    Code:
    void __cdecl Push( const char* szCommand ){
    DWORD *Ltclient = ( DWORD* )( 0x377C8538 );
    void* CONoff = ( void* )*( DWORD* )( *Ltclient + 0x208 );
    __asm{
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }

  8. #8
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,103
    Reputation
    16
    Thanks
    646
    My Mood
    Cold
    Quote Originally Posted by scimmyboy View Post
    cuz ca is overwriting ur font
    Its not just that its everything like boxes and shit and the code shuld work!

    im using MS detours 1.5 maybe it has changed that those nolonger work :/

  9. #9
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,690
    Reputation
    184
    Thanks
    1,147
    My Mood
    Aggressive
    Quote Originally Posted by Mr.Magicman View Post


    Its not just that its everything like boxes and shit and the code shuld work!

    im using MS detours 1.5 maybe it has changed that those nolonger work :/
    Different font.

  10. #10
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    Quote Originally Posted by kongamonga View Post
    will try it. But if i remove the ltc and and and...then it will sure crash because no ltc
    he means comment out all your PTC hacks.

  11. #11
    klofee's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Posts
    36
    Reputation
    10
    Thanks
    2
    Post edited:
    I've downloaded his base, updated then i tested. Detected.
    Last edited by klofee; 10-07-2010 at 05:14 PM.

Similar Threads

  1. [Discussion] Need help cf keep crashing
    By striker2x in forum CrossFire Hacks & Cheats
    Replies: 7
    Last Post: 12-20-2009, 01:54 AM
  2. I keep crashing
    By Rico760 in forum Combat Arms Hacks & Cheats
    Replies: 14
    Last Post: 09-01-2008, 07:18 PM
  3. Why does Mpgh keep crashing?
    By mike3667 in forum General
    Replies: 9
    Last Post: 06-23-2007, 02:23 AM
  4. omg warrock keeps crashing
    By bobowham in forum WarRock - International Hacks
    Replies: 3
    Last Post: 06-09-2007, 12:39 PM
  5. My comp keeps crashing while playing KOL...
    By m164life in forum Hardware & Software Support
    Replies: 7
    Last Post: 02-19-2007, 09:50 AM