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 


Reposition entry within the address list programmatically

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1053
Location: 0x90

PostPosted: Fri May 05, 2023 9:57 am    Post subject: Reposition entry within the address list programmatically Reply with quote

Is it possible to change the position of an entry within the address list programmatically?

I know there's memory record index but it's read-only.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Fri May 05, 2023 10:36 am    Post subject: Reply with quote

it's not possible at the moment, besides saving the table to memory, parse the data as xml, and reorder the xml data and then load it back from memory


but why do you need to change the order programmatically ?

_________________
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
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1053
Location: 0x90

PostPosted: Fri May 05, 2023 12:16 pm    Post subject: Reply with quote

I am trying to re-create memory entries from a table of data, but some entries are nested within other entries. I have something which recursively adds the entries and sets the parent/child relationship accordingly but the parent entry positions are wrong.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Fri May 05, 2023 1:38 pm    Post subject: Reply with quote

use a lua table as starting point
fill it in based in the data and link parents in later etc..

when that's done start creating table entries based on that lua table

it'll also be faster as no gui updates are needed to render the change in position

_________________
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
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1053
Location: 0x90

PostPosted: Fri May 05, 2023 3:12 pm    Post subject: Reply with quote

That was enough for me to figure it out. Thanks DB! You are a diamond Smile
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