MMatchObject Class CID

Results 1 to 8 of 8
  1. #1

    MMatchObject Class CID

    I'm attempting to get a player's CID from the MMatchObject class (MMatchObject->MMatchCharInfo).

    I've reversed it, however, I'm getting garbage data from the code below:

    Code:
    unsigned long GetCharCID(const struct MUID &uidObject)
    {
        unsigned long CID = 0;
    
        __asm
        {
            pushad
    
            mov eax, MMATCHSERVER_GETINSTANCE
            call eax
            mov ecx, eax
    
            push uidObject
    
            mov eax, MMATCHSERVER_GETOBJECTA
            call eax
            mov eax, dword ptr ds:[eax+0x58]
            mov CID, eax
    
            popad
        }
    
        return CID;
    }
    Last edited by Linear88; 17-01-10 at 11:30 AM.


  2. #2
    Mako is insane. ThePhailure772 is offline
    MemberRank
    Sep 2007 Join Date
    1,115Posts

    Re: MMatchObject Class CID

    CID isn't part of MMatchObject.
    It goes: MMatchServer->MMatchObject->MTD_CHARINFO + 0

    Also: jacob@trinityent.org is my msn if you need it

  3. #3

    Re: MMatchObject Class CID

    Quote Originally Posted by Theoretical View Post
    CID isn't part of MMatchObject.
    It goes: MMatchServer->MMatchObject->MTD_CHARINFO + 0

    Also: jacob@trinityent.org is my msn if you need it
    My mistake, I was trying to get it from:

    MMatchServer->MMatchObject->MMatchCharInfo (0x58, first member is CID)
    Last edited by Linear88; 15-01-10 at 10:56 AM.

  4. #4

    Re: MMatchObject Class CID

    Bump. (It's been a day.)

  5. #5
    Praise the Sun! Solaire is offline
    MemberRank
    Dec 2007 Join Date
    Undead BurgLocation
    2,862Posts

    Re: MMatchObject Class CID

    Simply reverse it from the MatchServer. It uses the structure as much as you do, simply debug.

    If you can't reverse it from the MatchServer then I don't see the purpose of having it in your DLL, if you don't know basic ASM.

  6. #6
    Adrian - Gunz Addict Adriann is offline
    MemberRank
    Oct 2008 Join Date
    Miami, FLLocation
    658Posts

    Re: MMatchObject Class CID

    whats the point of having the players CID?>

  7. #7

    Re: MMatchObject Class CID

    Quote Originally Posted by Wizkidje View Post
    Simply reverse it from the MatchServer. It uses the structure as much as you do, simply debug.

    If you can't reverse it from the MatchServer then I don't see the purpose of having it in your DLL, if you don't know basic ASM.
    I have reversed it before asking, and that was how I formed the code (It was still bugged).

  8. #8
    Praise the Sun! Solaire is offline
    MemberRank
    Dec 2007 Join Date
    Undead BurgLocation
    2,862Posts

    Re: MMatchObject Class CID

    Quote Originally Posted by Linear88 View Post
    I have reversed it before asking, and that was how I formed the code (It was still bugged).
    Then you reversed it improperly.



Advertisement