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 


[HELP]Making AOB script for F.E.A.R.
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials
View previous topic :: View next topic  
Author Message
Cake-san
Grandmaster Cheater
Reputation: 8

Joined: 18 Dec 2014
Posts: 541
Location: Semenanjung

PostPosted: Thu Sep 10, 2015 4:44 am    Post subject: Reply with quote

don't know if it work or not
Code:

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat

 
 
aobscan(ammo, 8B 74 24 20 89 0C 90) // should be unique
alloc(newmem,$1000)

label(code)
label(return)

newmem:

code:
  mov esi,[esp+20]
  mov [eax+edx*4],100
  jmp return

ammo:
  jmp code
  nop
  nop
return:
registersymbol(ammo)

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
ammo:
  db 8B 74 24 20 89 0C 90

unregistersymbol(ammo)
dealloc(newmem)

if it doesn't work
just add more number at aobscan
like this
Code:

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat

 
 
aobscan(ammo,38 8B 74 24 20 89 0C 90) // should be unique
alloc(newmem,$1000)

label(code)
label(return)

newmem:

code:
  mov esi,[esp+20]
  mov [eax+edx*4],100
  jmp return

ammo+1:
  jmp code
  nop
  nop
return:
registersymbol(ammo)

[DISABLE]
//code from here till the end of the code will be used to disable the cheat
ammo+1:
  db 8B 74 24 20 89 0C 90

unregistersymbol(ammo)
dealloc(newmem)

_________________
...
Back to top
View user's profile Send private message
Alioth
Newbie cheater
Reputation: 0

Joined: 01 Feb 2011
Posts: 14

PostPosted: Thu Sep 10, 2015 4:55 am    Post subject: Reply with quote

Cake-san wrote:
don't know if it work or not

it works! Laughing thank you. Now I should be able to get the scripts done for health, armor too. Will let you know if they are working as well.
Back to top
View user's profile Send private message
Cake-san
Grandmaster Cheater
Reputation: 8

Joined: 18 Dec 2014
Posts: 541
Location: Semenanjung

PostPosted: Thu Sep 10, 2015 5:00 am    Post subject: Reply with quote

I thought this game has its own console command?,
but nevermind different people has its own different approach.

_________________
...
Back to top
View user's profile Send private message
Alioth
Newbie cheater
Reputation: 0

Joined: 01 Feb 2011
Posts: 14

PostPosted: Thu Sep 10, 2015 5:02 am    Post subject: Reply with quote

Cake-san wrote:
I thought this game has its own console command?,
but nevermind different people has its own different approach.

yes, but I'm making scripts for fun Razz
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Thu Sep 10, 2015 6:54 am    Post subject: Reply with quote

OP... the issue is the template uses aobscanmodule() instead of aobscan().

The difference is that the module() one specifies which process to scan.

And that game was starting up with a randomly-named thing.

So take your original script, which works, and change aobscanmodule() into aobscan() and delete the middle argument (which is the temporary process name).

_________________
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
Goto page Previous  1, 2
Page 2 of 2

 
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