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 


how to use "Custom" scan value ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
kickclock
Advanced Cheater
Reputation: 0

Joined: 15 Jan 2008
Posts: 73

PostPosted: Fri May 28, 2010 2:27 am    Post subject: how to use "Custom" scan value ? Reply with quote

i want eax compare with input value, not #100
how to write this code ?


Code:

mov eax,[edx]  //eax gets the new value
cmp eax,#100  //compare eax with #100, # tells the assembler to read it as a decimal instead of hex
setz al //sets al to 1 if match, 0 if false (upper bits of eax are ignored)
ret



edit:
it there some example script ?

_________________
Love CE
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 474

Joined: 09 May 2003
Posts: 25949
Location: The netherlands

PostPosted: Fri May 28, 2010 6:33 am    Post subject: Reply with quote

Just read the a bit higher
Code:

alloc(scantext,4) //will get the pointer to the given string
alloc(scanvalue,8) //will get the value of the input string converted to an 8-byte value
alloc(singlescanvalue,4) //will get the float type of the input
alloc(doublescanvalue,8) //will get the double type of the input

so, [scanvalue] contains the value entered in 8 byte format (and that can be converted to 4 byte without anything special)

so:
Code:

mov eax,[scanvalue]
cmp eax,[edx]
setz al //if match, set to true

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
kickclock
Advanced Cheater
Reputation: 0

Joined: 15 Jan 2008
Posts: 73

PostPosted: Fri May 28, 2010 7:56 am    Post subject: Reply with quote

TAAAANKS DarkByte !

now i can use this to scan some game , which was Encode memory value ~~!



edit:
i think you could add a step in Tutorial
name "Encode value scan"
show people how to use "Custom " scan.

in some game , value show in game window is 100
but in memory ,value should encode like this
ror eax,09
xor eax,[xxxx]
rol eax,19 // this is the real value in memory , not #100

_________________
Love CE
Back to top
View user's profile Send private message
tianshizhiluan
How do I cheat?
Reputation: 0

Joined: 15 Dec 2010
Posts: 1

PostPosted: Sun Dec 26, 2010 7:57 am    Post subject: Reply with quote

but opcode: mov eax, [edx + 8] can't be compiled???
Back to top
View user's profile Send private message Send e-mail
Geri
Moderator
Reputation: 112

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Sun Dec 26, 2010 6:47 pm    Post subject: Reply with quote

tianshizhiluan wrote:
but opcode: mov eax, [edx + 8] can't be compiled???


No, it is not compiled in that syntax. Use instructions in the same syntax as CE and it will work.

Code:
mov eax,[edx+8]


This can be compiled already. Remove the unneccessary spaces.

_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
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
Page 1 of 1

 
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