| View previous topic :: View next topic |
| Author |
Message |
Blunderbread How do I cheat?
Reputation: 0
Joined: 23 Nov 2012 Posts: 8
|
Posted: Mon Sep 14, 2020 8:26 pm Post subject: issue with address addition |
|
|
For the life of me I cannot figure out why I cannot access this address that I want directly, but somehow I can do it indirectly.
For reference, the address I want is [[rax+14]+0C]. It is a float value for health. It moves around frequently but utilizing an assembly script I always know what it is being shifted to.
via script I'm using
then accessing [rax+14], and in the address below using readInteger(0x...) to get the final address which is correct.
Whenever I try to access it in a single line (whether that is through [[rax+14]+0C] or through the manual pointer add), this mysterious "D" appears before the rest of the address.
Does this have something to do with 32 bit vs 64 bit? What are your thoughts? Thanks for the insight[/code]
| Description: |
| In the address list I have the direct address I need. In the manual pointer add, there's a "D" at the beginning. Why |
|
| Filesize: |
16.45 KB |
| Viewed: |
1129 Time(s) |

|
|
|
| Back to top |
|
 |
MMM-304 Expert Cheater
Reputation: 0
Joined: 17 Aug 2020 Posts: 170 Location: Milkey Way
|
Posted: Mon Sep 14, 2020 9:36 pm Post subject: |
|
|
| since you havent uploaded the script so i cannot help much but by the look of it you need to pass the value of because apparently its value is the address
|
|
| Back to top |
|
 |
Blunderbread How do I cheat?
Reputation: 0
Joined: 23 Nov 2012 Posts: 8
|
Posted: Wed Sep 16, 2020 9:30 am Post subject: |
|
|
Solved the issue:
1) I was referencing RAX, which had the extra "D" in front of the address because it was 64 bit. moving the address to a 32 bit register (I used ECX) instead correctly referenced the address, which in this case would have been 992CC270.
2) I was trying to move the address with an offset of C in my script, but instead I needed to add C.
Final 'newmem' script:
| Code: |
push ecx
mov ecx,[eax+14]
add ecx,C
mov [ecx],41a00000 //(20.00 float)
pop ecx
|
I realize that I never posted my script but the concept still applied in the Add address window shown in the screenshot
edit: I scrapped "hpad" altogether as I was able to get the address to reference correctly in the script
|
|
| Back to top |
|
 |
Oxijen Expert Cheater
Reputation: 0
Joined: 07 May 2020 Posts: 163 Location: On The Moon
|
Posted: Wed Sep 16, 2020 10:35 am Post subject: |
|
|
| you can use dq too
|
|
| Back to top |
|
 |
|