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 


Structure window description text retrieval

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
careca777
Expert Cheater
Reputation: 0

Joined: 27 Jul 2013
Posts: 121

PostPosted: Wed Nov 10, 2021 4:08 am    Post subject: Structure window description text retrieval Reply with quote

Hi experts!
How would you go about getting this text that pertains the pointer and compare it with something?
The goal here is reading the text and compare it with a selection of strings to determine which is the correct and act on the one that matches.
Thanks in advance.



Screenshot 2021-11-10 100122.png
 Description:
 Filesize:  43.9 KB
 Viewed:  1871 Time(s)

Screenshot 2021-11-10 100122.png


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Wed Nov 10, 2021 4:41 am    Post subject: Reply with quote

getRTTIClassName(address) returns that string
_________________
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: 1055
Location: 0x90

PostPosted: Wed Nov 10, 2021 5:06 am    Post subject: Reply with quote

Add the pointer to the table. Then make the script to compare the values with Lua. I'm on my phone so apologies for any mistakes.

Code:

local al = getAddressList()
local value = al.getMemoryRecordbyDescription('entry description')

if value ~= nil then
  if value.value == 'string to check against' then
    - - do whatever
  end
end
Back to top
View user's profile Send private message
careca777
Expert Cheater
Reputation: 0

Joined: 27 Jul 2013
Posts: 121

PostPosted: Wed Nov 10, 2021 5:35 am    Post subject: Reply with quote

Dark Byte wrote:
getRTTIClassName(address) returns that string


Thanks, that did the trick, would never get there by my own.

Code:
local FlyingHandlingAddr = getAddress'[HandlingDataExtra]+0'
print(getRTTIClassName(readPointer(FlyingHandlingAddr)))


@LeFIXER: Thanks for the suggestion. Smile

Any chance that could be included in the wiki page?
https://wiki.cheatengine.org/index.php?title=Lua

Searched up and down and i don't think it's in there.
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

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

PostPosted: Wed Nov 10, 2021 11:49 am    Post subject: Reply with quote

careca777 wrote:
Dark Byte wrote:
getRTTIClassName(address) returns that string


Thanks, that did the trick, would never get there by my own.

Code:
local FlyingHandlingAddr = getAddress'[HandlingDataExtra]+0'
print(getRTTIClassName(readPointer(FlyingHandlingAddr)))


@LeFIXER: Thanks for the suggestion. Smile

Any chance that could be included in the wiki page?
https://wiki.cheatengine.org/index.php?title=Lua

Searched up and down and i don't think it's in there.


There is also celua.txt. The function getRTTIClassName is mentioned on line 176.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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