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 


Code Cave Problem
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Sun Sep 13, 2015 10:25 pm    Post subject: Code Cave Problem Reply with quote

I'm making code cave script for ammo in game Ghost Recon advanced warfighter 2 but this game crash Sad .Please Help me for making code cave script for ammo.


Ghost Recon Advanced Warfighter2 Ammo Script.png
 Description:
This is Ammo script for making code cave script.
help help help
 Filesize:  323 KB
 Viewed:  9615 Time(s)

Ghost Recon Advanced Warfighter2 Ammo Script.png




Last edited by sjl002 on Sun Sep 13, 2015 10:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
Snow1337
Catastrophic Cheatah
Reputation: 1

Joined: 12 Oct 2004
Posts: 183
Location: Your, Computer

PostPosted: Sun Sep 13, 2015 10:31 pm    Post subject: Reply with quote

http://forum.cheatengine.org/viewtopic.php?t=222520
_________________
Back to top
View user's profile Send private message Visit poster's website
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Sun Sep 13, 2015 10:42 pm    Post subject: Reply with quote

Post your AA code so we get an idea what are you doing wrong.
_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Sun Sep 13, 2015 10:49 pm    Post subject: Reply with quote

I'm not doing wrong. STN please help me for making code cave for Ammo ghost recon
Back to top
View user's profile Send private message
Snow1337
Catastrophic Cheatah
Reputation: 1

Joined: 12 Oct 2004
Posts: 183
Location: Your, Computer

PostPosted: Sun Sep 13, 2015 11:04 pm    Post subject: Reply with quote

That code appears to be fine, show a screenshot of the memory viewer where the mov instructions are
_________________
Back to top
View user's profile Send private message Visit poster's website
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Sun Sep 13, 2015 11:10 pm    Post subject: Reply with quote

but this game Does it crash
Back to top
View user's profile Send private message
Snow1337
Catastrophic Cheatah
Reputation: 1

Joined: 12 Oct 2004
Posts: 183
Location: Your, Computer

PostPosted: Sun Sep 13, 2015 11:15 pm    Post subject: Reply with quote

Try changing this

Code:
"graw2.exe"+38BE51:|
mov esi, eax
pop esi
pop eax
nop
nop
nop
returnhere:

_________________


Last edited by Snow1337 on Mon Sep 14, 2015 5:55 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Sun Sep 13, 2015 11:22 pm    Post subject: Reply with quote

I want my ammo number 99 and freeze to 99
Back to top
View user's profile Send private message
Snow1337
Catastrophic Cheatah
Reputation: 1

Joined: 12 Oct 2004
Posts: 183
Location: Your, Computer

PostPosted: Sun Sep 13, 2015 11:27 pm    Post subject: Reply with quote

"graw2.exe"+38BE51:|
mov eax, 63
mov esi, 63
nop
nop
nop
nop
nop
nop
nop
nop
nop
returnhere:

_________________
Back to top
View user's profile Send private message Visit poster's website
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Sun Sep 13, 2015 11:35 pm    Post subject: Reply with quote

Your code is work.
nop
nop
nop
nop
nop
nop
nop
nop
nop
From where came the this nop's?
with using code writing this?
Back to top
View user's profile Send private message
Snow1337
Catastrophic Cheatah
Reputation: 1

Joined: 12 Oct 2004
Posts: 183
Location: Your, Computer

PostPosted: Sun Sep 13, 2015 11:42 pm    Post subject: Reply with quote

A nop is non operational, (i.e 90 offset).. you want to apply a nop for every offset that represents the instruction you dont want to operate (freeze)

At the bottom is where I got the offset amount which is 9 byte offsets so thats where 9 nops came from which would look like (90 90 90 90 90 90 90 90 90)

_________________
Back to top
View user's profile Send private message Visit poster's website
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Mon Sep 14, 2015 12:10 am    Post subject: Reply with quote

What is this code work.
mov [pPlayer],eax
movzx ebx,byte ptr [eax+28]
mov [iID],ebx
Back to top
View user's profile Send private message
Snow1337
Catastrophic Cheatah
Reputation: 1

Joined: 12 Oct 2004
Posts: 183
Location: Your, Computer

PostPosted: Mon Sep 14, 2015 5:25 am    Post subject: Reply with quote

answered you here

http://forum.cheatengine.org/viewtopic.php?p=5614354#5614354

_________________
Back to top
View user's profile Send private message Visit poster's website
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Mon Sep 14, 2015 5:35 am    Post subject: Reply with quote

your code for ammo not work and game carshed.
Back to top
View user's profile Send private message
Snow1337
Catastrophic Cheatah
Reputation: 1

Joined: 12 Oct 2004
Posts: 183
Location: Your, Computer

PostPosted: Mon Sep 14, 2015 5:56 am    Post subject: Reply with quote

Try changing this

Code:
"graw2.exe"+38BE51:|
mov esi, eax
pop esi
pop eax
nop
nop
nop
returnhere:

_________________
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 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