 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Invader Advanced Cheater
Reputation: 0
Joined: 19 Mar 2012 Posts: 78
|
Posted: Wed Jun 06, 2012 6:22 pm Post subject: need help in last step in cheat engine tutorial Can Any One |
|
|
in last step "shade code"
Here Is My Code That I found
| Quote: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
cmp [ebx+10],1
jne +5
mov eax,1120403456
originalcode:
mov [ebx+04],eax
fldz
exit:
jmp returnhere
"Tutorial-i386.exe"+250C6:
jmp newmem
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Tutorial-i386.exe"+250C6:
mov [ebx+04],eax
fldz
//Alt: db 89 43 04 D9 EE |
and it work but the problem it be come in float or some thing like that
and the number become 1.62803491E-19
Can Any One Help
|
|
| Back to top |
|
 |
Fresco Grandmaster Cheater
Reputation: 4
Joined: 07 Nov 2010 Posts: 600
|
Posted: Thu Jun 07, 2012 7:09 am Post subject: |
|
|
| Code: | [ENABLE]
alloc(newmem2,128)
registersymbol(newmem2)
label(noop)
newmem2:
pushfd
cmp [ebx+10],1
je noop
mov [ebx+04],eax
noop:
popfd
fldz
ret
"Tutorial-i386.exe"+250C6:
call newmem2
[DISABLE]
alloc(newmem2,128)
unregistersymbol(newmem2)
"Tutorial-i386.exe"+250C6:
mov [ebx+04],eax
fldz |
your code is wrong here :
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
pushfd// -> save flags!!!!
cmp [ebx+10],1
jne +5 //??? it is better to create a label
+5 means jump 5 instructions NOT 5 auto assembler lines
//what are you doing here ?
mov eax,1120403456 // you are setting 100
to set 100 in float use ...
mov dword ptr eax,42C80000
originalcode:
mov [ebx+04],eax // then decreasing with original code ?
fldz // this way they will never die
/*first check if the unit is yours
save flags
cmp ...bla
if it is do one code
if it is not do another code
before exiting ... pop flags (restore them)*/
exit:
popfd //-> restore flags
jmp returnhere
"Tutorial-i386.exe"+250C6:
jmp newmem
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Tutorial-i386.exe"+250C6:
mov [ebx+04],eax
fldz
//Alt: db 89 43 04 D9 EE |
your biggest mistakes ...
not saving flags and then restoring them
setting wrong values 100 in float
jne +5 means jump if not equal 5 instructions not 5 lines
the AA structure.
it is better to use labels otherwise it's confusing
think humanly:
if unit is mine
jump to ... do nothing
if not
do original code
your code said:
if unit is not mine
jump to do nothing
if it is
set hp 100
then decrease
... think about it ...
cheers
_________________
... Fresco |
|
| Back to top |
|
 |
Invader Advanced Cheater
Reputation: 0
Joined: 19 Mar 2012 Posts: 78
|
Posted: Thu Jun 07, 2012 10:07 pm Post subject: |
|
|
first thanks
second iam new in writ assemble for games so i don't understand most of things you write so can you help me of give me some links
|
|
| Back to top |
|
 |
g4m3rxx Newbie cheater
Reputation: 0
Joined: 13 May 2012 Posts: 19 Location: India
|
Posted: Fri Jun 08, 2012 5:14 am Post subject: |
|
|
I think that here +5 represents 5 bytes not instruction.
And floating values can be represented in AA as (float)100
|
|
| Back to top |
|
 |
Fresco Grandmaster Cheater
Reputation: 4
Joined: 07 Nov 2010 Posts: 600
|
|
| 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
|
|