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 searching.

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

Joined: 26 Jan 2018
Posts: 90

PostPosted: Mon Apr 01, 2024 6:32 pm    Post subject: AOB searching. Reply with quote

is it possible to search for

AOB like this in any way?
0100??[24 to 27]

results should be

0100XX24
0100XX25
0100XX26
0100XX27
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 96

Joined: 14 Jul 2007
Posts: 3221

PostPosted: Tue Apr 09, 2024 12:05 pm    Post subject: Reply with quote

Yes, except there's no such thing as [24 to 27]
So, use 0100???? and find some other bytes that repeat.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 465

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

PostPosted: Tue Apr 09, 2024 2:08 pm    Post subject: Reply with quote

0100xx2x works as well, but yeah, still got to filter out the other ones
_________________
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
ParkourPenguin
I post too much
Reputation: 147

Joined: 06 Jul 2014
Posts: 4518

PostPosted: Tue Apr 09, 2024 2:13 pm    Post subject: Reply with quote

You could do that with a groupscan

Code:
BA:1 1:1 1:0 w:1 1r:0x24-0x27

_________________
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
Csimbi
I post too much
Reputation: 96

Joined: 14 Jul 2007
Posts: 3221

PostPosted: Mon Apr 15, 2024 3:57 am    Post subject: Reply with quote

ParkourPenguin wrote:
You could do that with a groupscan

Code:
BA:1 1:1 1:0 w:1 1r:0x24-0x27

Cheater! That's not an AOB scan! Very Happy
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 34

Joined: 16 Feb 2017
Posts: 1418

PostPosted: Mon Apr 15, 2024 5:45 am    Post subject: Reply with quote

It seems like a superficial solution.

You can export the results to a table and play with it.

Code:
function getBStr233(address, bytecount)
 local bytes = readBytes(address, bytecount, true)
 if bytes then
 local result = ""
 for i = 1, #bytes do
 if #result > 0 then result = result .. " " end
 result = result .. string.format("%02X", bytes[i]) end
 return result end
end


function multiAOB(search)
addrTbl = {}
aobs = AOBScan(tostring(search)) --,"+W-X") -- = For more (less) stable results.
  if aobs==nil then
    showMessage("ERROR!! Code  Not  Found!")
  else
   for i=0, aobs.count -1 do
     aa32=aobs[i]
     aa1 = getBStr233(aa32, 4)
     aa2 = (aa1):sub(-2,-1)
       if aa2=="24" or aa2=="25" or aa2=="26" or aa2=="27" then
         --print("Address: " .. aa32 .. " // " .. aa1)
         addrTbl[#addrTbl + 1] = aa32
       end
   end
  end
  aobs.Destroy()
  return addrTbl
end

res1 = multiAOB("01 00 ?? 2?")

 for i,k in pairs(res1) do
  print("\nAddress: "..k)
  print("aobs: "..getBStr233(k, 4))
 end


result:
Address: 7792B546
aobs: 01 00 47 25

Address: 7792B54A
aobs: 01 00 5F 25

Address: 7792B54E
aobs: 01 00 7B 27

Address: 7793EBAB
aobs: 01 00 E8 27

Address: 7797FE4F
aobs: 01 00 EB 25

Address: 779B4294
aobs: 01 00 00 25

Address: 779CB25D
aobs: 01 00 00 24

Address: 779CB30D
aobs: 01 00 00 24

Address: 77A257F4
aobs: 01 00 00 25

Address: 77A76B85
aobs: 01 00 00 25

Address: 77A7A45C
aobs: 01 00 00 25

Address: 77A7D022
aobs: 01 00 00 25

Address: 77A80AF2
aobs: 01 00 00 25

Address: 77A85454
aobs: 01 00 00 25

Address: 77A86E83
aobs: 01 00 00 25

Address: 77AE008B
aobs: 01 00 00 25

Address: 77AE0656
aobs: 01 00 00 25

Address: 77B09CCA
aobs: 01 00 00 24

Address: 77B5AB49
aobs: 01 00 00 25

Address: 77B5BE9E
aobs: 01 00 00 25

Address: 77B5BEC1
aobs: 01 00 00 25

Address: 77B72DD3
aobs: 01 00 00 24

Address: 77B8701D
aobs: 01 00 EB 24

Address: 77B96E64
aobs: 01 00 7C 27

Address: 77B9D0DF
aobs: 01 00 00 25

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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