Page 2 of 5 FirstFirst 1234 ... LastLast
Results 16 to 30 of 61
  1. #16
    mmbob's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    ja
    Posts
    653
    Reputation
    70
    Thanks
    1,157
    My Mood
    Bitchy
    Useless find is useless

  2. #17
    Relyc's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    0
    My Mood
    Inspired
    Quote Originally Posted by Tyrannus View Post
    Here is what I posted on another forum:




    Just use that if you don't want to worry about updates.
    ... Err, for that wouldnt you still have to update the DevicePointer?...
    Correct me if I'm wrong...

    :S

  3. #18
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,881
    Reputation
    163
    Thanks
    3,291
    My Mood
    Sleepy
    Quote Originally Posted by Relyc View Post


    ... Err, for that wouldnt you still have to update the DevicePointer?...
    Correct me if I'm wrong...

    :S
    Why would you need to have the device pointer ?

  4. #19
    Relyc's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    0
    My Mood
    Inspired
    Menu Hack...

  5. #20
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,881
    Reputation
    163
    Thanks
    3,291
    My Mood
    Sleepy
    Quote Originally Posted by Relyc View Post
    Menu Hack...
    It was supposed to update just the SCV function.

  6. #21
    Synns's Avatar
    Join Date
    May 2007
    Gender
    male
    Posts
    5,174
    Reputation
    170
    Thanks
    2,557
    My Mood
    Bitchy
    Quote Originally Posted by Relyc View Post


    ... Err, for that wouldnt you still have to update the DevicePointer?...
    Correct me if I'm wrong...

    :S
    How about looking at Gordon`'s code? He gave you the signature for the device pointer.

  7. #22
    Relyc's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    0
    My Mood
    Inspired
    Quote Originally Posted by Tyrannus View Post
    How about looking at Gordon`'s code? He gave you the signature for the device pointer.
    Lol. Gordon didnt give me anything.

  8. #23
    Synns's Avatar
    Join Date
    May 2007
    Gender
    male
    Posts
    5,174
    Reputation
    170
    Thanks
    2,557
    My Mood
    Bitchy
    Quote Originally Posted by Relyc View Post


    Lol. Gordon didnt give me anything.
    I'm going to slap you through my monitor.

    Take a look at this code by Gordon` and stop using CDetour.

    Code:
    DWORD GetAddressPtr(int index)
    {
        DWORD dwBase = *(DWORD*)dwDevicePointer;
        if(dwBase == 0) return 0;
    
        dwBase = *(DWORD*)dwBase;
        if(dwBase == 0) return 0;
    
        dwBase = *(DWORD*)dwBase;
        if(dwBase == 0) return 0;
    
        return dwBase+4*index;
    }
    
    DWORD GetD3DHSApi(int index)
    {
        DWORD dwVA = dwHSDevicePointer;
    
        if(IsBadReadPtr((void*)dwVA, 4)) return 0;
        
        dwVA = *(DWORD*)dwVA;
        
        if(!dwVA || IsBadReadPtr((void*)dwVA, 0x200)) return 0;
        
        return dwVA + (4*index);
    }
    
    #define HOOKD3DAPI(a, b) \
        if(*(DWORD*)GetAddressPtr(b) != (DWORD)&hk##a) { \
            p##a = (a##_t) *(DWORD*)GetAddressPtr(b); \
            *(DWORD*)GetAddressPtr(b) = (DWORD)&hk##a; \
            *(DWORD*)GetD3DHSApi(b) = (DWORD)&hk##a; \
        }
    
    
    DWORD WINAPI HookD3DApis(LPVOID)
    {
        bool bValid = false;
        while(true) {
            bValid = GetAddressPtr(0) > 0;
    
            if(bValid) {
                HOOKD3DAPI(Reset, 16)
                HOOKD3DAPI(EndScene, 42)
                HOOKD3DAPI(DrawIndexedPrimitive, 82)
                HOOKD3DAPI(SetStreamSource, 100)
            }
            
            Sleep(300);
        }
    
        return 1;
    }

    HookD3DApis is a thread

    sigs:

    Code:
    dwHSDevicePointer = g_pTools->dwFindPattern((DWORD)GetModuleHandle(ehsvc), 0x90000, (PBYTE)"\x8B\x84\x11\x00\x00\x00\x00\x8B\x8D\xCC\xFD\xFF\xFF\x8B\x95", "xxx????xxxxxxxx");
        if(dwHSDevicePointer) {
            dwHSDevicePointer = *(DWORD*)(dwHSDevicePointer+3);
            dwHSDevicePointer += 0x10;
        }
    
    DWORD dwTempDevicePointer = g_pTools->dwFindPattern((DWORD)GetModuleHandle(0), (DWORD)0xFFFFFFFF, (PBYTE)"\xA1\x00\x00\x00\x00\x89\x45\xF8\x8D", "x????xxxx");
        if(dwTempDevicePointer) {
            dwDevicePointer = *(DWORD*)(dwTempDevicePointer+1);
        }
    Works for CA EU, CA NA and CA BR
    HURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR

  9. #24
    markoj's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    s
    Posts
    1,064
    Reputation
    60
    Thanks
    407
    My Mood
    Bored
    Cn would never leech , anyway good job mike XD
    And you too acid_burn, you found an undetected hook.

  10. #25
    CoderNever's Avatar
    Join Date
    Feb 2009
    Gender
    female
    Location
    https://mpgh.net MPGHCash: $700,458,011
    Posts
    1,198
    Reputation
    131
    Thanks
    2,236
    My Mood
    Buzzed
    Quote Originally Posted by mmbob View Post
    Useless find is useless
    Its not useless it allows you to use one addy for EU/NA, and possibly BR/KO...

  11. #26
    fvestrgenrl's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Posts
    172
    Reputation
    9
    Thanks
    26
    Quote Originally Posted by ac1d_buRn View Post

    My one:

    Code:
    void __cdecl PushToConsole(char* sVal)
    {
        DWORD zAddress = 0x007D9200;
        void* szConsole = (void*)*(DWORD*)(zAddress);
        _asm
        {
            push sVal
            call szConsole
            add esp, 4
        }
    }
    EDIT: Just tested and DC.
    Wanna see if the DWORD makes a difference

    EDIT2: Added DWORD and working fine.
    Nice find CN

    Code above is working fine ^^
    This D/C's for me... I use this one and it works fine:
    Code:
    void __cdecl PushToConsole( const char* szCommand )
    {
    DWORD *LTClient = ( DWORD* )( 0x3778BFB0 );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }
    And no thats not my code that came straight from CN's tutorial

  12. #27
    mmbob's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    ja
    Posts
    653
    Reputation
    70
    Thanks
    1,157
    My Mood
    Bitchy
    Quote Originally Posted by CoderNever View Post
    Its not useless it allows you to use one addy for EU/NA, and possibly BR/KO...
    And what happens when you need some more of L.T.Client's functions? You need the pointer, so why not just use that to get PushToConsole. And as long as NA and EU have the same Engine version the L.T.Client in Engine will be the same addy.

  13. #28
    CoderNever's Avatar
    Join Date
    Feb 2009
    Gender
    female
    Location
    https://mpgh.net MPGHCash: $700,458,011
    Posts
    1,198
    Reputation
    131
    Thanks
    2,236
    My Mood
    Buzzed
    I was just trying to Imply that this code is not useless. I am not saying its the best method nor the worst. It works, and for the people that don't know how to get addies ill keep the addy for this completely up to date like instantly after a update.

  14. #29
    mmbob's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    ja
    Posts
    653
    Reputation
    70
    Thanks
    1,157
    My Mood
    Bitchy
    Quote Originally Posted by CoderNever View Post
    I was just trying to Imply that this code is not useless. I am not saying its the best method nor the worst. It works, and for the people that don't know how to get addies ill keep the addy for this completely up to date like instantly after a update.
    Please please please please please dont update it. I beg for you to make them find it themselves.

  15. #30
    Relyc's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    0
    My Mood
    Inspired
    ^^ Agreed. Let them find it by themselves so they can at least to something that isn't Copy&Pasting.

Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. CN!'s ConsolePush
    By CoderNever in forum Combat Arms EU Hack Coding/Source Code
    Replies: 31
    Last Post: 07-30-2010, 05:51 AM