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 


Reading FNames through Cheat Table Lua Script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
RegretNeedsHelp
How do I cheat?
Reputation: 0

Joined: 08 May 2023
Posts: 5

PostPosted: Tue Nov 28, 2023 10:01 pm    Post subject: Reading FNames through Cheat Table Lua Script Reply with quote

Hello, I have some values here for reading some animation names but they appear as 紛 and 級 instead of their actual names, I know they aren't FString and if they aren't then they are most likely FName. I know FString can easily be read by address -> Add Offset 0, but for FNames, I either don't know how to get there or I would like to make a function in a lua cheat table to read it without offset shifting all over the place.

To give more context to what these values above are intended to represent
mCurrentHandRightPlayAnimName: 紛
mCurrentHandLeftPlayAnimName: 級

_________________
To make bread one must make thyself - Sun Tzu
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Wed Nov 29, 2023 4:45 am    Post subject: Reply with quote

could be a string encoding issue, try ansiToUTF8(name) when printing them out
Or if you know the exact codepage used in the target for those string in memory you can use convertToUTF8(name, codepagenr)

_________________
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
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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