Results 1 to 4 of 4
  1. #1
    Xipher's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Location
    Melbourne, AU.
    Posts
    1,784
    Reputation
    472
    Thanks
    1,688
    My Mood
    Innocent

    Disconnection Help.

    So i've got my hack menu working, all hacks working etc.

    But i'm facing a bit of a problem, see the hack disconnects within about 2-3 minutes of playing.
    Ive tried just hooking the menu, and not the hacks but it still disconnects.
    And i've tried countless other things.

    I'm pretty sure it's probably the detours causing this, or a string being detected, but if it's a string i've tried three different packers and all the same result, and if it's the detours why would it be disconnecting so late in the game? Would you reccomend i try different detour lengths?

    I know this section is dead these days but i hope someone can shed some light on this.

  2. #2
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,404
    My Mood
    In Love
    Packers can cause D/C..
    You'll need to encrypt the strings yourself, and it's probably your detours.

    E.g
    Most of the strings in my hack looks like this
    Code:
    Hmfrx
    No I do not make game hacks anymore, please stop asking.


    Been MPGH Minion: 6 July 2011 - 1 August 2012

  3. The Following 2 Users Say Thank You to flameswor10 For This Useful Post:

    cubanelite (01-02-2012),Xipher (01-02-2012)

  4. #3
    Xipher's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Location
    Melbourne, AU.
    Posts
    1,784
    Reputation
    472
    Thanks
    1,688
    My Mood
    Innocent
    Fair enough,

    Looks like i'll need to do that then.

  5. #4
    matypatty's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    863
    Reputation
    156
    Thanks
    2,689
    My Mood
    Amused
    Try something like this:

    Code:
    DWORD CreateJMP_REL( DWORD  SrcVA, DWORD  DstVA, DWORD  Size )
    {
    	DWORD DetourVA, dwProtect, i;
    
    #define SIZEOF_JMP_REL  5
    
    	if ( SrcVA && DstVA && Size >= SIZEOF_JMP_REL )
    	{
    		DetourVA = (DWORD) VirtualAlloc( 
    			NULL, Size + SIZEOF_JMP_REL, 
    			MEM_COMMIT, PAGE_EXECUTE_READWRITE );
    
    		if ( DetourVA && VirtualProtect( (VOID*)SrcVA, Size, PAGE_EXECUTE_READWRITE, &dwProtect ) )
    		{
    			for ( i=0; i < Size; i++ ) {
    				*(BYTE*)( DetourVA + i ) = *(BYTE*)( SrcVA + i );
    			}
    			
    			*(BYTE*)( DetourVA + Size + 0 ) = 0xE9;
    			*(DWORD*)( DetourVA + Size + 1 ) = ( SrcVA - DetourVA - SIZEOF_JMP_REL );
    
    	    	        *(BYTE*)( SrcVA + 0 ) = 0xE9;
    			*(DWORD*)( SrcVA + 1 ) = ( DstVA - SrcVA - SIZEOF_JMP_REL );
    
    			VirtualProtect( (VOID*)SrcVA, Size, dwProtect, &dwProtect );
    
    			VirtualProtect( (VOID*)DetourVA, Size + 
    				SIZEOF_JMP_REL, PAGE_EXECUTE_READ, &dwProtect );
    
    	    	return DetourVA;
    		}
    	}
    	return (0);
    }
    And to use:

    Code:
    pPresent = (oPresent)CreateJMP_REL((DWORD)VTable[17],(DWORD)PresentHook, 7);


    It is almost certain that its your detours but if it is detected strings here is how to encrypt them:
    http://www.mpgh.net/forum/207-combat..****n-class.html
    Last edited by matypatty; 01-04-2012 at 07:37 AM.

Similar Threads

  1. [HELP]disconnecting
    By molina174 in forum CrossFire Help
    Replies: 4
    Last Post: 08-14-2010, 11:14 AM
  2. [HELP] Disconnecting.
    By Drake™ in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 16
    Last Post: 07-10-2010, 03:45 PM
  3. [HELP] Disconnected Due To Incorrect Map Info [HELP]
    By TøXiN in forum CrossFire Help
    Replies: 5
    Last Post: 07-10-2010, 02:16 PM
  4. [Help] disconnected from server!
    By Sneaky Ninja in forum Combat Arms Help
    Replies: 8
    Last Post: 05-01-2010, 02:12 PM
  5. Need help with disconnections problem!
    By suicidal333 in forum Combat Arms Hacks & Cheats
    Replies: 6
    Last Post: 12-24-2008, 10:12 AM