I want to read the memory pointer of Rust (game) I want to read the health values, now I did find the right pointers I think but my code will not work for some reason. I tryed multiple languages but noting works for me, the only thing that works is cheat engine but I dont want to used that because its super detectable and I dont even want to cheat:))). I want to make a funny bot but there for I need the health values, I cant get without cheat engine.
These is one of the errors I got I think I am really close for this to work but I am stuck at this for dayyyyy:(((((.
This is the error:
Traceback (most recent call last):
File "C:\Users\Desktop\pls work.py", line 7, in <module>
healthpointer = process.get_pointer(baseaddress, offsets=[0xB0, 0xB20, 0x224])
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\ReadWriteMemory\__init__.py", line 77, in get_pointer
temp_address = self.read(lp_base_address)
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\ReadWriteMemory\__init__.py", line 100, in read
ctypes.windll.kernel32.ReadProcessMemory(self.handle, lp_base_address, lp_buffer,
ctypes.ArgumentError: argument 2: <class 'OverflowError'>: int too long to convert
This is my code:
from ReadWriteMemory import ReadWriteMemory
rwm = ReadWriteMemory()
process = rwm.get_process_by_name("RustClient.exe")
process.open()
baseaddress = 0x7FF78DED0000+0x305CAE8
healthpointer = process.get_pointer(baseaddress, offsets=[0xB0, 0xB20, 0x224])
while 1:
value = process.read(healthpointer)
print(value)
I hope someone who know what there doing can help me, I am really noob at coding btw:) and sorry for my bad english its not my main language.