Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong value at the address #6

Open
Seraphli opened this issue May 22, 2024 · 5 comments
Open

Wrong value at the address #6

Seraphli opened this issue May 22, 2024 · 5 comments

Comments

@Seraphli
Copy link

address = 0x819E5F00

pm = Pymem(process.pid)
value = pm.read_float(address)
print(value)

with OpenProcess(pid=process.pid) as process:
    value = process.read_process_memory(address, float, 4)
    print(value)

pymem read the right value, while PyMemoryEditor get a wrong value.
Is any thing wrong with this code?

@JeanExtreme002
Copy link
Owner

There is nothing wrong with this code. Did you make sure that the value in that process memory was not changed?

@Seraphli
Copy link
Author

The value (like 5.xxxe-115) PyMemoryEditor given is quite small compare to the value (0.30...) given by Pymem. It's clearly a wrong value.

@JeanExtreme002
Copy link
Owner

Ok, I got it. But, I would like to know if that process is totally under your control and you did make sure that the process is not changing the value during the execution of the PyMemoryEditor method.

@Seraphli
Copy link
Author

The process is changing the value, but in a small range. The value is one axis of the camera position. I can watch the value using Cheat Engine, so I can comfirm it didn't change that much.

@Quazonish
Copy link

I have the same issue but with scanning for float values. And I'm sure that many values from the scan don't change the value after scanning for 100%. I'm scanning for 196.1... and all results are like 3.6... Maybe the scan results are wrong because of the wrong float read issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants