View previous topic :: View next topic |
Author |
Message |
Xenocritus Cheater
Reputation: 0
Joined: 27 Dec 2020 Posts: 25
|
Posted: Sun Jan 31, 2021 11:13 am Post subject: [Solved] Use Value as Address in AA |
|
|
Already tryed to find the solution in wiki, here, google...
I have a GlobalAlloc "_textSpeedAdd". The value of my "_textSpeedAdd" var is the Address where I want to write from another AA.
But, if I make
mov [_textSpeedAdd], 1
then I'm changing the Address, not the value inside that address.
The thing is that I want to do all this inside AA, not the Table.
Thanks!!
Description: |
|
Filesize: |
22.11 KB |
Viewed: |
1172 Time(s) |

|
Last edited by Xenocritus on Sun Jan 31, 2021 4:19 pm; edited 1 time in total |
|
Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4702
|
Posted: Sun Jan 31, 2021 11:28 am Post subject: |
|
|
In the address list, add it as a pointer and use _textSpeedAdd as the base address and 1 offset of 0.
In an AA script, treat it as a pointer:
Code: | mov eax,[_textSpeedAdd]
test eax,eax
jz notInitializedYet
// [eax] is now the value you want, do whatever with it
notInitializedYet:
// original code?
jmp return |
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
 |
Xenocritus Cheater
Reputation: 0
Joined: 27 Dec 2020 Posts: 25
|
Posted: Sun Jan 31, 2021 2:50 pm Post subject: |
|
|
Witchcraft!! It worked lol
Thanks also for the "test" tip, new intruction learned!
The only problem is that, as the vars are busy, I temporary used "ecx". However, I get a glith on a specific game places
Code: | cmp ecx, A0FC
jne originalcode
mov ecx, [textSpeedAdd]
mov [ecx],4
mov ecx, A0FC
originalcode:
.... |
So, as I know I want to write when this value is A0FC, I just overwrite it temporary and then restored it... but, due to the glitch, seems this is not correclty implemented...
|
|
Back to top |
|
 |
sbryzl Master Cheater
Reputation: 6
Joined: 25 Jul 2016 Posts: 252
|
Posted: Sun Jan 31, 2021 2:59 pm Post subject: |
|
|
That should be ok since ecx must be the same exiting the custom code as it was when it entered. The glitch is more likely caused by whatever addresses mov [ecx],4 is writing to.
|
|
Back to top |
|
 |
Xenocritus Cheater
Reputation: 0
Joined: 27 Dec 2020 Posts: 25
|
Posted: Sun Jan 31, 2021 4:19 pm Post subject: |
|
|
Oh thanks!!
Yep, I missed a single instruction read while entering worldmap.
Thanks both!!!
|
|
Back to top |
|
 |
|