|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
bknight2602 Grandmaster Cheater Reputation: 0
Joined: 08 Oct 2012 Posts: 577
|
Posted: Tue Sep 06, 2016 6:14 pm Post subject: Memscan error? |
|
|
Today I was building a table with a two memscan's language inside.
Code: | ms = createMemScan();
ms2 = createMemScan();
memscan_firstScan(ms, soExactValue, vtDWord, rtRounded, expvalue, "", "00000000", "7fffffff", "+W*X-C", fsmNotAligned, "", false, false, false, false);
memscan_waitTillDone(ms);
fl = createFoundList(ms);
foundlist_initialize(fl);
foundlist_getCount(fl);
memscan_firstScan(ms2, soExactValue, vtDWord, rtRounded, goldvalue, "", "00000000", "7fffffff", "+W*X-C", fsmNotAligned, "", false, false, false, false);
memscan_waitTillDone(ms2);
fl2 = createFoundList(ms2);
foundlist_initialize(fl2);
foundlist_getCount(fl2); |
Now when I run a normal value scan I get 4 addresses for expvalue and 41 addresses for goldvalue. There is some debug print later in code and this is the printout
The experience entered 16999--correct entry and value.
The gold entered 5000--correct entry and value.
The number of search hits for experience is 34316
The number of search hits for gold is 58423
What has changed in the language that I am incorrectly coding?
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Tue Sep 06, 2016 7:46 pm Post subject: |
|
|
Fromto
You're telling it that the address alignment is unimportant.
To mimic that in CE's normal scan, you would have to uncheck Fast Scan.
|
|
Back to top |
|
|
bknight2602 Grandmaster Cheater Reputation: 0
Joined: 08 Oct 2012 Posts: 577
|
Posted: Tue Sep 06, 2016 8:14 pm Post subject: |
|
|
Fast scan is unchecked on all my normal scans.
|
|
Back to top |
|
|
bknight2602 Grandmaster Cheater Reputation: 0
Joined: 08 Oct 2012 Posts: 577
|
Posted: Mon Sep 12, 2016 9:54 am Post subject: |
|
|
After stumbling along for the past few days, I finally found the coding error this morning
Code: | ms = createMemScan();
ms2 = createMemScan();
memscan_firstScan(ms, soExactValue, vtDWord, rtRounded, expvalue, "", "00000000", "7fffffff", "+W*X-C", fsmNotAligned, "", false, false, false, false);
memscan_waitTillDone(ms);
fl = createFoundList(ms);
foundlist_initialize(fl);
foundlist_getCount(fl);
memscan_firstScan(ms2, soExactValue, vtDWord, rtRounded, goldvalue, "", "00000000", "7fffffff", "+W*X-C", fsmNotAligned, "", false, false, false, false);
memscan_waitTillDone(ms2);
fl2 = createFoundList(ms2);
foundlist_initialize(fl2);
foundlist_getCount(fl2);
print("The number of search hits for experience is ", foundlist_getCount(fl));
print("The number of search hits for gold is ", foundlist_getCount(fl2));
|
changes to Code: | ms = createMemScan();
ms2 = createMemScan();
memscan_firstScan(ms, soExactValue, vtDword, rtRounded, expvalue, "", "00000000", "7fffffff", "+W*X-C", fsmNotAligned, "", false, false, false, false);
memscan_waitTillDone(ms);
fl = createFoundList(ms);
foundlist_initialize(fl);
foundlist_getCount(fl);
memscan_firstScan(ms2, soExactValue, vtDword, rtRounded, goldvalue, "", "00000000", "7fffffff", "+W*X-C", fsmNotAligned, "", false, false, false, false);
memscan_waitTillDone(ms2);
fl2 = createFoundList(ms2);
foundlist_initialize(fl2);
foundlist_getCount(fl2);
print("The number of search hits for experience is ", foundlist_getCount(fl));
print("The number of search hits for gold is ", foundlist_getCount(fl2));
|
For a quick look qtDWord is upated to qtDword and the results are very similar to manual value searching.
Issue solved for me.
|
|
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
|
|