Reading pointers with offsets doesn´t work..

07/31/2017 23:43 xrdcrpt#1
Hey.

I have this class for reading from memory:


Now I have some pointer with differen types. Some are texts, some are numbers.

I already did it to read my Charactername (Pointer + Offset):

Code:
  int pID= 13700;
             int PlayerPointer = 0x16c0c18;
             int GameTimePtr = 0x16c3cbc;
             int GoldAddresse = 0x16c3fdc;

             Memory mem = new Memory(LoLID);
             Process GameProcess = Process.GetProcessById(pID);
             IntPtr BaseAddress = GameProcess.MainModule.BaseAddress;

             //Name
             string Name = mem.ReadStringPtr( BaseAddress.ToInt32() + PlayerPointer, new int[] { 0x20}, 10);
             textBox1.Text = Name;

This works.

Also I got the healthreader working:

Code:
int MaxHealth = (int)mem.ReadFloatPtr(BaseAddress.ToInt32() + PlayerPointer, new int[] { 0x660 });
But now i have some strange problems.
The first is another pointer (Value is 1-20).
I tried to get my Level with this:

Code:
int Level = mem.ReadIntPtr(BaseAddress.ToInt32() + PlayerPointer, new int[] { 0x3C5C });
The offset is right, but I get this:
1,401298E-45

Another problem is another number pointer with 2 offsets. Tried this:

Code:
lbGold.Text = mem.ReadFloatPtr(BaseAddress.ToInt32() + GoldAddresse, new int[] { 0x54, 0x44 }).ToString();
And I see the value is changing (right) but the value is 100% wrong. I get:
2,397622E-42

So where is the problem with these 2 reading codes? The offsets + addresses are correct.

Thank you :)
08/01/2017 00:46 Shawak#2
How about debugging your software?
08/08/2017 01:48 dacx#3
#moved