Structure dissect

Anything Cheat Engine related, bugs, suggestions, helping others, etc..
Post Reply
AlexS
Expert Cheater
Expert Cheater
Posts: 322
Joined: Sun Apr 08, 2018 3:46 pm
Reputation: 192

Structure dissect

Post by AlexS »

(Google translation)

CE automatically detects the data type in the structure window. How can I turn off automatic data type detection and manually set the data type I need when creating and filling out a structure?
For example, I need to create a "Structure dissect" window, where all data would be only of type "float", and all addresses are multiples of 4 bytes. How to do it?

Sorry for the bad english ...

Paul44
RCE Fanatics
RCE Fanatics
Posts: 887
Joined: Thu Jul 27, 2017 9:02 am
Reputation: 566

Re: Structure dissect

Post by Paul44 »

^ check out my 'Kena' table, and follow [Tools ~ Error & Settings ~ Maintenance scripts ~ Run All Form Scripts].
Inside that script, check out the 'openStructure' function. What is important here is, that you'll find the proper "keywords" for you to search @CEF for more details...
ps: i recall finding some of that stuff @CE's github; and part from a table posted by #FreeER @CEF. (basically, he made a table that "converts your struct to mr records" ~ iow you'll find most/all details in there)

oh yeah: i do not frequent these parts @FRF, so if i do not reply back within a couple of days then just pm me...

-EDIT-
found the reference back in my MM table: google "cheat engine Generate Memory Records From Structure"
Last edited by Paul44 on Fri Dec 31, 2021 7:29 am, edited 1 time in total.

aSwedishMagyar
Table Makers
Table Makers
Posts: 690
Joined: Mon Jul 06, 2020 3:19 am
Reputation: 1260

Re: Structure dissect

Post by aSwedishMagyar »

Use this:

Code: Select all

function aGuess(address,guessType)
	return vtSingle
end
onAutoGuess(aGuess)
List of datatypes that make sense for the structure autoguess:
  • vtByte
  • vtWord
  • vtDword
  • vtQword
  • vtSingle
  • vtDouble
  • vtString
  • vtUnicodeString
  • vtByteArray
  • vtPointer
Change vtSingle to whatever datatype you want to populate the structure with. You can reset it to normal operation by having it return guessType.

What you are doing is creating a function that is called when CE is guessing the type and then registering it with onAutoGuess(), so you need to call onAutoGuess() whenever you reset the function.

Post Reply

Who is online

Users browsing this forum: No registered users