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 


Questions about AOBScan

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

Joined: 02 May 2018
Posts: 28

PostPosted: Sat Aug 31, 2019 11:27 pm    Post subject: Questions about AOBScan Reply with quote

I have a few questions about AOBScan:
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Sep 01, 2019 12:06 am    Post subject: Reply with quote

1: create getCPUCount() instances of MemScan that all scan a different region (Use enumMemoryRegions() to split up more evenly)
Don't waittilldone until all instances are created


If you have more than one AOB, use autoassemble() as it will then do an aob groupscan

2: Always free the list when it returns anything that isn't nil. Just result.destroy() is enough And yes, you can copy it if you like

3: yes, write a wrapper function if you wish to do that

_________________
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
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1526

PostPosted: Wed Sep 11, 2019 9:17 am    Post subject: Reply with quote

The fastest search and replacement I'm currently using :

Code:
function CEButton1Click(sender)
local script = ([[
[ENABLE]
Aobscan(_code1,d0 30 d0 66 ?? ?? 20 14)

_code1:
db d0 30 24 00 48 ?? 20 14
[DISABLE]
]]);

autoAssemble(script)

showMessage("Done")
end


or Multi:

Code:
function CEButton1Click(sender)
local script1 = ([[
[ENABLE]
Aobscan(_code1,d0 30 d0 66 ?? ?? 20 14)

_code1:
db d0 30 24 00 48
[DISABLE]
]]);

local script2 = ([[
[ENABLE]
Aobscan(_code2,D0 24 FF ?? ?? ?? ?? ??)

_code2:
db D0 25 F8 55 02 02 02 02
[DISABLE]
]]);

autoAssemble(script1)
autoAssemble(script2)

showMessage("Done")
end

_________________
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
mgr.inz.Player
I post too much
Reputation: 222

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

PostPosted: Thu Sep 12, 2019 10:55 am    Post subject: Reply with quote

multi would be better to do in one script:

Code:
function CEButton1Click(sender)
  local script = [[
[ENABLE]
Aobscan(_code1,d0 30 d0 66 ?? ?? 20 14)
Aobscan(_code2,D0 24 FF ?? ?? ?? ?? ??)

_code1:
db d0 30 24 00 48

_code2:
db D0 25 F8 55 02 02 02 02
[DISABLE]
]]

  autoAssemble(script)
  showMessage("Done")
end

Dark Byte wrote:
If you have more than one AOB, use autoassemble() as it will then do an aob groupscan

_________________
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Thu Sep 12, 2019 12:57 pm    Post subject: Reply with quote

Code:

AOBScanUnique()

accidentally slipped in the last post release patch of CE, so you might want to try that one

It uses multiple threads over different regions, and the thread that gets it first will terminate the other scanners and return the result. (so make sure it is in fact unique as it's not going to return the first result in memory)

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