-
April 25th, 2021, 04:09 PM
#1
How do I code pointers in Visual Basic? (Relating to Cheat Engine) I'm so confused!
I use Cheat Engine and in Cheat Engine you have Memory Addresses and Pointers. In Cheat Engine I got my Memory and Pointers to work just fine.
Now trying to do this Visual Basic is a pain. I must be misunderstanding something. This is what Cheat Engine has and this is what I am trying to code in Visual Basic:
Here is the code I am trying:
Variables:
Code:
Code:
baseaddress = 00007FF73EE70000
GV.addresses = 01DB81B0
pointer = A4
When I add 'baseaddress' and 'GV.addresses' I get: '7FF740C281B0 ' Which is Mathematically correct.
Now I know a Pointer points to a Memory Address that has a Memory Address in it which is a 4Byte. Then you read that address and add the pointer.
My Code will show the correct value of '00007FF73EE70000' + '01DB81B0' (which is '7FF740C281B0')
Code:
Code:
Dim testt As Long
testt = (Convert.ToInt64(baseaddress, 16) + (GV.addresses))
MsgBox(Hex(testt))
But no matter how much I play with '7FF740C281B0' I can't get Cheat Engines Value of '1C6B64B70F4'.
I thought it worked like you read the Address in Hex stored at '00007FF73EE70000' + '01DB81B0' (baseaddress + GV.addresses). Then you take that addressed that is stored there and add the pointer 'A4'.
But the value in Cheat Engine stored at ('00007FF73EE70000' + '01DB81B0') is '3058397264'
And none of those will point to '1C6B64B70F4'.
I need to get the Address '1C6B64B70F4' to add the pointer of 'A4'
What am I doing wrong here????
I am so confused on this... Can anyone help sort this mess out for me?
AND OF COURSE THANKS IN ADVANCED!
I hope that because I am referencing Cheat Engine here that it does not break any rules. But I am relating this to a Visual Basic issue, so I thought it would be ok. If not, I apologize.
PLEASE NOTE:
I should note that this has NOTHING TO WITH CHEATING in a game. I am trying to read memory addresses in a game and display them to help keep track of a Characters Progress.
I am reading variables such as HP, MP, and Coordinates. I then want to store the variables and keep track of there changes.
I am not trying to modify any memory addresses.
I am just reading memory addresses.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|