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 returning unexpected results

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

Joined: 01 Oct 2014
Posts: 4

PostPosted: Wed Oct 01, 2014 10:13 pm    Post subject: AoB scan returning unexpected results This post has 1 review(s) Reply with quote

So I was following along this tutorial here:

forum.cheatengine.org/viewtopic.php?t=572465

I ran into an issue when using the aobscan function. Here's a picture with relevant information.

s26.postimg.org/l0q582wa1/CEproblem2.png

I think the main issue is the false match. We all know ?0 doesn't match C7. I tried adding more wildcards to the search but the results didn't change. How do I get around this problem? I looked around the forums trying to find a way to focus or limit the range of aob scan but failed to find anything concrete.
Back to top
View user's profile Send private message
NoMoreBSoD
Advanced Cheater
Reputation: 3

Joined: 03 Sep 2013
Posts: 85

PostPosted: Wed Oct 01, 2014 11:44 pm    Post subject: Re: AoB scan returning unexpected results Reply with quote

itstwoam wrote:
I tried adding more wildcards to the search but the results didn't change. How do I get around this problem? I looked around the forums trying to find a way to focus or limit the range of aob scan but failed to find anything concrete.

At first sight, before first scan you need to check the "writable" checkbox so that it's a square (check both writable and non writable memory).

You will find that your aob scan is far too short and find too many values.
Back to top
View user's profile Send private message
itstwoam
How do I cheat?
Reputation: 1

Joined: 01 Oct 2014
Posts: 4

PostPosted: Thu Oct 02, 2014 12:58 am    Post subject: Reply with quote

When that checkbox is set to check both writeable and non writeable it comes back with 3 results. The expected result (EC C4 16 02 E0.) The other two are in non-writable memory(both EC C4 16 02 C7.) Neither of which should be a matched result. The size of the aobscan shouldn't have anything to do with the last 2 mismatched results.
Back to top
View user's profile Send private message
NoMoreBSoD
Advanced Cheater
Reputation: 3

Joined: 03 Sep 2013
Posts: 85

PostPosted: Thu Oct 02, 2014 1:39 am    Post subject: Reply with quote

itstwoam wrote:
When that checkbox is set to check both writeable and non writeable it comes back with 3 results. The expected result (EC C4 16 02 E0.) The other two are in non-writable memory(both EC C4 16 02 C7.) Neither of which should be a matched result.
True, I don't know why it behaves that way.

itstwoam wrote:
The size of the aobscan shouldn't have anything to do with the last 2 mismatched results.

But it solves the problem. For example searching for EC C4 16 02 ?0 ?? ?? ?? ?? 3c 65 38 58 48 would give you what you want.
And yes, I reinstalled Torchlight just to answer your question Very Happy
Back to top
View user's profile Send private message
itstwoam
How do I cheat?
Reputation: 1

Joined: 01 Oct 2014
Posts: 4

PostPosted: Thu Oct 02, 2014 2:02 am    Post subject: Reply with quote

Did you fire it up once and just throw in what you spotted because that wouldn't have worked at all on these tries.

EC C4 16 02 00 A9 5B 25 60 9F 97 04 C6 28 D0 BC
EC C4 16 02 B0 C1 A2 26 B2 21 EF 45 C7 F6 21 CA
EC C4 16 02 ?0 ?? ?? 2? ?? ?? ?? ?? C? ?? ?? ??
EC C4 16 02 ?0 ?? ?? 2? B2 21 EF 45 C7 F6 21 CA
EC C4 16 02 ?0 A8 4F 25 AE 69 BF D3 72 44 15 46
EC C4 16 02 E0 82 3E 21 2B DC D5 92 B7 9A 19 58
EC C4 16 02 A0 E0 39 28 1C 10 7C C2 C5 8D AF DD

EC C4 16 02 ?0 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? FF finally got the script to work right. Turns out if you throw enough wildcards at it there's only the 1 expected return.

I would like some clarification on why it returns mismatches though. It shouldn't work that way, or I have a deeply flawed understanding about how wildcards work in searches.
Back to top
View user's profile Send private message
NoMoreBSoD
Advanced Cheater
Reputation: 3

Joined: 03 Sep 2013
Posts: 85

PostPosted: Thu Oct 02, 2014 2:07 am    Post subject: Reply with quote

itstwoam wrote:
Did you fire it up once and just throw in what you spotted because that wouldn't have worked at all on these tries.
Yes because I don't understand what you're trying to do. First we have a very different way of using aobs and I don't understand yours and second you're using dynamic memory for your aob which isn't recommended.


itstwoam wrote:
I would like some clarification on why it returns mismatches though. It shouldn't work that way, or I have a deeply flawed understanding about how wildcards work in searches.
I would love an explanation too Smile
Back to top
View user's profile Send private message
itstwoam
How do I cheat?
Reputation: 1

Joined: 01 Oct 2014
Posts: 4

PostPosted: Thu Oct 02, 2014 2:15 am    Post subject: Reply with quote

The rabbit hole goes a bit deeper also.

s26.postimg.org/rsgkaxl9l/CEproblem3.png

Mismatches....everywhere.
Back to top
View user's profile Send private message
NoMoreBSoD
Advanced Cheater
Reputation: 3

Joined: 03 Sep 2013
Posts: 85

PostPosted: Thu Oct 02, 2014 2:21 am    Post subject: Reply with quote

My theory is that the wildcard transforms the 2 byte value block in unknown value and not just the 1 wildcard byte.
Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 62

Joined: 01 Oct 2008
Posts: 958

PostPosted: Thu Oct 02, 2014 2:36 am    Post subject: Reply with quote

I guess AOBScan does not support half-byte wildcard.
?0 is treated as a wildcard since it cannot convert to a byte value.

Your final AOB
EC C4 16 02 ?0 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? FF
should work the same as
EC C4 16 02 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? FF

doc:
AOBScan(x,x,x,x,...):
scans the currently opened process and returns a StringList object containing all the results. don't forget to free this list when done
Bytevalue of higher than 255 or anything not an integer will be seen as a wildcard
AOBScan(aobstring): see above but here you just input one string
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Thu Oct 02, 2014 4:47 am    Post subject: Reply with quote

Quote:

I guess AOBScan does not support half-byte wildcard.

correct, it doesn't

If you wish more precise filtering on nibbles use lua. Get the aobscan results, and then check that the specific byte has that nibble value

_________________
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
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