Thread: Brain lock :(

Results 1 to 11 of 11
  1. #1
    CA_'s Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Earth
    Posts
    170
    Reputation
    10
    Thanks
    49
    My Mood
    Hungover

    Brain lock :(

    I have no idea why, but my menu will not show up when i inject my hack. I've had this error before, and fixed it. But I'm having a brain lock and can't remember what the error was! If you could please tell me why that'd be great. Also, please don't rage about stuff like "Wow noob fail." or any of that.

    Here is my Base.cpp (with some of it cut out incase leechers look here )
    Code:
    #include "Base.h"
    #include "Menu.h"
    #include "funtion.h"
    
    //Menu Position
    int menux = 25;
    int menuy = 250;
    
    //Hack Variables
    int noreload = 0;
    int glass = 0;
    int sbalas = 0;
    int fps = 0;
    int chams = 0;
    int glow = 0;
    int cross = 0;
    int skeleton = 0;
    int fog = 0;
    int spread = 0;
    int hover = 0;
    int sway = 0;
    int sun = 0;
    int fly = 0;
    int jump = 0;
    int vjump = 0;
    int speed = 0;
    int stats = 0;
    int tracers = 0;
    int window = 0;
    int prediction = 0;
    int pplwire = 0;
    int worldwire = 0;
    int hands = 0;
    int knockback = 0;
    int fullbright = 0;
    int pickup = 0;
    int tags = 0;
    
    //Menu Groups
    int more = 0;
    int removals = 0;
    int visual = 0;
    int vip = 0;
    
    void cMenu::RenderMenu(void)
    {
    	AddItem(" [ Visuals ] ", Opt_Folder, &visual, 2, MENUFOLDER);// 12 more hacks to add :D
    	 if(visual){
    	  AddItem("Show FPS "   , Opt_on_off , &fps  , 2, MENUITEM);//1
    	  AddItem("NX Chams "   , Opt_on_off , &chams  , 2, MENUITEM);//1
    	  AddItem("Glass Walls "   , Opt_on_off , &glass  , 2, MENUITEM);//1
    	  AddItem("Glow "   , Opt_on_off , &glow  , 2, MENUITEM);//1
    	  AddItem("Crosshair "   , Opt_on_off , &cross  , 2, MENUITEM);//1
    	  AddItem("Skeleton Model "   , Opt_on_off , &skeleton  , 2, MENUITEM);//1
    	  AddItem("Fullbright "   , Opt_on_off , &fullbright  , 2, MENUITEM);//1
    	  AddItem("NameTags "   , Opt_on_off , &tags  , 2, MENUITEM);//1
    	 }
    	  AddItem(" [ Removals ] ", Opt_Folder, &removals, 2, MENUFOLDER);
    	 if(removals){
    	  AddItem("No Fog "   , Opt_on_off , &fog  , 2, MENUITEM);//1
    	  AddItem("No Spread "   , Opt_on_off , &spread  , 2, MENUITEM);//1
    	  AddItem("No Sway "   , Opt_on_off , &sway  , 2, MENUITEM);//1
    	  AddItem("No Knockback "   , Opt_on_off , &knockback  , 2, MENUITEM);//1
    	  AddItem("No Reload "   , Opt_on_off , &noreload  , 2, MENUITEM);//1
    	 }
    	  AddItem(" [ More ] ", Opt_Folder, &more, 2, MENUFOLDER);
    	 if(more){
    	  AddItem("Fly "   , Opt_on_off , &fly  , 2, MENUITEM);//1
    	  AddItem("Super Jump "   , Opt_on_off , &jump  , 2, MENUITEM);//1
    	  AddItem("Virtual Jump "   , Opt_on_off , &vjump  , 2, MENUITEM);//1
    	  AddItem("Speed Hack "   , Opt_on_off , &speed  , 2, MENUITEM);//1
    	  AddItem("Player Stats "   , Opt_on_off , &stats  , 2, MENUITEM);//1
    	  AddItem("Tracers "   , Opt_on_off , &tracers  , 2, MENUITEM);//1
    	  AddItem("Prediction "   , Opt_on_off , &prediction  , 2, MENUITEM);//1
    	  AddItem("Pickup "   , Opt_on_off , &pickup  , 2, MENUITEM);//1
    	  AddItem("Player Wireframe "   , Opt_on_off , &pplwire  , 2, MENUITEM);//1
    	  AddItem("World Wireframe "   , Opt_on_off , &worldwire  , 2, MENUITEM);//1
    	 }
    	 AddItem(" [ V.I.P ] ", Opt_Folder, &vip, 2, MENUFOLDER);
    	 if(vip){
    		 AddItem("Super Bullets "   , Opt_on_off , &sbalas  , 2, MENUITEM);//1
    	 }
    }
    Code:
    cBase Base;
    	bool IsIngame()
    {
        DWORD* LTBase = (DWORD*)LtClientcode;
        IsConnected_t pConnected = *(IsConnected_t*)(*LTBase + 0x8C);
        return pConnected();
    	}
    Code:
    if(Directx.pFont == NULL)
    	D3DXCreateFontA(pDevice, 15, 0, FW_BOLD, 0, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial Black", &Directx.pFont );
    
    	if (Mmax==0) Menu.RenderMenu();
    	if(cross > 0){
    		DrawCrosshair(pDevice,Red);
    	}
    	
    		if(Mvisible){
    			  DrawBox(20,250,185,noob,D3DCOLOR_ARGB (110, 0 , 0 , 0) ,D3DCOLOR_ARGB(255 , 255 , 0 , 0 ),pDevice);
    				DrawBox(43,225,135,20,D3DCOLOR_ARGB(110, 0 , 0 , 0) ,D3DCOLOR_ARGB(255 , 255 , 0 , 0 ),pDevice);
    				Directx.DrawString(43, 227, Red,Directx.pFont,"  ************** Pub");
    				Directx.DrawString(800, 5, Red,Directx.pFont,"[ Hack By ShoeBox ]");
    				Directx.DrawString(800, 30, Red,Directx.pFont,"[ Credits To Reimy, FK127, & ExO ]");
    				{
    				}
    		}
    		}
    
    
    
    
    
    
    
    
    	
    
    
    
    
    
    
    	Menu.MenuShow(menux,menuy,Directx.pFont);
        Menu.MenuNav();
    }
    
    DWORD cBase::GetPointer(int index)
    {
    	DWORD* devicePtr = ***(DWORD****)0x90BF20;
    
    	if( devicePtr == NULL ) 
    		return 0;
    
    	return devicePtr[index];
    }
    
    bool cBase::IsGameReadyForHook(void)
    {
        if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
         && GetModuleHandleA( "ClientFX.fxd" ) != NULL 
         && GetModuleHandleA( "CShell.dll"   ) != NULL )
            return true;
    
        return false;
    }
    
    DWORD WINAPI dwMainThread(LPVOID)
    {
    	while ( !Base.IsGameReadyForHook() )
    		Sleep(iWaitTime);
    
    	Directx.Hook();
    
    	return 0;
    }
    Last edited by CA_; 03-16-2011 at 08:31 PM. Reason: Added my code
    Capitals letters are the difference between
    "I helped my uncle Jack off a horse."
    and
    "I helped my uncle jack off a horse."
    See the difference?




    So pro...^^^

  2. #2
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Press Insert

    But we need to see code tho

  3. #3
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,409
    My Mood
    In Love
    Are you sure the hack is injecting?
    No I do not make game hacks anymore, please stop asking.

  4. #4
    CA_'s Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Earth
    Posts
    170
    Reputation
    10
    Thanks
    49
    My Mood
    Hungover
    Quote Originally Posted by whit View Post
    Press Insert

    But we need to see code tho
    Added my code.

    Quote Originally Posted by flameswor10 View Post
    Are you sure the hack is injecting?
    And yes, I have used 2 injectors.
    Last edited by CA_; 03-16-2011 at 08:29 PM.
    Capitals letters are the difference between
    "I helped my uncle Jack off a horse."
    and
    "I helped my uncle jack off a horse."
    See the difference?




    So pro...^^^

  5. #5
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Hmmz DVid is having the same problem and he using the IsinGame Function

  6. #6
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,409
    My Mood
    In Love
    o.o
    Everything looks ok
    No I do not make game hacks anymore, please stop asking.

  7. #7
    CA_'s Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Earth
    Posts
    170
    Reputation
    10
    Thanks
    49
    My Mood
    Hungover
    Quote Originally Posted by flameswor10 View Post
    o.o
    Everything looks ok
    That's what I was worried about.
    Capitals letters are the difference between
    "I helped my uncle Jack off a horse."
    and
    "I helped my uncle jack off a horse."
    See the difference?




    So pro...^^^

  8. #8
    D-Vid the DBag's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    146
    Reputation
    10
    Thanks
    13
    My Mood
    Lurking
    Quote Originally Posted by whit View Post
    Hmmz DVid is having the same problem and he using the IsinGame Function
    My problem was solved, thanks to you.
    But he's not using the same base though. Cuz on the base I am using, you didn't use AddItem()
    You used:

    [highlight=c++]
    Item("Crosshair", "Off|Red|Blue|Green|Yellow|Purple|Pink|Orange|Blac k|White|TBlack", &Hack.dCross, group.Visual, 1);
    [/highlight]

    [IMG]https://i33.photobucke*****m/albums/d55/y_owns_you/D-Vid665.png[/IMG]

  9. #9
    CA_'s Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Earth
    Posts
    170
    Reputation
    10
    Thanks
    49
    My Mood
    Hungover
    Hm, well I guess I'll just keep playing around with it until I figure it out.
    Capitals letters are the difference between
    "I helped my uncle Jack off a horse."
    and
    "I helped my uncle jack off a horse."
    See the difference?




    So pro...^^^

  10. #10
    PashaAmd's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    1,008
    Reputation
    58
    Thanks
    224
    try to recreate the font?

  11. #11
    _Fk127_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    720
    Reputation
    16
    Thanks
    208
    My Mood
    Bitchy
    Most likely your present hook is detected. Try making the menu always open, so you can see if it is checking the key-press at all.



    Put this image in your signature if you support HTML5 development!