Programming in Python
I am trying to use Python to collect data from my character for maybe in the future creating a DataSet.
I am already in a few days in a problem that I cannot solve.
The OffSets I use never return anything, so far only 2 have returned to me what I wanted.
the ones that worked were:
playername = 0x00C79D18
realmname = 0x00C79B9E
I would really like this to work:
FrameScript__SignalCombatLogEvent = 0x750400
(I believe this would be what CombatLog would give me in real time)
I'm using the PYMEM library, because seconds what I researched would be the simplest way to work with memory with python.
Code:
import pymem
pm = pymem.Pymem('Wow.exe')
base = pm.process_base.lpBaseOfDll
playername = 0x00C79D18
realmname = 0x00C79B9E
equipment_set_list = 0x5af490
player_name = pm.read_string(playername)
print(player_name)
relm = pm.read_string(realmname)
print(relm)
test = pm.read_string(equipment_set_list)
print(test)
Code:
2020-12-13 13:54:54,002 - pymem.process - ERROR - AdjustTokenPrivileges error: 0x00000006
2020-12-13 13:54:54,002 - pymem - DEBUG - Process 17996 is being debugged
Flax
Royal WoW
Traceback (most recent call last):
File "c:\Users\xxxxx\Desktop\Code\Arquivos_Python\Processo_wow\processo_wow.py", line 19, in <module>
teste = pm.read_string(zone_c)
File "C:\Users\xxxxx\AppData\Local\Programs\Python\Python39\lib\site-packages\pymem\__init__.py", line 781, in read_string
value = pymem.memory.read_string(self.process_handle, address, byte)
File "C:\Users\xxxxx\AppData\Local\Programs\Python\Python39\lib\site-packages\pymem\memory.py", line 544, in read_string
buff = buff.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
When I change the code to:
Code:
test = pm.read_int(equipment_set_list)
Returns:
-2081649835
When I change the code to:
Code:
test = pm.read_longlong(equipment_set_list)
Returns:
6220351710526475093
Documentation:
Welcome to Pymem’s documentation! — Pymem alpha documentation