srounet / Pymem

A python library for windows, providing the needed functions to start working on your own with memory editing.
MIT License
303 stars 45 forks source link

No Module listed #90

Open Ab1gor opened 1 year ago

Ab1gor commented 1 year ago

I was trying to access the modules of a game. This is my code:

from pymem import Pymem
import pymem
import subprocess
import re

pm = pymem.Pymem('Game.exe')
print(f"pm -> {pm}")
modules = pm.list_modules()
print(f"All modules -> {modules}")
module_list = []
for module in modules:
    module_list.append(module.name)

print(f"Module list -> {module_list}")

Output:

pm -> <pymem.Pymem object at 0x00000256AFB47370>
All modules -> <generator object enum_process_module at 0x00000256B1A51540>
Module list -> []

The Module list seems to be empty. This is my output. I ran python as an administrator. Python - 64 bit Application - 64 bit

Discord Conversation Link

sokripon commented 1 year ago

The code is correct. Have you checked with Cheat Engine if the DLLs are listed there? image