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 


Sorting table

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

Joined: 22 Dec 2011
Posts: 51

PostPosted: Tue Jun 28, 2016 10:40 pm    Post subject: Sorting table Reply with quote

I tried searching this topic but couldn't find what I'm looking for. I have a large table with a lot of groups, scripts, addresses, etc...

I accidentally clicked on "description" near the top which sorted everything. Is there any way to undo that sorting?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Tue Jun 28, 2016 10:50 pm    Post subject: Reply with quote

Close and reopen the table.

Or you can try sorting it by the creation order...
http://www.freeformatter.com/xsl-transformer.html
Open the table in NotePad and paste that as XML Input.
Paste the following as XSL Input.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="CheatTable/CheatEntries">
  <xsl:copy>
    <xsl:for-each select="CheatEntry">
      <xsl:sort select="ID"/>
      <xsl:copy>
        <xsl:apply-templates select="@*|node()"/>
      </xsl:copy>
    </xsl:for-each>
  </xsl:copy>
</xsl:template>
<xsl:template match="@*|node()">
  <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
  </xsl:copy>
</xsl:template>
</xsl:stylesheet>
Back to top
View user's profile Send private message
Classicus
Advanced Cheater
Reputation: 0

Joined: 22 Dec 2011
Posts: 51

PostPosted: Wed Jun 29, 2016 12:04 am    Post subject: Reply with quote

The issue with closing and reopening is I made a lot of changes and saved, then realized sorting was all screwed up afterwards. I tried the XML formatter but there are errors with opening the table after using it, such as white space not allowed here on line 16117, then I fix that and another error on some line a few thousand down, and repeat, etc...

I might just accept the new formatting and re-position things along the way. Thanks!


edit: I sorted by address and almost everything fell into it's proper place. Only the groups and scripts need some shifting which isn't too bad since there are only a handful of those. The addresses under those groups are abundant but thanks to their original order being based on address order, this basically fixed my issue.
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

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

PostPosted: Wed Jun 29, 2016 7:39 am    Post subject: This post has 2 review(s) Reply with quote

Place this lua script in the autorun folder. It will disable sorting.

I'm using this script since CE6.3:
Code:
setMethodProperty(getAddressList().getComponent(1), 'OnSectionClick', nil)


Since CE6.4 I use this:
Code:
getAddressList().Component[1].OnSectionClick=nil



disable addresslist sorting.lua
 Description:

Download
 Filename:  disable addresslist sorting.lua
 Filesize:  50 Bytes
 Downloaded:  339 Time(s)


_________________
Back to top
View user's profile Send private message MSN Messenger
Classicus
Advanced Cheater
Reputation: 0

Joined: 22 Dec 2011
Posts: 51

PostPosted: Thu Jun 30, 2016 2:51 am    Post subject: Reply with quote

Thanks mgr.inz.Player! Just tested it in CE 6.5 and it works great. Sorting has caused issues for me from time to time. I had previously looked for such a feature under options but never thought it was possible to implement with an autorun lua script.
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