qb-0 / pyMeow

Python Game Hacking Library
MIT License
355 stars 39 forks source link

pointer_chain_32 #19

Closed ubiyca closed 1 year ago

ubiyca commented 1 year ago

"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"

qb-0 commented 1 year ago

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

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

ubiyca commented 1 year ago
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

qb-0 commented 1 year ago

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)
ubiyca commented 1 year ago

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()