Useful Function to Inspect Properties of any CE Object

Inspection helper function

Place snippets of code and scripts under here to share with others. Archives and .Lua extensions are allowed


Moderator: Table Moderator

Post Reply
Azaias
Curious
Curious
Posts: 7
Joined: Mon Jan 02, 2023 4:45 am
Answers: 0
x 9

Useful Function to Inspect Properties of any CE Object

Post by Azaias »

EDIT: proprint is the improved version of this and is much better imo. Please check out that post instead

I made a function for inspecting Cheat Engine Objects called propertyprint

Code: Select all

propertyprint(CEobject)

It prints all of the properties and their values for the given instance of a Cheat Engine Object (like Forms, Components, etc..)
To use it, you can just put it in your Cheat Engine autorun folder.

If you give it something like the MainForm it will give you a
ton of data lol
(Example)

propprint.png
propprint.png (48.69 KiB) Viewed 3661 times
PropertyPrint.lua
(1.95 KiB) Downloaded 263 times

The (new) version also searches the metatable and finds anything that it hasn't already, excluding functions and methods (I just wanted it to get the properties)

EDIT: I found some problems with the new one but most problems should be fixed now, I updated it. Still wokring on improving it though.

PropertyPrint(new).lua
(3.36 KiB) Downloaded 264 times
Last edited by Azaias on Wed Jan 25, 2023 5:50 am, edited 7 times in total.

Eric
CE Master
CE Master
Cheater
Cheater
Posts: 10
Joined: Sat Jul 23, 2022 5:23 pm
Answers: 0
x 27

Re: Useful Function to Inspect Properties of any CE Object

Post by Eric »

Don't forget to crossreference the metatable fields as well. When a property isn't published it sometimes gets added as a metadata field


Azaias
Curious
Curious
Posts: 7
Joined: Mon Jan 02, 2023 4:45 am
Answers: 0
x 9

Re: Useful Function to Inspect Properties of any CE Object

Post by Azaias »

Eric wrote: Sun Jan 22, 2023 2:44 am

Don't forget to crossreference the metatable fields as well. When a property isn't published it sometimes gets added as a metadata field

Thanks! I'll look into that. I was actually playing around with printing the contents of the metatables before I made this


Azaias
Curious
Curious
Posts: 7
Joined: Mon Jan 02, 2023 4:45 am
Answers: 0
x 9

Re: Useful Function to Inspect Properties of any CE Object

Post by Azaias »

Eric wrote: Sun Jan 22, 2023 2:44 am

Don't forget to crossreference the metatable fields as well. When a property isn't published it sometimes gets added as a metadata field

I added a newer version that incorporates that :)

I tried having even the recursive iterations crossreference the metatables but it just kept repeating the same info for almost every property and ended up with an insanely ridiculous amount of output lol. I just made the main (non-recursive) iterations crossreference it and it does find data that it didn't before.

Thanks again!


Post Reply