 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
kam1nsky How do I cheat?
Reputation: 0
Joined: 05 Jul 2020 Posts: 2
|
Posted: Sun Jul 05, 2020 6:48 pm Post subject: Mimic "simple values only" functionality with lua |
|
|
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 |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4709
|
Posted: Sun Jul 05, 2020 7:25 pm Post subject: |
|
|
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 |
|
 |
kam1nsky How do I cheat?
Reputation: 0
Joined: 05 Jul 2020 Posts: 2
|
Posted: Sun Jul 05, 2020 7:33 pm Post subject: |
|
|
| That makes sense, works great now. Thank you ParkourPenguin!
|
|
| Back to top |
|
 |
|
|
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
|
|