Problem solved, check next post
Hello, a long time lurker here.
I've been trying to solve this problem on and off for a week now but can't figure it out. So I hoped someone here might know whats wrong.
I am trying to read the Object Guid, around 50% is just 0. It's the same with the namecacheguid, around half of them is just 0. It's the same that fail on both of them. So I only manage to match up half of the players with their name cache guid.
Get object guide
ReadMemory methodCode:obj.Guid = new uint[4]; byte[] guideBytes = _reader.ReadMemory(_reader.ReadInt(_reader.ReadInt(obj.Address + 0x04)), 16); obj.Guid[0] = BitConverter.ToUInt32(guideBytes, 0); obj.Guid[1] = BitConverter.ToUInt32(guideBytes, 4); obj.Guid[2] = BitConverter.ToUInt32(guideBytes, 8); obj.Guid[3] = BitConverter.ToUInt32(guideBytes, 12);
ReadInt methodCode:public byte[] ReadMemory(int pOffset, int pSize) { var buffer = new byte[pSize]; ReadProcessMemory(ProcessHandle, pOffset, buffer, pSize, 0); return buffer; }
Output to consol, this is playersCode:public int ReadInt(int pOffset) { return BitConverter.ToInt32(ReadMemory(pOffset, 4), 0); }
Code:ObjectGuid: 0 0 0 0 ObjectGuid: 0 0 0 0 ObjectGuid: 1698873145 1114137441 1701536629 624494452 ObjectGuid: 0 0 0 0 ObjectGuid: 664789001 1354694665 758487049 1885678602 ObjectGuid: 0 0 0 0 ObjectGuid: 0 0 0 0 ObjectGuid: 0 0 0 0 ObjectGuid: 175671848 159809764 171310764 176183184 ObjectGuid: 0 0 0 0 ObjectGuid: 2275338249 1242620937 3230947338 828205065 ObjectGuid: 167314800 156125692 177565432 165012892 ObjectGuid: 2837711485 3901753734 868747950 1196952103 ObjectGuid: 3343649483 4052224646 2911898167 1129581096 ObjectGuid: 0 0 0 0







Reply With Quote


And thanks alot for my first rep point!