vb.netpointersintreadprocessmemorycheat-engine

How to capture the new address of a pointer in vb.net


I'm using Cheat-Engine to attempt to gather some values for a tool I'm making. The problem is I only need to find the address the pointer finds in my first menu. From there I use that dynamic address for the rest of my operations.

Bellow is the address I wish to capture:

Cheat-Engine Pointer Menu

This is where I'm stuck as I've never had to find such an address. Being before, I could read the VALUE of the whole pointer using a ReadWritingMemory class.

ReadDMAInteger("terraria", GetModuleHandle("terraria", "[Terraria.Lighting::LightTiles+128]") + &H0, {&H147, &H8, &HBC, &H8}, true)

Any way to get the value address the pointers find? (If you comment asking if it can be in C# --> I can use that too if its the only way to do this but I prefer vb.net if possible please!) Any ideas or walkthroughs you guys can give me would be very helpful. I'm trying to learn this whole process!


Solution

  • ReadDMAInteger("terraria", &2A29728F, {&H8, &HBC, &H8, &H147}, 4)
    

    this used to work for me, so it should work for you just fine

    terraria.lighting should be translated to an address if you think it's the right pointer, and then use that as the address in the code i gave you

    offsets are used from bottom to top when you use this..