Kermalis How do I cheat? Reputation: 0
Joined: 12 Jun 2017 Posts: 1
|
Posted: Mon Jun 12, 2017 4:37 pm Post subject: Scripting scans not working as intended |
|
|
For some reason in lua, the memscan_nextScan method keeps the old addresses that have not changed, and appends the ones that have changed into the list again.
I'm not sure if cheat engine is bugged, or I'm doing something incorrect, and a few google searches do not seem to help.
The testing I've been doing:
Code: | function myFirst(id)
local scan = getCurrentMemscan()
scan.newScan()
scan.firstScan(soExactValue, vtDword, rtRounded, id, nil, 0, 0x7fffffffffffffff, "+W-C", fsmAligned, "4", false, false, false, false)
scan.waitTillDone()
end
function myNext(id)
local scan = getCurrentMemscan()
scan.nextScan(soExactValue, rtRounded, id, nil, false, false, false, false, false)
scan.waitTillDone()
end
myFirst("1561")
--myNext("1744") |
I start the scan with a search for a DWORD of 1561, then in my game I change the value, then change the code to run "myNext" for 1744.
Cheat Engine says it found 8 (which is correct) but displays a few hundred, most values are from the first search and should not appear in the list instead of clearing the address list when you press the next scan button normally.
When I use memscan_firstScan, Cheat Engine says 282 found (and 282 shown)
I attached a screenshot of what happens when I use memscan_nextScan on the same scan object. (8 found and 290 shown, when only 8 should be shown)
I just want those 8 in the list by themselves instead of everything that arrived with the first search...
Description: |
|
Filesize: |
100.86 KB |
Viewed: |
4902 Time(s) |
|
Description: |
|
Filesize: |
102.18 KB |
Viewed: |
4902 Time(s) |
|
|
|