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 


searching for strings with periods

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

Joined: 17 Mar 2020
Posts: 12

PostPosted: Thu Sep 29, 2022 4:39 pm    Post subject: searching for strings with periods Reply with quote

I have found the string that is responsible for calling items, and successfully swapped an item using this method by luck while dissecting the structure

but I can not replicate this action

the string inside the data structure is like:

"M.A.C.E......" but I changed it to "C.U.R.S.E.D.S.W.O.R.D."

the Cursed sword item remained even after restarting the game

I was wondering how to do this again, I can't find the strings because they are separated by periods, I decided to pick another mace, but searching "MACE" or "M.A.C.E" does not return any results, as well as "ctrl+f" inside the data structure

is there something that I am missing?
Back to top
View user's profile Send private message
cooleko
Grandmaster Cheater
Reputation: 11

Joined: 04 May 2016
Posts: 717

PostPosted: Thu Sep 29, 2022 6:06 pm    Post subject: Reply with quote

Look at the bytes and search them instead of a string. You might see that the period is stored under a different byte code or something. By looking at the bytes directly, rather than the string interpretation, you will see what that something is. Similarly, you may need to toggle some of the string options to get the correct format.
Back to top
View user's profile Send private message
Haru
Newbie cheater
Reputation: 0

Joined: 17 Mar 2020
Posts: 12

PostPosted: Thu Sep 29, 2022 7:30 pm    Post subject: Solved! Incase anyone has the same issue Reply with quote

keywords: blanks, periods, in-between letters

thanks for the reply cooleko

tho I found the solution with a bit of exploring, it might help other people
the solution was:

1.) dissect data
2.) search memory (ctrl f)
3.) check array of byte
3.a) open a browser and use a text to hex converter
3.b) type the key words (ex. M A C E )
3.b) convert, and replace spaces (20) with (00)
3.c) copy
4.) paste in CE
Back to top
View user's profile Send private message
cooleko
Grandmaster Cheater
Reputation: 11

Joined: 04 May 2016
Posts: 717

PostPosted: Thu Sep 29, 2022 8:42 pm    Post subject: Reply with quote

That's what I expected. You looked for space (20) and period (2E), but the actual bytes are (00) in your array of bytes. Good work!
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Thu Sep 29, 2022 9:25 pm    Post subject: Reply with quote

When scanning for wide strings, check the UTF-16 checkbox.
In the past, CE referred to the 2-byte character representation as simply "unicode". This may still be used in various places.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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