from ReadWriteMemory import ReadWriteMemory
rwm = ReadWriteMemory()
process = rwm.get_process_by_name('AoE2DE_s.exe')
process.open()
villagerPointer = process.get_pointer('AoE2DE_s.exe+2BFCA10', offsets=[0x18, 0x4*0x2+0x9228])
villagerCount = process.read(villagerPointer)
print (villagerCount)
Always returning 0 but should be returning 119. Used cheat engine to find the pointer and offsets, but can't replicate it in Python. Super frustrated, I couldn't get anything to work.
