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 


Aob scan-replace: need help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
yellowd
How do I cheat?
Reputation: 0

Joined: 15 Aug 2011
Posts: 2

PostPosted: Mon Aug 15, 2011 9:23 am    Post subject: Aob scan-replace: need help Reply with quote

Heya. I need someone to help me:
I want to make a cheat table doing this:

Search for this wildcard:
Code:
d0 66 ?? ?? ?? ?? 12 ?? 00 00 ?? d0 66 ?? ?? xx 12 ?? ?? ?? d0 ?? ?? ?? d0 ?? ?? ?? 66 ?? ?? ?? ?? a1 61 ?? ??


Search for this wildcard:
Code:
d0 d0 66 ?? ?? d0 66 ?? ?? a0 d0 66 ?? ?? a0 d0 66 ?? ?? a0 4f ?? ?? 01 10 ?? 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ??


Replace the first wildcard by the second aob without the ?? ?? things !
It's in a flash game in which values are moving each days so i must keep wildcards.
Adresses are moving too.

When i do it manually it works, but i want it to work into only one Cheat table script !

I tried this:
Code:
[ENABLE]
Aobscan(_aob1, d0 66 ?? ?? ?? ?? 12 ?? 00 00 ?? d0 66 ?? ?? xx 12 ?? ?? ?? d0 ?? ?? ?? d0 ?? ?? ?? 66 ?? ?? ?? ?? a1 61 ?? ??)
label(aob1)
registersymbol(aob1)

Aobscan(_aob2, d0 d0 66 ?? ?? d0 66 ?? ?? a0 d0 66 ?? ?? a0 d0 66 ?? ?? a0 4f ?? ?? 01 10 ?? 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ??)
label(aob2)
registersymbol(aob2)

_aob1:
aob1:
db aob2

_aob2:
aob2:
db aob2

[DISABLE]


The part with _aob2: aob2: db aob2 is here because otherwise there was an error.

Could someone help me ? ^_^

PS: Sorry for my english
Back to top
View user's profile Send private message
GH*master
Expert Cheater
Reputation: 8

Joined: 10 Jan 2008
Posts: 159

PostPosted: Mon Aug 15, 2011 10:50 am    Post subject: Reply with quote

if I understood correctly, then try this code

Code:

 [ENABLE]
 Aobscan(_aob1, d0 66 ?? ?? ?? ?? 12 ?? 00 00 ?? d0 66 ?? ?? xx 12 ?? ?? ?? d0 ?? ?? ?? d0 ?? ?? ?? 66 ?? ?? ?? ?? a1 61 ?? ??)
 Aobscan(_aob2, d0 d0 66 ?? ?? d0 66 ?? ?? a0 d0 66 ?? ?? a0 d0 66 ?? ?? a0 4f ?? ?? 01 10 ?? 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ??)
 
 _aob1:
 READMEM(_aob2, 37)

 [DISABLE]
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

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

PostPosted: Mon Aug 15, 2011 11:39 am    Post subject: Reply with quote

GH*master wrote:
if I understood correctly


if not. Maybe this:

Code:
[ENABLE]
Aobscan(_aob1, d0 66 ?? ?? ?? ?? 12 ?? 00 00 ?? d0 66 ?? ?? xx 12 ?? ?? ?? d0 ?? ?? ?? d0 ?? ?? ?? 66 ?? ?? ?? ?? a1 61 ?? ??)

_aob1:
db d0 d0 66

_aob1+5:
db d0 66

_aob1+9:
db a0 d0 66

_aob1+e:
db a0 d0 66

_aob1+13:
db a0 4f

_aob1+17:
db 01 10

_aob1+1a:
db 00 00

[DISABLE]

_________________
Back to top
View user's profile Send private message MSN Messenger
yellowd
How do I cheat?
Reputation: 0

Joined: 15 Aug 2011
Posts: 2

PostPosted: Mon Aug 15, 2011 1:38 pm    Post subject: Reply with quote

Well, i tried your scripts.

GH Master, i get the error aob2 is not a correct value for ReadMem.. wtf :/

mgr.inz.Player: no compilation error but the hack is not working at the end :s and i don't understand what did you do so i couldn't really studdy it..
Back to top
View user's profile Send private message
GH*master
Expert Cheater
Reputation: 8

Joined: 10 Jan 2008
Posts: 159

PostPosted: Mon Aug 15, 2011 11:44 pm    Post subject: Reply with quote

When will be released CE 6.2, then You try this code.

AA-script:
Code:

[ENABLE]
LuaCall(Cheat1Action()) // only CE 6.2

[DIASBLE]


Lua-script:
Code:

function Cheat1Action()
   aob1 = AOBScan("d0 66 ?? ?? ?? ?? 12 ?? 00 00 ?? d0 66 ?? ?? xx 12 ?? ?? ?? d0 ?? ?? ?? d0 ?? ?? ?? 66 ?? ?? ?? ?? a1 61 ?? ??")
   aob2 = AOBScan("d0 d0 66 ?? ?? d0 66 ?? ?? a0 d0 66 ?? ?? a0 d0 66 ?? ?? a0 4f ?? ?? 01 10 ?? 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ??")
   bytecount = 37
   table1 = readBytes(aob1, bytecount, true) // only CE 6.2
   writeBytes(aob2, table1, bytecount) // only CE 6.2
end
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

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

PostPosted: Tue Aug 16, 2011 3:35 am    Post subject: Reply with quote

Code:
[ENABLE]
Aobscan(_aob1, d0 66 ?? ?? ?? ?? 12 ?? 00 00 ?? d0 66 ?? ?? xx 12 ?? ?? ?? d0 ?? ?? ?? d0 ?? ?? ?? 66 ?? ?? ?? ?? a1 61 ?? ??)
Aobscan(_aob2, d0 d0 66 ?? ?? d0 66 ?? ?? a0 d0 66 ?? ?? a0 d0 66 ?? ?? a0 4f ?? ?? 01 10 ?? 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ??)

alloc(newmem,64)
createthread(newmem)

newmem:
mov esi,_aob2
mov edi,_aob1
mov ecx,#37
rep movsb

ret



[DISABLE]

_________________
Back to top
View user's profile Send private message MSN Messenger
yellowd
How do I cheat?
Reputation: 0

Joined: 15 Aug 2011
Posts: 2

PostPosted: Tue Aug 16, 2011 4:08 am    Post subject: Reply with quote

mgr.inz.Player wrote:
Code:
[ENABLE]
Aobscan(_aob1, d0 66 ?? ?? ?? ?? 12 ?? 00 00 ?? d0 66 ?? ?? xx 12 ?? ?? ?? d0 ?? ?? ?? d0 ?? ?? ?? 66 ?? ?? ?? ?? a1 61 ?? ??)
Aobscan(_aob2, d0 d0 66 ?? ?? d0 66 ?? ?? a0 d0 66 ?? ?? a0 d0 66 ?? ?? a0 4f ?? ?? 01 10 ?? 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ??)

alloc(newmem,64)
createthread(newmem)

newmem:
mov esi,_aob2
mov edi,_aob1
mov ecx,#37
rep movsb

ret



[DISABLE]


Yay, thanks a lot dude that's working !
But it gives an Access violation error. But not a problem.
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