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 


Comparing two separate scan tabs

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Arnw
How do I cheat?
Reputation: 0

Joined: 04 Apr 2016
Posts: 3

PostPosted: Wed Aug 09, 2017 5:59 am    Post subject: Comparing two separate scan tabs Reply with quote

Hi, is there a way to compare two separate scan tabs? Specifically I want to find all values in the second tab that are not in the first tab.

I did some searching and found this:
/viewtopic.php?p=5585292#5585292

But I couldn't get that script to work for me.

Thanks.
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Wed Aug 09, 2017 9:33 am    Post subject: Reply with quote

Does it do nothing or error or? Have you tried adding some print statements to verify that the code is running?

Zanzer wrote:
<the original code without prints>

Code:
list = getCurrentMemscan().FoundList
print('there are', list.Count, ' items in the first list')
addr = {}
for i=0,list.Count-1,1 do
  print('adding', list.Address[i]) -- may not want to do this for hundreds of thousands of results...
  addr[list.Address[i]] = true
end


Start up your new scan and execute the following:

Code:
table = getAddressList()
list = getCurrentMemscan().FoundList
print('there are', list.Count, ' items in the second list')
for i=0,list.Count-1,1 do
  if addr[list.Address[i]] == nil then
    print('Creating', list.Address[i]) -- may not want to do this for hundreds of thousands of results...
    table.createMemoryRecord().Address = list.Address[i]
  end
end
Back to top
View user's profile Send private message
Arnw
How do I cheat?
Reputation: 0

Joined: 04 Apr 2016
Posts: 3

PostPosted: Wed Aug 09, 2017 10:27 am    Post subject: Reply with quote

That worked great. Thanks.
Back to top
View user's profile Send private message
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