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 


Length of Unicode String in Address List

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Rotschild
Newbie cheater
Reputation: 0

Joined: 23 Jul 2012
Posts: 11

PostPosted: Mon Nov 25, 2019 8:49 am    Post subject: Length of Unicode String in Address List Reply with quote

Does anyone know how to teach AddressList to automatically recognize the length of a string? It seems CE AddressList can display strings with only a fixed length.


CheatEngine_UnicodeString.jpg
 Description:
 Filesize:  306.49 KB
 Viewed:  4724 Time(s)

CheatEngine_UnicodeString.jpg


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

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

PostPosted: Mon Nov 25, 2019 9:50 am    Post subject: Reply with quote

This is game/engine specific, so if it's important then use lua to write your own GUI and use that to display the value in

e.g use a label and then the label's .Caption property (or an Edit and the .Text property) to set the string based on the structure layout of the memory that contains the string

use readInteger to get the length of the string from address-4 and readWideString(address,size) to read the stinmg
writeWideString() to write, and then adjust the size accordingly (keep in mind it can never be longer than the original length)

_________________
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
Rotschild
Newbie cheater
Reputation: 0

Joined: 23 Jul 2012
Posts: 11

PostPosted: Mon Nov 25, 2019 10:26 am    Post subject: Reply with quote

Dark Byte wrote:
This is game/engine specific, so if it's important then use lua to write your own GUI and use that to display the value in

e.g use a label and then the label's .Caption property (or an Edit and the .Text property) to set the string based on the structure layout of the memory that contains the string

use readInteger to get the length of the string from address-4 and readWideString(address,size) to read the stinmg
writeWideString() to write, and then adjust the size accordingly (keep in mind it can never be longer than the original length)


Thanks. It is more like a pirate crutch. I thought there was a way more automatic. In my case, i don’t need to bother like that. I just need to quickly display the name of the fish and other data before it appears on the screen in a online fishing game. Without hemorrhoids.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Mon Nov 25, 2019 3:02 pm    Post subject: Reply with quote

have you tried size 100?
The tripple 0 byte should csuse CE to cut it off

_________________
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
Rotschild
Newbie cheater
Reputation: 0

Joined: 23 Jul 2012
Posts: 11

PostPosted: Tue Nov 26, 2019 1:41 am    Post subject: Reply with quote

Dark Byte wrote:
have you tried size 100?
The tripple 0 byte should csuse CE to cut it off

Surprised Damn. It is strange that I myself did not think of such a simple solution. Now it reads full string. Thx.
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