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 


First trainer?

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

Joined: 17 Sep 2014
Posts: 14
Location: coding

PostPosted: Thu Jul 30, 2015 6:36 pm    Post subject: First trainer? Reply with quote

I''m having problems to do my first trainer.
All i want is just change the code like this;

Original Code:

24 64 D0 66 ?? ?? ?? ?? ?? A0

Hacked Code:

2d 18 D0 66 ?? ?? ?? ?? ?? A2

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

aobscan(infair, 24 64 D0 66 ?? ?? ?? ?? ?? A0)
label(_infair)
registersymbol(_infair)

infair:
_infair:
db 2d 18 A2

[DISABLE]
_infair:
db 24 64 A0

unregistersymbol(_infair)

Can anyone here help me?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Jul 30, 2015 7:01 pm    Post subject: Reply with quote

Code:
[ENABLE]
aobscan(infair, 24 64 D0 66 ?? ?? ?? ?? ?? A0)
infair:
  db 2D 18
infair+9:
  db A2
registersymbol(infair)
[DISABLE]
infair:
  db 24 64
infair+9:
  db A0
unregistersymbol(infair)
Back to top
View user's profile Send private message
Pamkppp4
Newbie cheater
Reputation: 0

Joined: 17 Sep 2014
Posts: 14
Location: coding

PostPosted: Thu Jul 30, 2015 10:38 pm    Post subject: Thank you! Reply with quote

Thank you! but why +9?

this isn't on Rydian guide.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Jul 30, 2015 10:55 pm    Post subject: Reply with quote

Because the "A0" byte that you wish to change is 9 bytes to the right of "infair", which starts at byte "24".
So instead of specifying all 10 bytes (which you can't, due to wildcards), you simply jump to the 10th byte.
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Fri Jul 31, 2015 2:38 am    Post subject: Reply with quote

The last bit talks about specifying an offset for where to write.


_________________
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 Tutorials 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