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 


Help with db on Auto Assembler

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

Joined: 09 Jun 2015
Posts: 77

PostPosted: Sat Apr 25, 2020 12:02 pm    Post subject: Help with db on Auto Assembler Reply with quote

So, this is a script that I'll be using:

Code:

[ENABLE]
aobscan(JotaroAddr, 63 3E ?? ?? ?? FF FF FF FF 00 00 00)
label(_JotaroAddr)
registersymbol(_JotaroAddr)

JotaroAddr:
_JotaroAddr:

[DISABLE]
JotaroAddr:
_JotaroAddr:
db 63 3E 73 CF 3D FF FF FF FF 00 00 01
unregistersymbol(_JotaroAddr)


In the above code, I make the signature different by setting the last 00 to 01 in the disable script. I do this because the game actually keeps several copies of the same data, so I just enable and disable the script until I get to the copy that actually affects the game. The problem is that I'd like to leave the other values untouched, as the three bytes after 3E can vary. I'd just like to set the last byte to 01 and not even touch the rest of the signature. Thanks for reading!
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4309

PostPosted: Sat Apr 25, 2020 12:41 pm    Post subject: Reply with quote

Either add more bytes to the signature or pick a different method for finding an address that isn't terrible (i.e. injection copy and/or pointers).
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Reclaimer Shawn
Advanced Cheater
Reputation: 0

Joined: 09 Jun 2015
Posts: 77

PostPosted: Sat Apr 25, 2020 1:05 pm    Post subject: Reply with quote

ParkourPenguin wrote:
Either add more bytes to the signature or pick a different method for finding an address that isn't terrible (i.e. injection copy and/or pointers).


I can add bytes behind the value, but I'm not sure if it'll cause crashes or not. I'll try that. I would work with an injection copy, but I'm dealing with a MEM_MAPPED area of an emulator, so I'm not able to get proper x86 instructions. Bytes behind the value aren't unique either, as they're the same as the other copies, so writing a different byte is needed to invalid each signature.
Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 55

Joined: 01 Oct 2008
Posts: 943

PostPosted: Sat Apr 25, 2020 1:33 pm    Post subject: Reply with quote

May try this method, it need not over write memory.
Make a script record
Code:

[ENABLE]
label(AobSearchStart)
1:
AobSearchStart:
registersymbol(AobSearchStart)

[DISABLE]
unregistersymbol(AobSearchStart)


Then make another record for your search using aobscanRegion, with
start address : AobSearchStart
end address : -1 (may think as short cut for max address, or if not work try 7f...ff)
Code:

[ENABLE]
aobscanRegion(JotaroAddr, AobSearchStart, -1, 63 3E ?? ?? ?? FF FF FF FF 00 00 00)
registersymbol(JotaroAddr)  /// not don't need auxiliary symbol _JotaroAddr

[DISABLE]
unregistersymbol(AobSearchStart)
label(AobSearchStart)
JotaroAddr+1:
AobSearchStart:
registersymbol(AobSearchStart)
unregistersymbol(JotaroAddr)


The idea is to update the beginning address of a new search on [DISABLE],
the first code/record is need to initial/reset AobSearchStart to 1.

_________________
- Retarded.
Back to top
View user's profile Send private message
Reclaimer Shawn
Advanced Cheater
Reputation: 0

Joined: 09 Jun 2015
Posts: 77

PostPosted: Sat Apr 25, 2020 4:08 pm    Post subject: Reply with quote

panraven wrote:

Code:

JotaroAddr+1:



I didn't use your code, but your code gave me an idea. I know it seems intuitive, but I didn't know you could perform math with the AOB Label.

This did what I needed to do:
Code:

_JotaroAddr+B:
db 01


Thanks for the help!
Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 55

Joined: 01 Oct 2008
Posts: 943

PostPosted: Sat Apr 25, 2020 10:35 pm    Post subject: Reply with quote

Reclaimer dawnn wrote:

...
I didn't use your code, but your code gave me an idea. I know it seems intuitive, but I didn't know you could perform math with the AOB Label.
...


Not exactly perform math, it just can 'align' an undefined label with a defined address label, kind of an one-time-off assignment.

_________________
- Retarded.
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 Lua Scripting 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