Metick / CheatEngine-DMA

Cheat Engine Plugin for DMA users
MIT License
208 stars 50 forks source link

Missing results when scaning using cheat engine #11

Closed cheng3969 closed 3 months ago

cheng3969 commented 4 months ago

Hello, I've compiled this plugin for Cheat Engine and while it's functional, I'm encountering an issue where certain search results are missing compared to standard Cheat Engine scans without plugin. Screenshot 2024-04-13 102117

With plugin: Screenshot 2024-04-13 100613

Without plugin: Screenshot 2024-04-13 100620

These 3 results not showing when using plugin: Screenshot 2024-04-13 101203

But i can manually add then to cheat table: Screenshot 2024-04-13 104049

Screenshot 2024-04-13 104108

I would greatly appreciate any insights into why these discrepancies occur and potential solutions. Thank you for your expertise!

Metick commented 4 months ago

Hi, thanks for the information. I was aware of it myself aswell. sadly I haven't been able to figure out why this is happening, as it is scanning the memory pages correctly. which can be seen when you debug print everything. It has to do with something else I assume, just haven't had time to figure out how to solve it.

kamuran21 commented 3 months ago

I have investigated this as well but i couldn't find the solution. I think it refers to the local memmory instead of the DMA memory.

Metick commented 3 months ago

I have investigated this as well but i couldn't find the solution. I think it refers to the local memmory instead of the DMA memory.

Why would it refer to local memory? Cuz we're reading into the memory of the target application. and VirtualQuery does return the regions for the memory that's missing, but for some reason it just never shows up?

Only thing i can think of is that It might be related due to AllocationBase being wrong in VirtualQuery, as I have no idea how to actually get the allocation base of that address space.

Metick commented 3 months ago

Been looking into it now for 2 days as i've started to need it for another plugin i'm making for CheatGear, but it seems like it's related to the way i currently handle code image

as you can see on the screenshot above, i've been able to find static addresses to a process (in this case destiny2.exe) that i've used as a example real quick.

but sadly the way i handle code now i can't seem to read a single non-static address, LMAO. I've been on this for well over 10 hours now If anyone knows what's happening please contact me on discord. or maybe we can talk together to get this solved.

I'll continue looking into it another day again. for anyone that wants to take a look at it with me can add me on discord: conditions

Metick commented 3 months ago

This has been finally solved.