Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Need Some Help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Sadaharu
How do I cheat?
Reputation: 0

Joined: 22 Jan 2014
Posts: 3

PostPosted: Wed Jan 22, 2014 12:58 am    Post subject: Need Some Help Reply with quote

*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
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Jan 22, 2014 1:53 am    Post subject: Reply with quote

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
View user's profile Send private message
Sadaharu
How do I cheat?
Reputation: 0

Joined: 22 Jan 2014
Posts: 3

PostPosted: Wed Jan 22, 2014 4:07 pm    Post subject: Still trouble Reply with quote

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
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Jan 22, 2014 7:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sadaharu
How do I cheat?
Reputation: 0

Joined: 22 Jan 2014
Posts: 3

PostPosted: Thu Jan 23, 2014 4:14 am    Post subject: Thanks! Reply with quote

Just wanted to thank you for your help, went back and started from scratch and got it working Very Happy
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Thu Jan 23, 2014 12:04 pm    Post subject: Reply with quote

Glad to hear. Mr. Green
Back to top
View user's profile Send private message
pellik
Advanced Cheater
Reputation: 0

Joined: 14 Jun 2013
Posts: 93

PostPosted: Sat Jan 25, 2014 10:34 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites