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 


Sequence of value scan?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
faizangmc
Expert Cheater
Reputation: 0

Joined: 12 Nov 2013
Posts: 167

PostPosted: Sun Dec 08, 2013 9:45 am    Post subject: Sequence of value scan? Reply with quote

Is there a way to search with sequence of values type?
Like i want to search a date of birth of player. Its represented by 3 addresses one after another.
So i would select sequence of values. set the no to 3 and in each box i will enter 16(date), 2(month) and 1983(year). and scan?

this can be done through artmoney? I cant find a way through cheat engine? Please help as i love cheat engine and dont wana use artmoney. Also how do i search sequence of values through lua scripting?
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Sun Dec 08, 2013 10:13 am    Post subject: Reply with quote

Use the "grouped" datatype (in the byte/2 bytes/4 bytes/float/... drop down list).
_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
faizangmc
Expert Cheater
Reputation: 0

Joined: 12 Nov 2013
Posts: 167

PostPosted: Sun Dec 08, 2013 10:16 am    Post subject: Reply with quote

ok thankx. its working flawless. Can you tell me how do i search this in lua scripting? actually i want to insert the date of birth grouped scan in my trainer? whats the script for it?
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Sun Dec 08, 2013 10:31 am    Post subject: Reply with quote

1-Examine and understand how what you put into the "generate groupscan command" wizard translates into a groupscan string (probably something like "4:5 4:2 4:1975")
2-Build groupscan commands in lua via string concatenation (something like "4:"..day.." 4:"..month.." 4:"..year).
3-Open C:\Program Files (x86)\Cheat Engine 6.3\main.lua in notepad and learn how to use the "firstScan" command.


But still, I don't like the idea of doing data scans in a trainer; I'd rather find a pointer or another certain way to find the data I want... Anyway you do like you want.

_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
faizangmc
Expert Cheater
Reputation: 0

Joined: 12 Nov 2013
Posts: 167

PostPosted: Sun Dec 08, 2013 10:35 am    Post subject: Reply with quote

actually there is no multilevel pointer for this game. i have searched a lot.
Also i have learnt how to do a first scan. i didnt get your 2nd point. how to do this? an example script? sorry im new to lua. "cudnt get what you meant by 'Build groupscan commands in lua via string concatenation (something like "4:"..day.." 4:"..month.." 4:"..year)'

i think i should post in lua scripting section from here.
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Wed Dec 11, 2013 10:19 am    Post subject: Reply with quote

If you know the date, why not convert the number to hex and build an 'AoB' (since those addresses are grouped).

Here's example of how I would do it
(Beware, this script has no visual 'progress' like C.E itself has, so you'll have to make it work with your needs.);

It's quite simple just kinda pain convert it to actual string aob (you can alternatively insert it as hex)
Code:
local day,month,year = 08,12,2006; -- My sister birth date.
day,month,year = string.format("%X", tostring(day)), string.format("%X", tostring(month)), string.format("%X", tostring(year)); -- convert to hex.

-- make it be 4 byte length.
if (day:len()==1) then
   day = '0' .. day;
end
if (month:len()==1) then
   month = '0' .. month;
end
if (year:len()==1) then
   year = '0' .. year;
end
if (year:len() >= 3) then
   if (year:len()==3) then
      local var1,var2 = string.sub(year, 1,2),string.sub(year, 3);
      year = var1 .. ' ' .. '0' .. var2;
   else
      local var1,var2 = string.sub(year, 1,2),string.sub(year, 3);
      year = var1 .. ' ' .. var2;
   end
end
if (day:len() == 2) then
   local _day = '';
   for i=1,3 do
      _day = _day .. '00 ';
   end
   day = _day .. day;
end
if (month:len() == 2) then
   local _month = '';
   for i=1,3 do
      _month = _month .. '00 ';
   end
   month = _month .. month;
end
if (year:len() == 2) then
   local _year = '';
   for i=1,3 do
      _year = _year .. '00 ';
   end
   year = _year .. year;
elseif (year:len() == 5) then
   local _year = '';
   for i=1,2 do
      _year = _year .. '00 ';
   end
   year = _year .. year;
end


-- Searching
local aob = day .. ' ' .. month .. ' ' .. year; -- Make it look like an AoB
print(aob) -- to see what you're actually lookin for
local aobs = AOBScan(aob);
if (aobs~=nil) then
   print(aobs.Count);
   aobs.destroy() ;
end

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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