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 


Mimic "simple values only" functionality with lua

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
kam1nsky
How do I cheat?
Reputation: 0

Joined: 05 Jul 2020
Posts: 2

PostPosted: Sun Jul 05, 2020 6:48 pm    Post subject: Mimic "simple values only" functionality with lua Reply with quote

hi

I'm trying to automate a couple successive scans & having trouble getting my memscan results to match up with those I get from the GUI.

Here is the code I am attempting to use to replicate the scan:

Code:
RTscan = createMemScan()
RTfl = createFoundList(RTscan)
RTscan.firstScan(soBiggerThan, vtSingle, rtRounded, 989.0, "", 0, 0x00007fffffffffff, "+W-C", fsmLastDigits, "B48", false, true, false, false)
RTscan.waitTillDone()
RTfl.initialize()
print(RTfl.GetCount())


The problem is, with the GUI scanner I am ticking "simple values only", and memscan doesn't seem to have that option. When I untick this the results are identical.

So I need to find a way to filter out all the "non-simple" values from my large result list, or somehow tell the memscan object to ignore them in the first place.

But, I have no idea how CE determines what is a simple value, much less what "simple value" actually means here. Any help appreciated
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 Jul 05, 2020 7:25 pm    Post subject: Reply with quote

As far as I can tell from reading the code, it looks like "simple floats" just means floats with an exponent within 10 of the bias (or zero).

Use soValueBetween and set a sensible upper limit.
Code:
RTscan.firstScan(soValueBetween, vtSingle, rtRounded, "989", "2048", ...
PS: The search query/queries are strings.
_________________
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
kam1nsky
How do I cheat?
Reputation: 0

Joined: 05 Jul 2020
Posts: 2

PostPosted: Sun Jul 05, 2020 7:33 pm    Post subject: Reply with quote

That makes sense, works great now. Thank you ParkourPenguin!
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