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 


Memscan error?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 577

PostPosted: Tue Sep 06, 2016 6:14 pm    Post subject: Memscan error? Reply with quote

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
View user's profile Send private message Yahoo Messenger
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Tue Sep 06, 2016 7:46 pm    Post subject: Reply with quote

From
Code:
fsmNotAligned, "",
to
Code:
fsmAligned, "4",

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
View user's profile Send private message
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 577

PostPosted: Tue Sep 06, 2016 8:14 pm    Post subject: Reply with quote

Fast scan is unchecked on all my normal scans.
Back to top
View user's profile Send private message Yahoo Messenger
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 577

PostPosted: Mon Sep 12, 2016 9:54 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
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