MM2 1.92.46 readptr
Posted: Mon Dec 07, 2015 4:14 am
Ok I don't know if I did something wrong but it really seems like when you have more than 1 offset in the readPtr it stops working.
That print works fine as it is.
That fails.
In the first pick you can see cheat engine on the side and the values it should be, the first offset works fine but when I add in another offset it fails, even just adding 0x0 it still fails
I tried
{0x68,0x210}
{0x68 , 0x210}
{0x68 ,0x210}
{0x68, 0x210}
Just in case for some reason the space was messing with it lol
Doing this works fine.
Code: Select all
local stam = process.readPtr(proc, "int", (0x1AAB0000 + 0x5C1B8), {0x68}) -- 0x68, 0x210,0x5C8, 0x0, 0x464
if stam then printf("0x%X\n",stam) else printf("stam not working\n") end
Code: Select all
local stam = process.readPtr(proc, "int", (0x1AAB0000 + 0x5C1B8), {0x68 ,0x210}) -- 0x68, 0x210,0x5C8, 0x0, 0x464
if stam then printf("0x%X\n",stam) else printf("stam not working\n") end
I tried
{0x68,0x210}
{0x68 , 0x210}
{0x68 ,0x210}
{0x68, 0x210}
Just in case for some reason the space was messing with it lol
Doing this works fine.
Code: Select all
local stam = process.readPtr(proc, "int", (0x1AAB0000 + 0x5C1B8), {0x68}) -- 0x68, 0x210,0x5C8, 0x0, 0x464
stam = process.read(proc, "int", stam+0x210)
stam = process.read(proc, "int", stam+0x5C8)
stam = process.read(proc, "int", stam+0x0)
stam = process.read(proc, "float", stam+0x464)
if stam then printf("%d\n",stam) else printf("stam not working\n") end