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 


Cheat engine AA script problem

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Grandmaster Strategist
Newbie cheater
Reputation: 0

Joined: 22 Mar 2014
Posts: 12

PostPosted: Mon Dec 28, 2015 2:04 pm    Post subject: Cheat engine AA script problem Reply with quote

I have written auto assembly code for one game(in cheat engine AA) the script is:
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem:
mov [edi+00000140],64
mov ecx,64

originalcode:
mov ecx,[edi+00000140]

exit:
jmp returnhere

007133A6:
jmp newmem
nop
returnhere:

As you see, it changes all statistics connected with code mov [edi+00000140]( which is responsible for one specific statistic in game) to 100 because 64 in hexadecimal is 100 in decimal. And how can i change it to 100 but only for "units" who i control, not all players or AI?
IF something is unclear then write what so i can explain it better.
Back to top
View user's profile Send private message
vng21092
Grandmaster Cheater
Reputation: 15

Joined: 05 Apr 2013
Posts: 644

PostPosted: Mon Dec 28, 2015 2:54 pm    Post subject: Reply with quote

C.E Tutorial 9 covers exactly this. In short, you must find some offset within the data structure that filters you (maybe you and your team) from other players in the game. So essentially, you'd end up with something like
Code:
cmp [edi+???],???
je myCode
jmp originalcode
or some other variation, where the first ??? is the "filter" offset, and the second ??? is the value within said offset.
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Mon Dec 28, 2015 3:44 pm    Post subject: Reply with quote

http://forum.cheatengine.org/viewtopic.php?t=583376

Third method there is the traditional way of doing it, but there's others.

_________________
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