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 


[ASM] Using part of AoBscan result in a new AoBscan

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

Joined: 07 Apr 2009
Posts: 95

PostPosted: Fri Nov 02, 2012 2:04 pm    Post subject: [ASM] Using part of AoBscan result in a new AoBscan Reply with quote

Hey, I had a question about the ASM, not even sure if I'm posting it in the right place, but we have a lot of questions here anyway, so I figured why not here.

My problem is as followed, I'm trying to make an automated ASM script where I scan for one AoB, then another AoB, and take parts of those AoB's and overwrite one with the other.
As for example, I scan for this:
0A 23 34 45 67 89 AB CD EF XX XX XX XX FE DC BA 98 76 54 32 10
And for this:
0B 23 34 45 67 89 AB CD EF ZZ ZZ ZZ ZZ FE DC BA 98 76 54 32 10
The XX's and ZZ's are always pointing to an address in memory, which changes every time you restart the game.

Anyway, at this point I want to scan for the XX's value, and replace all results with the ZZ's
Is this possible in ASM, or at all? I'm guessing I'd need to start learning C++ to get this to work.

It's about a flash game btw, so pointers are out of the question.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Fri Nov 02, 2012 2:21 pm    Post subject: Reply with quote

It's probably easier to do in lua

Do an aobscan for the two strings, then writeInteger(address2, readInteger(address1+9))

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

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

Joined: 07 Apr 2009
Posts: 95

PostPosted: Fri Nov 02, 2012 2:24 pm    Post subject: Reply with quote

Thanks for the super speedy answer!

I don't suppose there's some super LUA tutorial that'll teach me how to do this within a day, is there?
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Fri Nov 02, 2012 5:41 pm    Post subject: Reply with quote

So something like this?
Code:

AOBScan(address1, "0A 23 34 45 67 89 AB CD EF XX XX XX XX FE DC BA 98 76 54 32 10")
AOBScan(address2, "0B 23 34 45 67 89 AB CD EF ZZ ZZ ZZ ZZ FE DC BA 98 76 54 32 10")
writeInteger(address2, readInteger(address1+9))

Also we need only the bytes between the 9 byte and the the 12 byte.
Is it possible aswell?

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
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