[Question] Using _getObjectByGuid();? menu

User Tag List

Results 1 to 8 of 8
  1. #1
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] Using _getObjectByGuid();?

    Hello all,

    Well it seems that _getObjectByGuid(); has changed the 4.2.

    Im using
    Code:
            public static uint GetObjectByGuid = 0x8C6F0; //
    Pre 4.2 it was
    Code:
    _getObjectByGuid(localPlayerGuid, -1)
    Now according to IDA it is
    Code:
    __cdecl ClntObjMgrObjectPtr(WGUID guid, TypeMask mask, char *file, int line);
    How should I be using this?


    EDIT:

    On the other hand, if anyone knows a better way to do this, please share :P
    Last edited by -Ryuk-; 07-06-2011 at 01:29 PM.
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

    [Question] Using _getObjectByGuid();?
  2. #2
    flo8464's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2009
    Posts
    434
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was reversing some piece of code that used it yesterday, nothing changed if I am not completly wrong.
    You might take a look at some lua function, most of the retrieve the local players guid and object ptr at the beginning.
    Hey, it compiles! Ship it!

  3. #3
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The signature to GetObjectByGUID has always been funky in IDA. WoW calls it with extra information or something. Those values that are pushed onto the stack are removed after the call is complete(__cdecl convention).

    EDIT: Now that I think about it, you could add as many parameters to the function as you like, so long as you have the first 2 correct.
    Last edited by lanman92; 07-06-2011 at 01:33 PM.

  4. #4
    flo8464's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2009
    Posts
    434
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could stop using HexRays for everything.
    I don't know which version you're using, but HexRays 1.1 often produces crap.
    Hey, it compiles! Ship it!

  5. #5
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hurm, then something else is causing my WoW closure :P
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  6. #6
    jjaa's Avatar Contributor
    Reputation
    245
    Join Date
    Dec 2006
    Posts
    562
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by flo8464 View Post
    You could stop using HexRays for everything.
    I don't know which version you're using, but HexRays 1.1 often produces crap.
    If you give Hex-Rays Decompiler incorrect type information, you can hardly expect it to produce accurate output. However, i do agree that people should learn to read the ASM when they see something iffy.

    @OP the type info for the function has debug/ptr related stuff. SErrDisplayAppFatal in the debug/ptr build uses that information.

  7. #7
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It will also show up in a stack dump when WoW crashes.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  8. #8
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by MaiN View Post
    It will also show up in a stack dump when WoW crashes.
    I didnt get a crash... Just like a forced closure.

    Its like I went into the Process Explorer and ended the Wow.exe process.
    and it happens just after I use
    _getObjectByGuid
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

Similar Threads

  1. [Question] Using model edits without running WoWME every time?
    By Selenti in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 08-07-2008, 10:59 AM
  2. [Question] Using Glider Profiles In Wowmimic
    By motokid985 in forum World of Warcraft General
    Replies: 0
    Last Post: 04-16-2008, 06:29 PM
  3. [Question] Using Renamer.
    By Frombehind in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-21-2007, 03:18 PM
  4. [Question] Using Hex Editor.
    By Frombehind in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 10-20-2007, 11:28 AM
  5. [Question] Use of the Nagrand Cloud Layer in Azeroth Skies
    By iindigo in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 10-03-2007, 07:17 PM
All times are GMT -5. The time now is 08:22 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search