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 


CE Code list
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
vegettadbz
Cheater
Reputation: 0

Joined: 01 Dec 2010
Posts: 28

PostPosted: Mon Apr 21, 2014 4:53 pm    Post subject: Reply with quote

Nope, it's the same array of bytes.

EDIT: OK, Seems it takes some time to enable the cheat. I don't know if it's a program glitch or something else.
Anyway. I wrote the code but program crushes. I don't know if it's the code I wrote or the instruction "code+B".
This is a health cheat. I want to add a value anytime that health changes...
I suppose it goes something like this

Code:
[ENABLE]
aobscan(code,83 c4 08 89 45 c0 8b c8 8b 45 c8 89 48 30 8b 40 6c 85 c0 74)
registersymbol(code)
alloc(newmem,512)
label(back)

newmem:
 mov [eax+30],ecx
 mov eax,[eax+6C]

//code
add [eax+30],21
mov eax,[eax+6C]
//code

 jmp back


code+B: // [b]What is that?[/b]
 jmp newmem
 nop
 back:

[DISABLE]
code+B: // [b]What is that?[/b]
 mov [eax+30],ecx
 mov eax,[eax+6C]

dealloc(newmem)
unregistersymbol(code)
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Mon Apr 21, 2014 6:03 pm    Post subject: Reply with quote

Code:
newmem:
 //mov [eax+30],ecx //orig

 add [eax+30],21

 mov eax,[eax+6C]   //orig
 jmp back

_________________
Back to top
View user's profile Send private message MSN Messenger
vegettadbz
Cheater
Reputation: 0

Joined: 01 Dec 2010
Posts: 28

PostPosted: Thu Apr 24, 2014 1:53 pm    Post subject: Reply with quote

Hay again. It seems i still have some problems. I had a glance at AoB tutorials and I found something. However I still have some problem. I can't make the code with AoB scan to work. I post all the code. This is a health cheat

ORIGINAL GAME CODE

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

alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
mov [eax+30],ecx
mov eax,[eax+6C]

exit:
jmp returnhere

130CA843:
jmp newmem
nop
returnhere:

 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat


MODIFIED CODE

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

alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
ADD [eax+30],25  // ADD HEALTH. WORKS FINE
mov eax,[eax+6C]

exit:
jmp returnhere

130CA843:
jmp newmem
nop
returnhere:

[DISABLE]
//code from here till the end of the code will be used to disable the cheat



AOB SCAN CODE.
BYTE SIGNATURE: 89 48 30 8b 40 6c 85 c0 74
This is the same. It doesn't change if game restarts etc

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

alloc(newmem,2048)
label(originalcode)
label(exit)
label(returnhere)
label(health)
registersymbol(health)
aobscan(code,89 48 30 8b 40 6c 85 c0 74)


newmem: //this is allocated memory, you have read,write,execute access
//place your code here
add [eax+30],25
mov eax,[eax+6C]

originalcode:
mov [eax+30],ecx
mov eax,[eax+6C]

exit:
jmp returnhere

code:
health:
jmp newmem
nop
returnhere:

[DISABLE]

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 Apr 24, 2014 4:36 pm    Post subject: Reply with quote

Did you check to see if your AOB signature was unique? You must search for that signature to ensure that no other instructions are getting picked up by that AOB. If other instructions are getting picked up, you must add more bytes to make it unique.
Back to top
View user's profile Send private message
vegettadbz
Cheater
Reputation: 0

Joined: 01 Dec 2010
Posts: 28

PostPosted: Thu Apr 24, 2014 5:05 pm    Post subject: Reply with quote

Yes, it's unique. I have checked it at least 10 times. The problem with the AoB scan code is that, for some reason, freeze the health. I want to add health points just I have done with the modified code (see above). The problem with that code is that it doesn't work since there is no module, only the address which is changed every time game is started, so I will have to choose an alternative method, such the aob scan.
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 Apr 24, 2014 6:03 pm    Post subject: This post has 1 review(s) Reply with quote

Your AOB code doesn't work because:

Code:
newmem:
add [eax+30],25  ///////add health, okay, good...
mov eax,[eax+6C]

originalcode:
mov [eax+30],ecx  ///////adding health does nothing now, because you are doing this right afterwords
mov eax,[eax+6C]


Instead, do this:

Code:
newmem:
add [eax+30],25
mov eax,[eax+6C]
jmp returnhere

originalcode:
mov [eax+30],ecx
mov eax,[eax+6C]
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
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