| View previous topic :: View next topic |
| Author |
Message |
Sadaharu How do I cheat?
Reputation: 0
Joined: 22 Jan 2014 Posts: 3
|
Posted: Wed Jan 22, 2014 12:58 am Post subject: Need Some Help |
|
|
*edit* wouldent let me post the pics, added spaces to links*
*
Trying to make an AA script in a game to give me unlimited cannon but i am
having trouble.
i found the value and did a find out what writes to this address
and found the code that decreases the ammo
h t t p : //imgur. com/XHbgZhU,kJZCyYA,IUvCWmL[/img]
If I nop it in the memory viewer it does what i want, and the ammo does not change
like this:
h t t p ://imgur. com/XHbgZhU,kJZCyYA,IUvCWmL#1
But if i use an AA script It does not do what i want and comes out like this
ending with a game crash
h t t p : //imgur. com/XHbgZhU,kJZCyYA,IUvCWmL#2
and the AA script i was using
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,"WeaponsBase.dll"+159BD)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
dec eax
mov [rcx+10],eax
exit:
jmp returnhere
"WeaponsBase.dll"+159BD:
jmp newmem
nop
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"WeaponsBase.dll"+159BD:
dec eax
mov [rcx+10],eax
//Alt: db FF C8 89 41 10 |
How can i make an AA script to disable this the way i want, similar to what happens when i NOP it in the Memory Viewer
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Wed Jan 22, 2014 1:53 am Post subject: |
|
|
| Code: | [ENABLE]
alloc(newmem,2048)
label(returnhere)
newmem:
mov [rcx+10],eax
jmp returnhere
"WeaponsBase.dll"+159BD:
jmp newmem
nop
nop
returnhere:
[DISABLE]
dealloc(newmem)
"WeaponsBase.dll"+159BD:
dec eax
mov [rcx+10],eax
//Alt: db FF C8 89 41 10 |
|
|
| Back to top |
|
 |
Sadaharu How do I cheat?
Reputation: 0
Joined: 22 Jan 2014 Posts: 3
|
Posted: Wed Jan 22, 2014 4:07 pm Post subject: Still trouble |
|
|
Thanks, I tried that script but still have the same problem
It becomes a jmp and ammo still decreases when I change it with script
but if I right click and nop in memory viewer It nops it fine
And the ammo value is fixed.
Written from phone, sorry if it's a jumbled mess.
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Wed Jan 22, 2014 7:05 pm Post subject: |
|
|
You must be overlooking something. The script above is the same as NOP.
To test...
Add the address to your cheat table. Enable the script. Once the script is enabled, right-click on the address to see what accesses it. You should see which instruction(s) are still changing the value.
|
|
| Back to top |
|
 |
Sadaharu How do I cheat?
Reputation: 0
Joined: 22 Jan 2014 Posts: 3
|
Posted: Thu Jan 23, 2014 4:14 am Post subject: Thanks! |
|
|
Just wanted to thank you for your help, went back and started from scratch and got it working
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Thu Jan 23, 2014 12:04 pm Post subject: |
|
|
Glad to hear.
|
|
| Back to top |
|
 |
pellik Advanced Cheater
Reputation: 0
Joined: 14 Jun 2013 Posts: 93
|
Posted: Sat Jan 25, 2014 10:34 am Post subject: |
|
|
You got it working already so this is too late, but for future reference if you are just noping stuff it's pointless to alloc memory and far jump. Just make a script with
[enable]
"WeaponsBase.dll"+159BD:
nop
[disable]
"WeaponsBase.ll"+159BD:
dec eax
and you'll have your nop.
|
|
| Back to top |
|
 |
|