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 


Checking visible state
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25830
Location: The netherlands

PostPosted: Thu Sep 19, 2013 4:23 am    Post subject: Reply with quote

Fastscan is disabled, else it couldn't find 070B242D (it's not dividable by 2) Tip: looking at the data type and your two previous addresses i do recommend enabling fastscan on a 2 byte alignment(the address seems to be on an aligned location)



I don't recommend creating a new foundlist for next scan, but reusing the foundlist object (there can be only one foundlist for a memscan)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 586

PostPosted: Thu Sep 19, 2013 6:52 am    Post subject: Reply with quote

What code commands enable fastscan?

Ok on the creating a new foundlist. I was just trying something different since the experience and gold locations were not contained in a nextScan. That question remains and the process won't work unless the nextScan has the narrowed and correct locations to recalculate the table.

Just to emphasis, with a normal scan on the CE table the choices were narrowed to only the correct locations on a second scan. That may have been a fluke, but that is what I was hoping a nextScan would accomplish.
Back to top
View user's profile Send private message Yahoo Messenger
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25830
Location: The netherlands

PostPosted: Thu Sep 19, 2013 1:18 pm    Post subject: Reply with quote

fastscan enabled:
replace
Code:

fsmNotAligned, ""

with
Code:

fsmAligned, "2"

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 586

PostPosted: Thu Sep 19, 2013 8:34 pm    Post subject: Reply with quote

The fastscan didn't work as all the heroes bytes are 25 apart and doing the fast scan eliminated those whose experience had an "odd" address. Also I got an access violation when I added a scan tab and selected Fast Scan 2. So I changed it back to not aligned and came up with the following results:

Gold to scan = 13274
Experience to scan = 12437
The num of search hits for experience is 20 Similar results with CE table scan
The num of search hits for gold is 32 Similar results with CE table scan
The experience values found in the first scan are 0 00267078
The experience values found in the first scan are 1 00267258
The experience values found in the first scan are 2 023094D1
The experience values found in the first scan are 3 02309529
The experience values found in the first scan are 4 02309581
The experience values found in the first scan are 5 0677F631 Address for hero 1
The experience values found in the first scan are 6 0677F656 Address for hero 2
The experience values found in the first scan are 7 0677F6C5 Address for hero 4
The experience values found in the first scan are 8 0677F6EA Address for hero 5
The experience values found in the first scan are 9 06D02CD1
The experience values found in the first scan are 10 06FF38FB
The experience values found in the first scan are 11 0759FDEF
The experience values found in the first scan are 12 075ED02C
The experience values found in the first scan are 13 07D3151F
The experience values found in the first scan are 14 07D5A9B2
The experience values found in the first scan are 15 07DBD3C5
The experience values found in the first scan are 16 07DD3A05
The experience values found in the first scan are 17 07E28045
The experience values found in the first scan are 18 07E2A505
The experience values found in the first scan are 19 07E54CF6
The gold values found in the first scan are 0 009010E3
The gold values found in the first scan are 1 009835DA
The gold values found in the first scan are 2 0677F880 Address of gold
The gold values found in the first scan are 3 068A46FF
The gold values found in the first scan are 4 0690F4CC
The gold values found in the first scan are 5 06A4B700
The gold values found in the first scan are 6 06CF3292
The gold values found in the first scan are 7 06DB2F8D
The gold values found in the first scan are 8 06E28499
The gold values found in the first scan are 9 06F9EFC3
The gold values found in the first scan are 10 06FA40F9
The gold values found in the first scan are 11 06FA5CC3
The gold values found in the first scan are 12 06FAB323
The gold values found in the first scan are 13 06FC8C54
The gold values found in the first scan are 14 06FDD424
The gold values found in the first scan are 15 06FDD712
The gold values found in the first scan are 16 06FDE184
The gold values found in the first scan are 17 070B9699
The gold values found in the first scan are 18 075C2BB1
The gold values found in the first scan are 19 075E4A64
The gold values found in the first scan are 20 075ED685
The gold values found in the first scan are 21 075F05A7
The gold values found in the first scan are 22 075F73F7
The gold values found in the first scan are 23 076001BF
The gold values found in the first scan are 24 076021FF
The gold values found in the first scan are 25 07D4EF40
The gold values found in the first scan are 26 07E4FBD3
The gold values found in the first scan are 27 0867DC52
The gold values found in the first scan are 28 0867E6CE
The gold values found in the first scan are 29 086CAB36
The gold values found in the first scan are 30 089A3C08
The gold values found in the first scan are 31 08A09643

Gold to scan = 13690
Experience to scan = 12521
The num of search hits for experience is 0 Normal CE scan found the four addresses of the heroes
The num of search hits for gold is 1 Normal CE scan found one address 0677F880
The gold values found in the next scan are 0 06E28499
Code:

function CEButton5Click(sender)
errorOnLookupFailure(false)
--test of nextScan
  if heroname ~= null and expvalue ~= null and goldvalue ~= null and control_getCaption(CheatPanel_CEButton5) == "test" then
    ms = createMemScan();
    ms2 = createMemScan();
    ms3 = createMemScan();
    memscan_firstScan(ms, soExactValue, vtWord, 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, vtWord, 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 num of search hits for experience is ", foundlist_getCount(fl));
    print("The num of search hits for gold is ", foundlist_getCount(fl2));
    for x = 0, foundlist_getCount(fl)-1  do
      print("The experience values found in the first scan are "..x.." "..foundlist_getAddress(fl, x))
    end
    for y = 0, foundlist_getCount(fl2)-1 do
      print("The gold values found in the first scan are "..y.." "..foundlist_getAddress(fl2, y))
    end
    expvalue = null;
    goldvalue = null;
    heroname = null;
    edit_clear(CheatPanel_CEEdit1);
    edit_clear(CheatPanel_CEEdit2);
    radiogroup_setItemIndex(CheatPanel_CERadioGroup1, 0);
    control_setCaption(CheatPanel_CEButton5, "Next Scan");
  elseif heroname ~= null and expvalue ~= null and goldvalue ~= null and control_getCaption(CheatPanel_CEButton5) == "Next Scan" then
    memscan_nextScan(ms, soExactValue, vtWord, 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_nextScan(ms2, soExactValue, vtWord, 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 num of search hits for experience is ", foundlist_getCount(fl));
    print("The num of search hits for gold is ", foundlist_getCount(fl2));
    for x = 0, foundlist_getCount(fl)-1  do
      print("The experience values found in the next scan are "..x.." "..foundlist_getAddress(fl, x))
    end
    for y = 0, foundlist_getCount(fl2)-1 do
      print("The gold values found in the next scan are "..y.." "..foundlist_getAddress(fl2, y))
    end
      recalculatetable = 1;
      expvalue = null;
      goldvalue = null;
      stepvalue = null;
      heroname = null;
      edit_clear(CheatPanel_CEEdit1);
      edit_clear(CheatPanel_CEEdit2);
      radiogroup_setItemIndex(CheatPanel_CERadioGroup1, 0);
      control_setCaption(CheatPanel_CEButton5, "test");
  else
    print("Experience, Gold and Hero must all be entered");
  end;--if heroname ~= null and expvalue ~= null and goldvalue ~= null and stepvalue ~= null and control_getCaption(CheatPanel_CEButton2) == "Recalculate Addresses" then
end;--CEButton5Click()


Any thoughts on the nextScan?
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
Goto page Previous  1, 2
Page 2 of 2

 
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