View previous topic :: View next topic |
Author |
Message |
Freiza Grandmaster Cheater
Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Wed Apr 04, 2012 9:58 pm Post subject: call procedure stored in another memoryrecord in AA? |
|
|
Is it possible to call procedure stored in another memory record in AA?
_________________
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25804 Location: The netherlands
|
Posted: Thu Apr 05, 2012 5:43 am Post subject: |
|
|
If that other aa record has been enabled and it allocated the function using globalalloc or used registersymbol for the function it allocated, then yes, you can call it.
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
Freiza Grandmaster Cheater
Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Thu Apr 05, 2012 5:57 am Post subject: |
|
|
Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
sub [ebx+00000464],eax
call nearly // also tried call [nearly]
exit:
jmp returnhere
"tutorial-i386.exe"+2276B:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"tutorial-i386.exe"+2276B:
sub [ebx+00000464],eax
//Alt: db 29 83 64 04 00 00 |
Called Script
Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
globalalloc(nearly,200)
globalalloc(near,4)
nearly:
mov [near],22
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(nearly) |
Did not worked?
It crashed the game.
_________________
Last edited by Freiza on Thu Apr 05, 2012 6:00 am; edited 3 times in total |
|
Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Thu Apr 05, 2012 5:58 am Post subject: |
|
|
missing ret command
_________________
|
|
Back to top |
|
 |
Freiza Grandmaster Cheater
Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Thu Apr 05, 2012 6:01 am Post subject: |
|
|
mgr.inz.Player wrote: | missing ret command |
Yes, I am stupid.
_________________
|
|
Back to top |
|
 |
|