qb-0 / pyMeow

Python Game Hacking Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pointer_chain_32

ubiyca opened this issue · comments

commented

"pointer_chain_32" doesn't work or am I doing something wrong?

When I try to do this, I get the error
"TypeError: unable to convert python object to seq[int]" or "TypeError: unable to convert python object to int"

commented

Please provide some code which you used to reproduce the issue.

Also you can add a screenshot from cheat engine and the pointer.

commented
import pyMeow as pm

health = 0x136C8B8
process = pm.open_process("CoDWaW.exe")
base_address = pm.get_module(process, "CoDWaW.exe")["base"]
hp = pm.pointer_chain_32(process, base_address, health)

print(hp)

Screenshot12
Screenshot13

commented

Well that's not a pointer chain. Just read the value directly.

import pyMeow as pm

health = 0x136C8B8
process = pm.open_process("CoDWaW.exe")
base_address = pm.get_module(process, "CoDWaW.exe")["base"]
hp = pm.r_int(process, base_address + health)
print(hp)
commented

Okay, I got it done. It really works. Thank you! I will keep working on it.

import pyMeow as pm

health = 0x136C8B8

class App:
    def __init__(self):
            while True:
                process = pm.open_process("CoDWaW.exe")
                base_address = pm.get_module(process, "CoDWaW.exe")["base"]
                read_health = pm.r_int(process, base_address + health)
                write_health = pm.w_int(process, base_address + health, 9999)
                print(read_health)

if __name__ == "__main__":
    App()