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 


Filter results high/low
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
DrackenDarck
Newbie cheater
Reputation: 0

Joined: 23 Aug 2019
Posts: 14

PostPosted: Mon Dec 16, 2019 9:50 am    Post subject: Filter results high/low Reply with quote

Hi guys and girls,
is there a way that I can filter the result table based on the value amount?
So Like I am looking for the number 2 and set it to highest first, so if a value changes to 3,4,5, it goes to the top of the list.
Like you can filter it in the task manager, where the highest Ram using proccess is displayed on the top.

I mean the "Adress, Value, previous", buttons are clickable, but it doesnt change anything if I click them Sad

Is there anywhere a hidden option?

Thanks!

See my example Screenshot in the attachment.



2019-12-16 16_49_01.jpg
 Description:
 Filesize:  142.11 KB
 Viewed:  1573 Time(s)

2019-12-16 16_49_01.jpg



_________________
German & English cheat(speak)ing.
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 72

Joined: 14 Jul 2007
Posts: 2372

PostPosted: Mon Dec 16, 2019 1:50 pm    Post subject: Reply with quote

No, you can't sort the list of search results.
It is expected that you narrow your search down to a reasonable limit and at that point, you won't have to.
Back to top
View user's profile Send private message
DrackenDarck
Newbie cheater
Reputation: 0

Joined: 23 Aug 2019
Posts: 14

PostPosted: Sat Dec 28, 2019 5:36 pm    Post subject: Reply with quote

that is sad... would be nice if the Devs could add this as feature or... is it too complex?
_________________
German & English cheat(speak)ing.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 378

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

PostPosted: Sat Dec 28, 2019 9:04 pm    Post subject: Reply with quote

the address files have a requirement that they are sorted for scanspeed reasons and the addresslist is a direct view into the address file, and only the addresses currently visible are read out, so not really

only if you have less than 1000 addresses perhaps it can be sorted at runtime, but that limitation would just confuse people with 1001 or more addresses

_________________
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
mgr.inz.Player
I post too much
Reputation: 164

Joined: 07 Nov 2008
Posts: 4421
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sun Dec 29, 2019 1:10 pm    Post subject: Reply with quote

Add to autorun folder: copy and paste to text file, change file extension from ".txt" to ".lua"

It will add another button. After clicking it, you will get new window with sorted values. Rightclick the new window to sort in other direction.
Code:
local function showSortedFoundList()
  local form = createForm(false)
  form.OnClose = function (sender) return caFree end
  form.BorderStyle = bsSizeable
  form.Position = 'poWorkAreaCenter'
  form.PopupMode = 'pmNone'
  form.Caption = 'Sorted FoundList'
  form.Width = (MainForm.Width * 0.75) // 1
  form.Height = (MainForm.Height * 0.75) // 1
  form.show()

  local pm = createPopupMenu(form)
  form.PopupMenu = pm
  local mi = createMenuItem(pm)
  pm.Items.add(mi)
  mi.Caption = 'Reverse sort'
  mi.OnClick = function ()
    SortedFoundList_reverseSort = not SortedFoundList_reverseSort
    MainForm.btnShowSortedFoundList.doClick()
    form.close()
  end

  local listview = createListView(form)
  listview.Align = alClient
  listview.ViewStyle = vsReport
  listview.AutoSort = false
  listview.RowSelect = true
  listview.BorderSpacing.Around = 5

  local addColumns = listview.Columns.add
  local addItems = listview.Items.add

  local addrCol = addColumns()
  addrCol.Caption = "Address"
  addrCol.Width = listview.Canvas.getTextWidth(' DDDDDDDDDDDDDDDD ')
  local valCol = addColumns()
  valCol.Caption = "Value"

  listview.AutoWidthLastColumn = true

  local ms=getCurrentMemscan()
  local fl=ms.FoundList
  local results = {}
  if fl.Count>0 then
    for i = 0, fl.Count-1 do
      results[1+#results] = {Address=fl.getAddress(i),Value=fl.getValue(i)}
    end
    table.sort(results, function (a,b)
      local base = ms.isHexadecimal and 16 or nil
      local aN,bN = tonumber(a.Value,base) or (-1/0),tonumber(b.Value,base) or (-1/0)
      local aA,bA = tonumber(a.Address,16),tonumber(b.Address,16)
      local res = aN==bN and aA<bA or aN<bN
      if SortedFoundList_reverseSort then res = not res end
      return res
    end)
    for _,v in ipairs(results) do
      local item = addItems()
      item.Caption = v.Address
      item.SubItems.add(v.Value)
    end
  end
end

local function addBtnShowSortedFoundList()
  local btn
  if not MainForm.btnShowSortedFoundList then
    addSortButtonAdded = true
    btn = createButton(MainForm)
    btn.Parent = MainForm.Panel5
    btn.Name = 'btnShowSortedFoundList'
  end

  btn = MainForm.btnShowSortedFoundList
  btn.Caption = 'Show Sorted'
  btn.AutoSize = true
  btn.AutoSize = false
  btn.Height = MainForm.btnMemoryView.Height
  btn.AnchorSideLeft.Control = MainForm.btnMemoryView
  btn.AnchorSideLeft.Side = asrRight
  btn.AnchorSideTop.Control = MainForm.btnMemoryView
  btn.AnchorSideTop.Side = asrTop
  btn.OnClick = function() showSortedFoundList() end
end

addBtnShowSortedFoundList()

_________________
Back to top
View user's profile Send private message MSN Messenger
Csimbi
I post too much
Reputation: 72

Joined: 14 Jul 2007
Posts: 2372

PostPosted: Mon Dec 30, 2019 5:05 am    Post subject: Reply with quote

DrackenDarck wrote:
that is sad... would be nice if the Devs could add this as feature or... is it too complex?

If you know what you are looking for but not exactly, why don't you search by range?
Back to top
View user's profile Send private message
DrackenDarck
Newbie cheater
Reputation: 0

Joined: 23 Aug 2019
Posts: 14

PostPosted: Mon Jan 13, 2020 11:37 pm    Post subject: Reply with quote

Csimbi wrote:
DrackenDarck wrote:
that is sad... would be nice if the Devs could add this as feature or... is it too complex?

If you know what you are looking for but not exactly, why don't you search by range?


because I still would like to use the option Wink... and range does not help always.
@mgr.inz.Player
Thanks I will test it Smile

~~~
mgr.inz.Player wrote:
Add to autorun folder: copy and paste to text file, change file extension from ".txt" to ".lua"

It will add another button. After clicking it, you will get new window with sorted values. Rightclick the new window to sort in other direction.
Code:
local function showSortedFoundList()
*much code, much wow*


Where is the button? Very Happy
See attachment, i dont see a new button.
Only the "Lua formula" seems to be new for my eye... but that can be a misstake Smile
I just tested it with firefox and yeah no button no value filter.

_________________
German & English cheat(speak)ing.
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 72

Joined: 14 Jul 2007
Posts: 2372

PostPosted: Tue Jan 14, 2020 10:55 am    Post subject: Reply with quote

The button should be right next to the Memory View button (under the address list).
I can see it.
Back to top
View user's profile Send private message
DrackenDarck
Newbie cheater
Reputation: 0

Joined: 23 Aug 2019
Posts: 14

PostPosted: Thu Jan 16, 2020 11:10 am    Post subject: Reply with quote

Csimbi wrote:
The button should be right next to the Memory View button (under the address list).
I can see it.

Seems like I forgot to add my attachment..

There is no button.
Also not, if I make a scan.



2020-01-16 18_09_08.jpg
 Description:
 Filesize:  287.79 KB
 Viewed:  1042 Time(s)

2020-01-16 18_09_08.jpg



_________________
German & English cheat(speak)ing.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 378

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

PostPosted: Thu Jan 16, 2020 11:29 am    Post subject: Reply with quote

call it sort.lua
_________________
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
DrackenDarck
Newbie cheater
Reputation: 0

Joined: 23 Aug 2019
Posts: 14

PostPosted: Thu Jan 16, 2020 1:28 pm    Post subject: Reply with quote

Dark Byte wrote:
call it sort.lua

lol I thought I saved it as .lua with notepad++....

~~
seems like 134.000 reslts was too much?^^
whats the limit 1.000?
(I just made a test and searched for "5" in firefox^^)



woops.JPG
 Description:
 Filesize:  61.14 KB
 Viewed:  1027 Time(s)

woops.JPG



_________________
German & English cheat(speak)ing.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 378

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

PostPosted: Thu Jan 16, 2020 1:56 pm    Post subject: Reply with quote

Just needs to add a few
Code:

processMessages()

to the loop code so the gui stays responsive

Anyhow, just wait, maybe an hour or 20

_________________
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
Csimbi
I post too much
Reputation: 72

Joined: 14 Jul 2007
Posts: 2372

PostPosted: Thu Jan 16, 2020 3:27 pm    Post subject: Reply with quote

DrackenDarck wrote:

whats the limit 1.000?

Your disk space and your lifetime, whichever comes first.
Discounting natural disasters, brownouts and such, of course.
Back to top
View user's profile Send private message
DrackenDarck
Newbie cheater
Reputation: 0

Joined: 23 Aug 2019
Posts: 14

PostPosted: Fri Jan 17, 2020 9:07 am    Post subject: Reply with quote

Csimbi wrote:
DrackenDarck wrote:

whats the limit 1.000?

Your disk space and your lifetime, whichever comes first.
Discounting natural disasters, brownouts and such, of course.

Is it so hungry?
I use daz3d to render stuff and... THAT is hungry too... creating one .png image takes 8-12h sometimes Wink....

_________________
German & English cheat(speak)ing.
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 72

Joined: 14 Jul 2007
Posts: 2372

PostPosted: Fri Jan 17, 2020 9:18 am    Post subject: Reply with quote

Sorting is always expensive and so, it was never intended to be sorted.
So, let's just say that it was not designed for that.
It was designed for quick search, windowing and refreshes.
What you got here is a custom LUA script that goes against that design.
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
Goto page 1, 2, 3  Next
Page 1 of 3

 
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