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 


Priority on AOBScan

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Xblade Of Heaven
Master Cheater
Reputation: 0

Joined: 16 Oct 2005
Posts: 394
Location: DEAD

PostPosted: Sun Dec 10, 2017 12:37 pm    Post subject: Priority on AOBScan Reply with quote

Helo guys, i hace a samll question, is possible add priority to AOBScan signaures?

for example i havent find only 1 address using a array bytes 00 11 22 33 44 55 66

and CE found only 2 addresses and me need use always the second address found, how can made priority for use always the second address found.

for example:

array 1 address not valid 00 11 22 33 44 55 66

array 2 address valid 00 11 22 33 44 55 66

on AA

AOBScan(Test,00 11 22 33 44 55 66 ) -> here how add priority for always use the sedond address found and no the first for default.

Thanks

_________________
Welcome to the Hell.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Sun Dec 10, 2017 1:14 pm    Post subject: Reply with quote

Either find a more unique AOB or use the lua AOBScan (and optionally extend that with registerAutoAssemblerCommand in lua to create your own AA AOBScanPriority which takes a priority), you can find examples using google (I'd suggest adding "site:forum.cheatengine.org" to your query,ex)

Note (to help avoid some confusion) you are likely to find two lua formats stringlist_getString(resultsStringList,1) vs resultsStringList[1] and object_destroy(someobject) vs someobject.destroy() (more generically type_method(objectOfType,parameters) -> objectOfType.method(parameters)), the latter is the newer syntax which is more Object Oriented, though the older still works in current versions of CE the functions aren't listed in the celua.txt/main.lua file in the CE install directory)
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4289

PostPosted: Sun Dec 10, 2017 1:25 pm    Post subject: Reply with quote

Code:
[ENABLE]
{$lua}
if syntaxcheck then return end
local res =  assert(AOBScan('12 34 ?? ?? ab cd', '+X'), 'No results found')
assert(res.Count >= 2, 'Not enough results found')
registerSymbol('INJECT', res[1])
res.destroy()
{$asm}

// ...

[DISABLE]
unregistersymbol(INJECT)

//...

_________________
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
Xblade Of Heaven
Master Cheater
Reputation: 0

Joined: 16 Oct 2005
Posts: 394
Location: DEAD

PostPosted: Sun Dec 10, 2017 7:08 pm    Post subject: Reply with quote

thanks guys!
_________________
Welcome to the Hell.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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