Object guid hast an Negative Value menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    hamburger12's Avatar Contributor CoreCoins Purchaser
    Reputation
    87
    Join Date
    Jan 2010
    Posts
    297
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Object guid hast an Negative Value

    Hello! I want to get the name of the Players. for this i need the Guid. If i read the Targetguid it works Perfekt but if i read an Object +0x30 with __int64 i get an negative value and the Programm cant work anymore. What can be wrong with it smal source:

    Code:
    __int64 GUID1;
    ReadProcessMemory(phandle,LPCVOID(curobj+0x30),&GUID1,sizeof(__int64),0);
    
    
    //This works:
    __int64 Tg;
    ReadProcessMemory(phandle,LPCVOID(Tguid),&Tg,sizeof(__int64),0);

    Object guid hast an Negative Value
  2. #2
    XTZGZoReX's Avatar Active Member
    Reputation
    32
    Join Date
    Apr 2008
    Posts
    173
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know if your offset is correct, but you're aware that GUIDs are unsigned int64s?

  3. #3
    Bananenbrot's Avatar Contributor
    Reputation
    153
    Join Date
    Nov 2009
    Posts
    384
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check for the GUID being negative and turn the sign:
    Code:
    __int64 GUID1;
    ReadProcessMemory(phandle,LPCVOID(curobj+0x30),&GUID1,sizeof(__int64),0);
    if(GUID1 < 0LL)
        GUID1 = -GUID1;
    Or even simplier:
    Code:
    __int64 GUID1;
    ReadProcessMemory(phandle,LPCVOID(curobj+0x30),&GUID1,sizeof(__int64),0);
    GUID1 = std::abs(GUID1);
    std::abs() is an awesome function. Great performance and even less work required as you can clearly see. One line is better than 2 lines

    hf with that

  4. #4
    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)
    Well hidden Troll? :O
    [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

  5. #5
    Flowerew's Avatar Master Sergeant
    Reputation
    72
    Join Date
    Oct 2009
    Posts
    134
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol epic thread

  6. #6
    Bananenbrot's Avatar Contributor
    Reputation
    153
    Join Date
    Nov 2009
    Posts
    384
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by MaiN View Post
    Well hidden Troll? :O
    No, seriously. [/troll]
    Last edited by Bananenbrot; 05-30-2010 at 07:14 AM.

  7. #7
    hamburger12's Avatar Contributor CoreCoins Purchaser
    Reputation
    87
    Join Date
    Jan 2010
    Posts
    297
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    But the Vales are Difrent if i Read the Guid it begins with 18....... and if i read the guid from an objekt it is -17...... But i don't know why o.O

  8. #8
    mnbvc's Avatar Banned
    Reputation
    120
    Join Date
    Jul 2009
    Posts
    273
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if its negative you have to use
    if(GUID1 < 0LL)
    GUID1 = -GUID1*2;

  9. #9
    eLaps's Avatar Active Member
    Reputation
    34
    Join Date
    Sep 2007
    Posts
    123
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by hamburger12 View Post
    But the Vales are Difrent if i Read the Guid it begins with 18....... and if i read the guid from an objekt it is -17...... But i don't know why o.O
    As already said, it is unsigned.

  10. #10
    Flowerew's Avatar Master Sergeant
    Reputation
    72
    Join Date
    Oct 2009
    Posts
    134
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you just have to set the bits right

    Code:
    #include <algorithm>
    #include <stdio.h>
    #include <inttypes.h>
    #include <iostream>
    
    int main(int argc, char **argv) {
      int64_t n = -34;
      int64_t p = 0;
      bool found = false;
    
      for (int i = 0; i < 64; i++) {
        if(!found && (n & (1LL << i))) {
          found = true;
          p |= (1LL << i);
        }
    
        if(found && !(n & (1LL << i))) {
          p |= 1LL << i;
        }
      }
    
      std::cout << "n: " << n << " p: " << p << std::endl;
    
      return 0;
    }

  11. #11
    Xarg0's Avatar Member
    Reputation
    61
    Join Date
    Jan 2008
    Posts
    389
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try __uint64 for great justice

    edit:
    or use the awesome GUID union from the static info thread
    I hacked 127.0.0.1

  12. #12
    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)
    You have to ROT13 it. WoW encrypts all GUIDs so you can't use them, but we cracked it.
    [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

  13. #13
    Xarg0's Avatar Member
    Reputation
    61
    Join Date
    Jan 2008
    Posts
    389
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually it's Base64 encoded also
    I hacked 127.0.0.1

  14. #14
    Flowerew's Avatar Master Sergeant
    Reputation
    72
    Join Date
    Oct 2009
    Posts
    134
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    do i have to enable ring0?

  15. #15
    Apoc's Avatar Angry Penguin
    Reputation
    1387
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Flowerew View Post
    do i have to enable ring0?
    Only if you're using proxies.

Page 1 of 2 12 LastLast

Similar Threads

  1. Problem, some of the object guides is 0
    By MurderBurger in forum WoW Memory Editing
    Replies: 3
    Last Post: 11-18-2014, 08:34 PM
  2. Get Object GUID by Pointer
    By Amrok in forum WoW Memory Editing
    Replies: 3
    Last Post: 09-01-2011, 01:58 PM
  3. [guide] Editing certain spell values in the DBC's
    By kreegoth in forum WoW EMU Guides & Tutorials
    Replies: 8
    Last Post: 09-17-2008, 11:38 AM
  4. [Guide] Haste and You
    By Amedis in forum World of Warcraft Guides
    Replies: 14
    Last Post: 07-05-2008, 05:26 AM
All times are GMT -5. The time now is 08:05 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search