|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
vegettadbz Cheater Reputation: 0
Joined: 01 Dec 2010 Posts: 28
|
Posted: Mon Apr 21, 2014 4:53 pm Post subject: |
|
|
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 |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Mon Apr 21, 2014 6:03 pm Post subject: |
|
|
Code: | newmem:
//mov [eax+30],ecx //orig
add [eax+30],21
mov eax,[eax+6C] //orig
jmp back |
_________________
|
|
Back to top |
|
|
vegettadbz Cheater Reputation: 0
Joined: 01 Dec 2010 Posts: 28
|
Posted: Thu Apr 24, 2014 1:53 pm Post subject: |
|
|
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 |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Thu Apr 24, 2014 4:36 pm Post subject: |
|
|
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 |
|
|
vegettadbz Cheater Reputation: 0
Joined: 01 Dec 2010 Posts: 28
|
Posted: Thu Apr 24, 2014 5:05 pm Post subject: |
|
|
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 |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Thu Apr 24, 2014 6:03 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|