Skip to content

Offsets not working. #6

Description

@chemicaldawn
from ReadWriteMemory import ReadWriteMemory
import struct

input("Press ENTER to bind to Among Us.exe")
reader = ReadWriteMemory()

process = reader.get_process_by_name('Among Us.exe')
process.open()

y_pos_pointer = process.get_pointer(0x0532C2a0, offsets=[0x30])

while True:
    y_pos = process.read(y_pos_pointer)
    y_pos = struct.unpack('f',struct.pack("I", y_pos))[0]
    
    print(y_pos)

process.close()

Here is my code. I'm trying to access the address 0x0532C2d0 using the address 0x0532C2a0 and the offset 30. Putting the address in without an offset works, but using an address plus an offset won't.

Here's the pointer in cheat engine.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions